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?