pleek Posted October 14, 2007 Share Posted October 14, 2007 hello everybody, ok i have recently started a website but im running into some probs. My homepage is www.craigh.tlcrepair.net everything i have wanted to do so far i have been able to (or learn how to do) except my vid main page. http://craigh.tlcrepair.net/pages/video.html i want the description <iframe> to show up when the user puts the mouse over the name, and hide again after 2 seconds of the mouse being moved <head> <script type="text/javascript"> function hide1() { num1.style.visibility="hidden"; } function show1() { num1.style.visibility="visible"; } </head> <body> <p><a href="pagename.html" onmouseover="show()" onmouseout="hide()">number1</a></p> </body> Ok, this script works pretty much perfectly but i have a couple problems. First, when u mouse over the second name http://craigh.tlcrepair.net/pages/video.html the second and third iframes both show. Once u mouseout they both "hide" and then the whole script works fine. Whats wrong? Second i'd like to compact the script with var so that i don't have to write the same script 10 times with just a different id for the iframe. I know how to set a "set time out" to delay the hiding of the frame so i don't really think i need help with that but the other part is stumping me. Can anybody help me out here? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 15, 2007 Share Posted October 15, 2007 I doubt you want an iframe... more likely a div. Quote Link to comment Share on other sites More sharing options...
pleek Posted October 15, 2007 Author Share Posted October 15, 2007 so ur sayin that if i just position a div like this <div id="div id" "position: absolute; left:number; top:number;"> <table> <tr> <td> <img src="path to file.gif"> </td> <td> <p>discription</p> </td> </tr> </table> then call the javascript function like normal?? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 16, 2007 Share Posted October 16, 2007 Yup... just show/hide this div as necessarily, possibly in a nother z-index. Quote Link to comment Share on other sites More sharing options...
pleek Posted October 19, 2007 Author Share Posted October 19, 2007 ok thanks alot. And by the way i got the delay on the hide() function working. PEACE OUT!!! 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.