Support » Fixing WordPress » Problem with some Javascript

  • 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">
    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" };

    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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with some Javascript’ is closed to new replies.