batterdmooie Posted January 28, 2008 Share Posted January 28, 2008 Hi, I have been looking on the web about this problem, and it seems to pop up quite often. My problem is this: I have 2 scripts that override each other. I would like to combine them into one script. I have combined scripts previously by adding this code at the bottom: function start() { tablecloth(); scrollovers_Init();; } window.onload = start; What's throwing me is that in script2 there is no "window.onload" only this at the bottom of the script: window.addEvent('domready', Lightbox.init.bind(Lightbox)); Attached are the two scripts, so any help in combining them would be great. Cheers Russ [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted January 28, 2008 Share Posted January 28, 2008 try this instead: <script language="javascript"> function start() { tablecloth(); setTimeout("scrollovers_Init()", 100); } window.onload = function () { start(); } </script> see if that helps any. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.