Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] A loop this this script?
- From: rdong at advance.net (Roland)
- Subject: [Javascript] A loop this this script?
- Date: Tue Jun 21 22:32:32 2005
I figured that the following script can be written using a for loop. But I
tried without success. Can anyone throw some light on this? Thank you!
============================================================================
<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
navBar = document.getElementById("nav").rows[0].cells;
navBar[0].onmouseover=function() {
document.getElementById("tutorials").style.visibility="visible"
}
navBar[0].onmouseout=function() {
document.getElementById("tutorials").style.visibility="hidden"
}
navBar[1].onmouseover=function() {
document.getElementById("scripting").style.visibility="visible"
}
navBar[1].onmouseout=function() {
document.getElementById("scripting").style.visibility="hidden"
}
navBar[2].onmouseover=function() {
document.getElementById("validation").style.visibility="visible"
}
navBar[2].onmouseout=function() {
document.getElementById("validation").style.visibility="hidden"
}
}
window.onload=startList;
//--><!]]></script>
===============================================
- Follow-Ups:
- [Javascript] A loop this this script?
- From: Matt Warden
- [Javascript] A loop this this script?
- References:
- [Javascript] Need help determining when remote window closes.
- From: Glenn E. Lanier, II
- [Javascript] Need help determining when remote window closes.
- Prev by Date: [Javascript] Need help determining when remote window closes.
- Next by Date: [Javascript] Determining when a person leaves your domain
- Previous by thread: [Javascript] Need help determining when remote window closes.
- Next by thread: [Javascript] A loop this this script?
- Index(es):