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] Link to comment https://forums.phpfreaks.com/topic/88191-javascripts-overrides-other-javascripts-help-combining-please/ 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. Link to comment https://forums.phpfreaks.com/topic/88191-javascripts-overrides-other-javascripts-help-combining-please/#findComment-451614 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.