Results 1 to 2 of 2

Thread: Flash/Javascript/CSS

  1. #1
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flash/Javascript/CSS

    Hello,
    I have a CSS Navigation that needs to have drop down boxes over a flash slideshow. I FINALLY got it to work with an object (using the wmode) however I got made my slideshow with a better script and now I'm using Flash and Javascript... and my navigation is being "jumpy" and not always appearing over the flash. Here is the link: http://main.srh.com/

    Here is the new code for the slideshow that DOES NOT WORK w/ the navigation:

    HTML Code:
    <div id="flash_index"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div><script type="text/javascript">
    	var s1 = new SWFObject("imagerotator.swf","rotator","750","250","1", {"salign":"transparent"});
    	s1.addVariable("file","flash_index.xml");
    	s1.addVariable("transition","random");
    	s1.addVariable("shuffle","false");
    		s1.addVariable("rotatetime","3");
    	s1.addVariable("overstretch","false");
    	s1.addVariable("backcolor","0x000000");
    	s1.addVariable("width","750");
    	s1.addVariable("height","250");
    	s1.write("flash_index");
    </script>
    Here is the old slideshow object that did work w/ the navigation:
    HTML Code:
    <object
    type="application/x-shockwave-flash" data="images/Flash-Sample.swf" 
    width="750" height="250">
    <param name="movie" value="images/Flash-Sample.swf">
    <param name="wmode" value="transparent">
    </object>
    The navigation is pretty basic css please let me know if you need the code for it.

    Question is basically, how do I simulate the effect of the wmode for the javascript flash?

    Thank you so much in advance if you know the solution.

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    add this in your SWFObject coding:

    Code:
     s1.addParam("wmode", "transparent");
    You can place it just after your height param if you like, as long as it is before your .write() line
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •