OZONE Asylum
Forums
DHTML/Javascript
Javascript Online Checker (Am i online or offline)
This page's ID:
28659
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I found this code in a tut from a guy going on about Opera :o [code] (function () { function runmyscript() { if( document.getElementById('theThingIAmLookingFor') ) { clearInterval(checkForElement); document.removeEventListener('load',checkForElement,false); ... do whatever you needed to do ... } } var checkForElement = setInterval(checkForElement,200); document.addEventListener('load',checkForElement,false); })(); [/code] I am thinking of modifying it to ..... [code] function CheckIfComplete(ImageId,ImageNumber) { var checkForElement = setInterval(checkForElement,200); document.addEventListener('load',checkForElement,false); if( document.getElementById(ImageId) ) { clearInterval(checkForElement); document.removeEventListener('load',checkForElement,false); startFade(ImageId,ImageNumber); } } [/code] I think this will be in line with what you suggest ... just need to know what "checkForElement" should be in my case. Thanks...I can see a chink of light at the end of the tunnel. [small](Edited by [url=http://www.ozoneasylum.com/user/6559]dayo[/url] on 07-19-2007 22:47)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »