KyleKJune Posted July 28, 2009 Share Posted July 28, 2009 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? Link to comment Share on other sites More sharing options...
dsonesuk Posted July 28, 2009 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 Share Posted July 28, 2009 nvm i found a new way to fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.