SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member vChris's Avatar
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation 2 Conflicting Javascipts...

    I was tring to make my site XHTML 1.1 compliant, so I had to rewrite a fair bit of the code, and 2 things that I really wanted to keep were a button rollover I had and be able to have some links open in new windows. I was able to find 2 different javascripts designed to be XHTML compliant, so that was great. Both scripts work perfect on their own, but when they are put in the same page, only the one that is run first works.

    Here are the two scripts:
    Image Rollover - http://www.bleedingego.co.uk/code/js/rollover/
    New-Window Links - http://www.sitepoint.com/article/1041

    I'd appreciate it if someone could help me fix the scripts so I can use them on the same page together.

    Thanks!
    Website Designer/Developer - Graphics/PHP
    Vio Group (Just Launched!!)

  2. #2
    SitePoint Member vChris's Avatar
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed

    Since I posted my problem here, I guess I should post the fix too. :P

    http://www.aplus.co.yu/Dots/100/

    The main conflict was the use of window.onload twice.

    Hope this thread helps someone else out.
    Website Designer/Developer - Graphics/PHP
    Vio Group (Just Launched!!)


Bookmarks

Posting Permissions

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