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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.