heldenbrau Posted June 21, 2010 Share Posted June 21, 2010 I have made a popup menu with javascript and CSS for my website http://www.diamondcz.co.uk/index.shtml When I was working on it I was viewing it in Firefox. But it doesn't work at all in internet explorer. I have set a div id in CSS to not display and using javascript, changed the CSS to display when the mouse goes over the menu item. eg. <div class="menutitles" onmouseover="document.getElementById('ha').style.display='block';document.getElementById('ha2').style.display='block';" onmouseout="document.getElementById('ha').style.display='none';document.getElementById('ha2').style.display='block';" > <a class="topseltxt" href="heartsarrows.shtml">Hearts & Arrows</a><br/> <div class="contain" id="ha"> <div class="menuitems" id="ha2"> <a class="topseltxt2" href="8heartsarrows.shtml">8 Hearts & Arrows</a><br/> <a class="topseltxt2" href="heartsarrows.shtml">10 Hearts & Arrows</a><br/> </div> </div> </div> Quote Link to comment Share on other sites More sharing options...
Adam Posted June 21, 2010 Share Posted June 21, 2010 Which menu are we looking at? The pink one's on the left appear to work in IE7. Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted June 21, 2010 Share Posted June 21, 2010 Try passing the value into javascript function so instead of doing right away like what you did <div class="menutitles" onmouseover="document.getElementById('ha').style.display='block';document.getElementById('ha2').style.display='block';" > try: <head> <script type="text/javascript"> function setblock(){ document.getElementById('ha').style.display='block';document.getElementById('ha2').style.display='block';} </script> </head> <body> <div class="menutitles" onmouseover="setblock()"> </body> hope it helps Quote Link to comment Share on other sites More sharing options...
heldenbrau Posted June 21, 2010 Author Share Posted June 21, 2010 Yes it is the pink one on the left. I'm viewing with internet explorer 8. Quote Link to comment Share on other sites More sharing options...
heldenbrau Posted June 21, 2010 Author Share Posted June 21, 2010 Doesn't matter, it is me looking at the wrong page. Thanks for the help, it works fine in IE8. Quote Link to comment Share on other sites More sharing options...
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.