SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2001
    Location
    New Zealand
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    normal fix for 2 scripts doesn't work

    Hi,
    we are trying to get two java scripts to work on the same page, have read the Dynamic drive article on addressing this and have this in the body tag.
    <body onload="init();function()" bgcolor="#FFFFFF">
    However the navigation bar script is not working.

    navcond .js
    example http://www.familytravel.co.nz/index.html - navigation bar working - has onload of init()

    alttxt.js
    example http://www.familytravel.co.nz/about.html - mouseover script which has onload of function() mentioned in body tag above. This page also includes the navigation bar script but it doesn't work.

    These two scripts are quite long when put together. Would you like us to paste the page here or is it easier to look online?

    Thanking you.
    <help>StIcKs</help>

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check variable names, the chances are you have one or more variables with the same name.

    ( the same goes for function names )

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •