Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
very quick setTimeOut question
Old 11-05-2007, 09:42 AM very quick setTimeOut question
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
i'm trying to make an invisible object appear after a few seconds by using setTimeOut directly in the mouse over event with little joy.

this is what i have:

onmouseover="window.setTimeout(document.getElement ById(\'img_XO\').style.visibility=\'visible\', 2000);"

the \s are php escape characters so the don't get sent by the server.

anybody got any clues?


cheers folks

;purk
__________________

Please login or register to view this content. Registration is FREE
- private villas direct from the owners - travel links always needed.
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
 
Register now for full access!
Old 11-06-2007, 03:27 PM Re: very quick setTimeOut question
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
setTimeout expects a string of Javascript to be eval'ed, or a function. You are trying to pass a single statement. Here, try wrapping it in a function:

Code:
onmouseover="window.setTimeout(function() { document.getElement ById('img_XO').style.visibility='visible'; }, 2000);"
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 11-07-2007, 07:56 AM Re: very quick setTimeOut question
purk's Avatar
Extreme Talker

Posts: 164
Name: James
Location: marbella & surrey
Trades: 0
sweet, thanks christopher
__________________

Please login or register to view this content. Registration is FREE
- private villas direct from the owners - travel links always needed.
purk is offline
Reply With Quote
View Public Profile Visit purk's homepage!
 
Reply     « Reply to very quick setTimeOut question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17246 seconds with 12 queries