• Hey Guys,

    I’m trying to include this JS in the following page and I’m getting an error on the first ” before “photo_gallery”. Do I need to encode the quotation mark somehow for it to be read correctly?

    Any suggestions would be greatly appreciated.

    Thanks!

    <script type=”text/javascript”>
    var so = new SWFObject(“photo_gallery.swf”, “movie”, “410”, “300”, “6”, “#ffffff”);
    so.write(“photo_gallery”);
    </script>

Viewing 1 replies (of 1 total)
  • You should be able to paste this in this js just above the </head> tag within the “single post” page found in the theme editor.

    <script type="text/javascript" src="https://www.mydomain/swfobject.js"></script>
    </head>

    Be sure to have the SWFOject.js file path correct on your web server. Then, when writing a post that includes the photo gallery swf, paste this code:

    [kml_flashembed movie="https://www.mydomain/your.swf" height="500" width="700" quality="best" fvars="xmlfile=https://www.mydomain.com/your.xml" /]

Viewing 1 replies (of 1 total)
  • The topic ‘Quick JS Question (Adding JS Within a Page)’ is closed to new replies.