Jump to content

Onload Fix Help


KyleKJune

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...