KyleKJune Posted July 28, 2009 Report Share Posted July 28, 2009 (edited) function init() {if (arguments.callee.done) return;arguments.callee.done = true;if (_timer) clearInterval(_timer);};if (document.addEventListener) { document.addEventListener("DOMContentLoaded", init, false); document.write("<script id=__ie_onload defer src=java script:void(0)><\/script>"); var script = document.getElementById("__ie_onload"); script.onreadystatechange = function() { if (this.readyState == "complete") { init(); } };if (/WebKit/i.test(navigator.userAgent)) { var _timer = setInterval(function() { if (/loaded|complete/.test(document.readyState)) { init(); } }, 10);}window.onload = init():i have a problem with loading a function onload because my swf video in body takes to long to load.how do i use the above script to make another function start?it is suppose to make the onload function work in all browsers.will the video still load while the alert boxes are up? Edited July 29, 2009 by KyleKJune Link to comment Share on other sites More sharing options...
dsonesuk Posted July 28, 2009 Report Share Posted July 28, 2009 ??? just add prank(); within the function init() Link to comment Share on other sites More sharing options...
KyleKJune Posted July 28, 2009 Author Report Share Posted July 28, 2009 (edited) nvm i found a new way to fix Edited July 29, 2009 by KyleKJune Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now