Jump to content

.swf file blocks my javascript linkset


Recommended Posts

Hello all. Not sure if this should be in the javascript section, or here. But I have some links at the top of a page that when scrolledover produce a drop down menu on certain links. I haveadded an image rotator just below the links. I now cannotsee all of the dropdown because of the image rotator (.swf). Thank you for your time,Hooch

Link to post
Share on other sites

<iframe> and <object> elements are, in many browsers, always in front of the other elements you may have positioned in front. A good solution is to hide them when you open a javascript dropdown menu. In the function the opens the menu just add another few lines of code:

var j;var obj = document.getElementsByTagName('object');var ifr = document.getElementsByTagName('iframe');for(j=0;j<obj;j++) {(obj[j].style.visibility == "visible")?obj[j].style.visibility = "hidden":obj[j].style.visibility = "visible";}for(j=0;j<ifr;j++) {(ifr[j].style.visibility == "visible")?ifr[j].style.visibility = "hidden":ifr[j].style.visibility = "visible";}

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...