Forums

Embedded JavaScript does not work in a post (1 post)

  1. drseergio
    Member
    Posted 3 years ago #

    Hello everyone, I have recently switched to a theme called "iNove" and while it has proved to be a great theme with awesome look and W3C compatibility (apart from few minor tweaks that have been necessary) I am having a strange issue:

    When I write a post using HTML editor and use this code:

    <div id="gallery1836"></div>
    <script type="text/javascript">
        /*<!--*/
        var so = new SWFObject("http://gallery.afternoonsun.net/minislideshow.swf", "minislideshow", "200", "200", "9");
        so.addParam("flashVars","xmlUrl=http://gallery.afternoonsun.net/mediaRss.php?g2_itemId=1836&shuffle=true&showDropShadow=true&delay=5&transInType=Random&transOutType=Random&showTitle=bottom");
    		 so.addParam("wmode","transparent");
    		so.addParam("allowFullscreen","true");
    		so.addParam("allowScriptAccess","always");
    		so.addParam("quality", "high");
    		so.write("gallery1836");
    		/*-->*/
    </script>

    The object does not appear though it did work in the previous version of WordPress using LiasBlueEye theme. I suppose there is a better way of including such objects or a way to modify the theme so this would work again. I did look through the help pages and searched on the net though I did not come with a solution to this problem. Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic