Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Dropdown menu hidden by Flash


Message #1 by "Rich Rosell" <rar@a...> on Fri, 5 Jan 2001 09:44:10 -0600
Instead of the flash movie, try to use an animated GIF. It will be alot
esier to control the layers and visibility with an img like a GIF

Just a thought.
----- Original Message -----
From: "Rich Rosell" <rar@a...>
To: "javascript" <javascript@p...>
Sent: Friday, January 05, 2001 10:44 AM
Subject: [javascript] Dropdown menu hidden by Flash


>
> I'm using a Javascript drop down menu.  When it hit's a flash file, the
> flash graphic overlays the menu.
> I've experimented with layers, with no luck.
>
> Can anyone point me in the direction of how to rectify this annoying
issue?
>
> EXAMPLE (try the ABOUT STLE dropdown):
> http://www.stle.org/index_whats_new2.cfm
>
> JAVASCRIPT:
> I'm calling
> <SCRIPT LANGUAGE="JavaScript" src="menu.js"></script> from within the
> <HEAD></HEAD>
>
> Here's a portion of MENU.JS:
>
> var JDWMinNS4   = (navigator.appName.indexOf("Netscape") >= 0 &&
> parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
> var JDWMinNS6   = (navigator.appName.indexOf("Netscape") >= 0 &&
> parseFloat(navigator.appVersion) == 6) ? 1 : 0;
> var JDWMinIE4   = (document.all) ? 1 : 0;
> var JDWMinIE5   = (JDWMinIE4 && navigator.appVersion.indexOf("5.")  >= 0)
?
> 1 : 0;
> var JDWMinIE55  = (JDWMinIE5 && navigator.appVersion.indexOf("5.5") >= 0)
?
> 1 : 0;
> function hideLayer(layer) {
> if (JDWMinNS4) layer.visibility = "hide";
> if (JDWMinIE4) layer.style.visibility = "hidden";
> }
> function showLayer(layer) {
> if (JDWMinNS4) layer.visibility = "show";
> if (JDWMinIE4) layer.style.visibility = "visible";
> }
> function inheritLayer(layer) {
> if (JDWMinNS4) layer.visibility = "inherit";
> if (JDWMinIE4) layer.style.visibility = "inherit";
> }
> function getVisibility(layer) {
> if (JDWMinNS4) {
> if (layer.visibility == "show")
> return "visible";
> if (layer.visibility == "hide")
> return "hidden";
> return layer.visibility;
> }
> if (JDWMinIE4)
> return layer.style.visibility;
> return "";
> }
> function moveLayerTo(layer, x, y) {
> if (JDWMinNS4)
> layer.moveTo(x, y);
> if (JDWMinIE4) {
> layer.style.left = x;
> layer.style.top  = y;
>    }
>
> Thanks,
>
> Rich Rosell
> Email: rar@a...
>
>
>

--- 
NEED TECHNICAL TIPS, TOOLS, AND INSIGHTS?  Is FREE okay?
Visit EarthWeb for the latest in IT Management, Software Development, 
Web Development, Networking & Communications, and Hardware & Systems.  
Click on http://www.earthweb.com for FREE articles, tutorials,
and discussions from the experts.
---
You are currently subscribed to javascript as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-javascript-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index