Jump to content

Onload Fix Help


KyleKJune
 Share

Recommended Posts

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 by KyleKJune
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...