Hooch 0 Posted December 26, 2007 Report Share Posted December 26, 2007 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 Quote Link to post Share on other sites
Ingolme 1,019 Posted December 27, 2007 Report Share Posted December 27, 2007 <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";} Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.