Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I am totally confused on passing object arguements in DHTML. I don't know when to use '' or "" or non at all.
I am trying to use settimeout method to make a link visible after a certian amount of time, but it doesn't seem to work when I try to pass the link id arguement to my "start(linkid)" function. I get the error "'oid' is undefined"
I dont' understand how dhtml passes object arguments. PLease help!
Thanks!
-thedrak
please email me:
psun1@hotmail.com
------------------------------------------------------------
<HTML>
<HEAD>
<script>
function unhide(which){
which.style.visibility = "visible";
}
function start(oid){
siID = window.setTimeout("unhide(oid)",3500);
}
function stop(){
window.clearTimeout(siID);
}
</script>
<TITLE></TITLE>
</HEAD>
<BODY>
<P> </P>
<P>
<TABLE cellSpacing=1 cellPadding=1 width="200" border=1 style="WIDTH: 200px; HEIGHT: 27px" id=table1 onmouseover = "start(timed1)">
<TR>
<TD>mouseover to start timer</TD></TR></TABLE></P>
<P> </P>
<P> </P>
<div><P><A href=" id=timed1 style="VISIBILITY: hidden">timed link1</A></P></div>
</BODY>
</HTML>
I am trying to use settimeout method to make a link visible after a certian amount of time, but it doesn't seem to work when I try to pass the link id arguement to my "start(linkid)" function. I get the error "'oid' is undefined"
I dont' understand how dhtml passes object arguments. PLease help!
Thanks!
-thedrak
please email me:
psun1@hotmail.com
------------------------------------------------------------
<HTML>
<HEAD>
<script>
function unhide(which){
which.style.visibility = "visible";
}
function start(oid){
siID = window.setTimeout("unhide(oid)",3500);
}
function stop(){
window.clearTimeout(siID);
}
</script>
<TITLE></TITLE>
</HEAD>
<BODY>
<P> </P>
<P>
<TABLE cellSpacing=1 cellPadding=1 width="200" border=1 style="WIDTH: 200px; HEIGHT: 27px" id=table1 onmouseover = "start(timed1)">
<TR>
<TD>mouseover to start timer</TD></TR></TABLE></P>
<P> </P>
<P> </P>
<div><P><A href=" id=timed1 style="VISIBILITY: hidden">timed link1</A></P></div>
</BODY>
</HTML>