Forums

Problem with some Javascript (3 posts)

  1. Hoppo
    Member
    Posted 11 months ago #

    Hello all,

    I am using WordPress as a CMS system for a website I ma building, just useing pages, not really making much use of posts.

    I however have to add a number of video players to be played throughout the website and it has to use a certain video player.

    The code that i need to use is as follows:

    <script type="text/javascript">
    //<![CDATA[
    var FU = { 	movie:"../flvplayer.swf",width:"250",height:"290",majorversion:"8",build:"0",bgcolor:"#FFFFFF",
    flashvars:"file=../xml/vid-info-ru-he001.xml&displayheight=188&repeat=true&lightcolor=0x800000&shuffle=false&logo=../video/logo.png&bufferlength=(10)&backcolor=0xFFFFFF&frontcolor=0x000000&thumbsinplaylist=true&overstretch=none&volume=75" };
    UFO.create(FU,"player2");
    //]]>
    </script>

    However when i publish the pages, all the &'s get converted into the asci code - &

    It then breaks the Javascript because the browser dosent transfer it back into a & i guess because its part of the javascript file.

    I really need to get this sorted and have tried making use of a number of plugins but none seem to work.

    I should mention that these javascript scripts wont need to be changed so if anyone knows of a way i can store all the scripts in an external file and then bring them in that would be great. or any other method to get it working.

    Many Thanks

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

  3. Hoppo
    Member
    Posted 11 months ago #

    Hi, thanks for the reply, I have tried using those methods, but when i do, i get no output at all . . .

Reply

You must log in to post.

About this Topic