WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] swfObject looses path to file with permalinks (2 posts)

  1. nomand
    Member
    Posted 6 years ago #

    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?

  2. nomand
    Member
    Posted 6 years ago #

    actually never mind, i found the problem, it was in my <script> tag, the path to the js was relative rather then absolute.

Topic Closed

This topic has been closed to new replies.

About this Topic