WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Code in widget causes theme to break (3 posts)

  1. HorrorUK
    Member
    Posted 1 year ago #

    I've added some code to a text widget, and it does work (giving a media player for my online radio station), but it breaks the theme and causes the footer to rise up.

    It is probably easier to see this to know what I mean:

    http://www.farehamradio.com

    Is there something I can do to stop this happening?

    This is the code used:

    <div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Stream</a>
    <script type="text/javascript" src="/player/swfobject.js"></script>
    <script type="text/javascript">
    var s1 = new SWFObject("/player/player.swf","ply","350","35","9","#FFFFFF");
    s1.addParam("allowfullscreen","false");
    s1.addParam("allowscriptaccess","always");
    s1.addParam("flashvars","file=http://orange.citrus3.com:8022/;stream.nsv&type=sound&volume=35&duration=-999999999999&autostart=true");
    s1.write("player");</script>

    Thanks.

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Have you closed off <div id="player">?

  3. HorrorUK
    Member
    Posted 1 year ago #

    Well that was pretty stupid of me, missing something like that.

    Thanks for pointing that out :) All working now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.