Jump to content

javascripts overrides other javascripts, help combining please.


batterdmooie

Recommended Posts

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]

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.