RhythmAddict112
Programmer
Hi all...I grabbed some javascript from great post and modified it a tiny bit...Im close to what I want to do..which is...
1 - on MouseOver, show a div for say, 5 seconds..(as of now, the script will display the div until another form element gets rolled over..)
2 - if a checkbox is checked, I want to hold that div there even if they mouseOver another element...
Thats about it really..any help/guidance/anythin ont his would be fantastic!
Use your resources, you're on the internet!
1 - on MouseOver, show a div for say, 5 seconds..(as of now, the script will display the div until another form element gets rolled over..)
2 - if a checkbox is checked, I want to hold that div there even if they mouseOver another element...
Thats about it really..any help/guidance/anythin ont his would be fantastic!
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script language=JavaScript>
function show(which) {
allDiv = document.getElementsByTagName("div");
for (i = 0; i < allDiv.length; i++) {
allDiv[i].style.visibility = "hidden";
}
visibleDiv = document.getElementById(which);
visibleDiv.style.visibility = "visible";
}
</script>
</HEAD>
<BODY>
<body>
<form name=blahForm>
<input type="checkbox" onMouseOver='show(1)'>h</a>
<div id=1 style='visibility : "hidden"'>Blah1</div><br>
<input type="checkbox" name=blahRadio onMouseOver='show(2)'>
<div id=2 style='visibility : "hidden"'>Blah2</div><br>
<input type="checkbox" name=blahRadio onMouseOver='show(3)'>
<div id=3 style='visibility : "hidden"'>Blah3</div><br>
<input type="checkbox" name=blahRadio onMouseOver='show(4)'>
<div id=4 style='visibility : "hidden"'>Blah4</div><br>
<input type="checkbox" name=blahRadio onMouseOver='show(5)'>
<div id=5 style='visibility : "hidden"'>Blah5</div><br>
</form>
</body>
</BODY>
</HTML>
Use your resources, you're on the internet!