Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setTimeout .. ?? How can i use ??

Status
Not open for further replies.

yash

Programmer
Apr 9, 2001
46
IN
Hi All:
What wrong i'm doing.. Please Help ME...
I was displaying some Messages when cursor goes over the Link. it was working fine..
Now can anyone HELP me as i want to display Message after some time (like after 2 seconds.) when cusor goes on link..

Follwoing is the code i was trying to do..
-------------------------------------------
<TR valign = &quot;top&quot;>
<TD style=&quot;padding-left: 22px&quot;
onmouseover=&quot;
javascript:
function newtext()
{
Words.innerHTML = 'Test 1';
setTimeout(&quot;moretext()&quot;,1000);
}
function moretext()
{
Words.innerHTML = 'Test 2';
}
bgColor='#CCCCFF';
&quot;
onmouseout=&quot;bgColor='#FFFFFF';
Words.innerHTML = 'Test 1';&quot;
>
<A HREF=&quot;DNLG.LOGNDNR&quot;>Center Site</A>
 
1. You have to have externally defined functions.
2. Don't use double-quotes when your event attribute is enclosed in them.
bluebrain.gif
blueuniment.gif
 
It's done !!!
Thanks to luciddream , Who wrote Sleep function..
thread216-46282
It sloves my problem..

Once again Thank you very much everyone...
Bye

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top