Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with having multiple scripts...

    Hi There,
    I came to this site yesterday to get some help with 3rd-image rollovers. Someon gave me a great resource to use. It worked fine when I was using the sample page from
    http://www.vortex-webdesign.com/help/3rdimageroll.htm

    Now, I have taken that code that I modified and was working in it's own page and tried to bring it into another page. On this "other" page there are multiple java scripts( that I did not write/place in) responsible for running a navigation panel and other such things.

    My question is this, does it matter the order of how the scripts appear in the code? When I test the page, I initially see the images, and then when I go to rollover the image, both the rolloer image and the "3rd" image do not appear.

    Any help is much appreciated, and I hope this is clear!

    Thanks!
    shaparis

  • #2
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,059
    Thanks
    0
    Thanked 13 Times in 13 Posts
    I use this rule of thumb:

    Unless a script is requiring the existence of an object/element, your script should be loaded inside your head tags...

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Another thing to make sure of when u add scripts


    make sure that no function names in the new scrips corresponds to some in the old scripts.

    make sure that no global variable has the same name as global varirable in the old scripts.

    if any of the occurs change the names either in new script or old script, do not change the names in both scripts.


  •  

    Posting Permissions

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