Results 1 to 2 of 2
  1. #1
    batterdmooie is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default javascripts overrides other javascripts.

    Hi,

    I have been looking on the web about this problem, and it seems to pop up quite offten. 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:

    Java Code:
    function start() {
      tablecloth();
      scrollovers_Init();;
    }
    window.onload = start;
    Whats throwing me is that in script2 there is no "window.onload" only this at the bottom of the script:

    Java Code:
    window.addEvent('domready', Lightbox.init.bind(Lightbox));
    Attached are the two scripts, so any help in combining them would be great.

    Cheers

    Russ
    Attached Files Attached Files

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    9

    Default

    batterdmooie, Welcome to the Java Forums. Please note, Java != Javascript. :) I'm afraid I can't be much help, but maybe someone will. Otherwise, I suggest finding the proper Javascript resources.

    See you around!
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •