Results 1 to 9 of 9

Thread: javascript on top

  1. #1
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript on top

    hey guys, im having a problem , im using the lightbox gallery script , but when an image opens up near my javascript embedded flash animations the flash animations go over it, so the image goes behind the flash animations. if someone could tell me how i can get javascript to not display over things, but go to the back of everything else, or somehow to get my lightbox gallery to go over the javascript flash animations, that would be very helpful thank you,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    Follow the detailed information at:

    http://www.macromedia.com/cfusion/kn...fm?id=tn_14201

    Or, if this short version (good in most cases) fixes it, so much the better! Add in this language to your object/embed tag:

    Add the following parameter to the OBJECT tag:

    <param name="wmode" value="transparent">

    Add the following attribute to the EMBED tag:

    wmode="transparent"
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    your the best, thanks a lot,

  4. #4
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh, i think i got a confusing anwser,... i can not add anything to the object or embed tag because i embedded it using javascript and i dont see an embed or object tag in there, only div tags and what not. any suggestions to get the same effect but with javascript? sorry to bother everyone again with this stupid noobish question.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    I'd have to see the code. Can you supply a link to your page? If nothing else, an object/embed may be applied via script. Actually, I believe this is what is happening anyway. If so, it would just be a matter of adding the param and attribute to the code in the script.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the code for the page looks like this, the flash object in that script is what i need the lightbox image to go over, so i need that javascripted flash animation to be behind it >.<



    </div> </td>
    <td width="300" valign="top"> <p align="center"><br>
    <img src="banner22.jpg" width="160" height="600"><br>
    <script type="text/javascript" src="flashobject.js"></script>
    </p> <div id="flashcontent2" style="width: 300px; height: 160px"></div>
    <div align="center">
    <script type="text/javascript">
    var fo = new FlashObject("mp3player.swf", "animationName", "300", "160", "8");
    fo.addParam("allowScriptAccess", "sameDomain");
    fo.addParam("quality", "high");
    fo.addParam("scale", "noscale");
    fo.addParam("loop", "true");
    fo.write("flashcontent2");
    </script>
    </p>
    </div></td>
    </tr>
    <tr>

  7. #7
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try adding

    Code:
    fo.addParam("wmode", "transparent");
    to the above snippet, or post the code to flashobject.js as well so that could edit that to suite your need.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  8. #8
    Join Date
    Feb 2006
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i'll test it thanks for your input


    EDIT: it worked perfectly, thank you
    Last edited by Merciless; 01-29-2007 at 10:11 PM.

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Not a problem. Glad it's working for you.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •