Problem with some Javascript (3 posts)

  1. Hoppo
    Posted 4 years 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">
    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

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. Hoppo
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic