• Trying to us a java script on a page

    I have a java script I use on http://www.whitegyr.com/web-page-design-prices.htm that works fine and I’d like to use it on a WordPress blog page.

    The code that works on an html page:

    On the line below the <title>
    <script type=”text/javascript” src=”swfobject.js”></script>

    In the <body> of the page:
    <div id=”flashcontent2″ style=”position:absolute; top:265px; left:640px; z-index:999;”></div>

    <script type=”text/javascript”>
    var vWidth=198; // set to the width of .flv video NOTE: has been preset for best resolution changing can hinder quality
    var vHeight=213; // set to the height of .flv video NOTE: has been preset for best resolution changing can hinder quality
    var videoPath=”http://www.myliveperson.com/video/mollywhite.flv&#8221;; // Leave Alone
    var swfPlayerPath=”http://www.myliveperson.com/video/newMLP3.swf&#8221;; // Leave Alone
    var divId=”flashcontent2″
    var so = new SWFObject(swfPlayerPath, “mymovie”, vWidth, vHeight, “8”);
    so.addParam(“wmode”, “transparent”);
    so.addVariable(‘videoPath’, videoPath);
    so.addVariable(‘videoW’, vWidth);
    so.addVariable(‘videoH’, vHeight);
    so.write(divId);
    </script>

    Any help will be appreciated.
    MarkH

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Using java script on a blog page’ is closed to new replies.