Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Javacsript Menu displays flash

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javacsript Menu displays flash

    1) Script Title: AnyLink Vertical Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nkvertical.htm

    3) Describe problem: Menu displays under flash

    Dear all,

    I use PHP script to utilize this js from DD which is working fine. I made a flash and tried put that on the web page. However, the js menus are under flash and I'd rather put the js menu on top of the flash. Help is appreciated. Thank you.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 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"

    If you are using script to generate the tags (as is frequently done to avoid the 'click to activate' feature in some browsers), the wmode transparent must be passed to the script. This is easily accomplished but, varies depending upon the sort of script one uses. Some scripts do it automatically.
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    wow, John. You are fast!!

    Thank you very much as your suggestion works perfectly.

  4. #4
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just one more thing, for IE7, viewers have to click the flash for the first time to activate the interaction from flash. How can I pass the "wmode" setting to the flash or is there anything I should do? thx!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If the code for the flash is written to page using javascript from an external script, this will overcome 'click to activate' in IE and Opera. If you need help doing that, try my wizard:

    http://home.comcast.net/~jscheuer1/s...activate_w.htm

    Just follow the instructions.
    - John
    ________________________

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

  6. #6
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh man, this is so nice. The wizard is just darn cool.

  7. #7
    Join Date
    Aug 2007
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm also having the same problem of a dropdown menu hiding behind a flash applet. Here's what I've done so far:

    <noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">
    <param name="wmode" value="transparent">
    <param name="movie" value="/templates/{$theme}/slidebar/slidebar.swf?fs_path=/templates/{$theme}/slidebar" />
    <param name="quality" value="high" />
    <embed src="/templates/{$theme}/slidebar/slidebar.swf?fs_path=/templates/{$theme}/slidebar" width="500" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
    </object></noscript>
    <script type="text/javascript" src="/templates/{$theme}/js/activate.js">
    /* Generated by: Click to Activate Override Wizard
    * © John Davenport Scheuer email:jscheuer1REMOVETHISTOMAIL@comcast.net
    * This credit must remain for legal use. */
    </script>
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">\n\
    <param name="movie" value="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" />\n\
    <param name="quality" value="high" />\n\
    <embed src="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" width="500" height="200" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\n\
    </object>');
    The menu still gets covered up by the flash applet. Any ideas where I've made a mistake in my code?

    Thanks,
    TOM

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

    Default

    The only thing that I can see is in the second code snippet you failed to put the wmode param in the object tag like so:

    Code:
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">\n\
    <param name="wmode" value="transparent">\n\
    <param name="movie" value="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" />\n\
    <param name="quality" value="high" />\n\
    <embed src="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" width="500" height="200" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\n\
    </object>');
    Hope this helps.
    Last edited by thetestingsite; 08-05-2007 at 09:46 PM.
    "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

  9. #9
    Join Date
    Aug 2007
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    Quote Originally Posted by thetestingsite View Post
    The only thing that I can see is in the second code snippet you failed to put the wmode param in the object tag like so:

    Code:
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">\n\
    <param name="wmode" value="transparent">
    <param name="movie" value="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" />\n\
    <param name="quality" value="high" />\n\
    <embed src="/templates/gamepals07/slidebar/slidebar.swf?fs_path=/templates/gamepals07/slidebar" width="500" height="200" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\n\
    </object>');
    Hope this helps.
    Nope, that doesn't work. If I insered the "<param name="wmode" value="transparent"> code into the JavaScript, the flash applet isn't displayed any longer

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

    Default

    Sorry, forgot about the \n\ at the end of it. I editted my post above to correct this.
    "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
  •