WordPress.org

Support

Support » Plugins and Hacks » [Resolved] swfObject looses path to file with permalinks

[Resolved] swfObject looses path to file with permalinks

  • Hi, i’m using swfObject in my header to output my swf, so that lightbox plugin can overlay it in FF and Safari3
    i have a problem where the script cant find a path to file.
    works on the .htaccess designated homepage, but those urls that are generated by the permalinks makes the script loose the swf file.

    using custom permalink structure:
    /%monthnum%/%category%/%postname%.html

    swfObject code:

    var so = new SWFObject("http://www.nomand.net/blog/wp-content/themes/nomand2/images/header2.swf", "logo", "800", "120", "8", "#7c7c7a");
    	so.addParam("wmode", "transparent");
    	so.addParam("quality", "high");
    	so.addParam("allowFullScreen", "false");
    	so.write("logo");

    so using a full link to swf file shouldnt behave this way, because the rest of the images work fine.
    cant get my head around this. any clue?

Viewing 1 replies (of 1 total)
  • actually never mind, i found the problem, it was in my <script> tag, the path to the js was relative rather then absolute.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] swfObject looses path to file with permalinks’ is closed to new replies.
Skip to toolbar