Results 1 to 3 of 3

Thread: i am trying to use two different scripts but they are not working simultaneously

  1. #1
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question i am trying to use two different scripts but they are not working simultaneously

    1) Script Title:
    /***********************************************
    * Switch Menu script- by Martial B of http://getElementById.com/
    * Modified by Dynamic Drive for format & NS4/IE4 compatibility
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    2)Script URL:
    http://www.dynamicdrive.com/dynamici...switchmenu.htm

    1) Script Title (2):
    /***********************************************
    * Cool DHTML tooltip script II- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    2)Script URL:
    http://www.dynamicdrive.com/dynamici...mltooltip2.htm
    3) Describe problem:

    i m trying to use both scripts togather on my web site, but if i use both then only the first one, menu is working and no tool tips are appearing, and if i remove only the javascrpt code from the head for swtch menu, then tool tips start appearing
    pl help me, i have invested alot of time
    thank you in advance
    bye

  2. #2
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have the same problem . I use two scripts in my website but only one of them is working.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here is what I often recommend folks look into:

    See this tutorial for one possible solution.

    Aside from the tutorial above, which usually is the solution when the problem is two different scripts, you may need to consult:

    http://www.howtocreate.co.uk/tutoria...allshow#refcon

    Which explains how two scripts on the same page may not use the same set of variable names, id names, function names, etc. This is especially important if the problem is two copies of the same script on a page but, can come into play with two different scripts when the first step (tutorial) won't fix it.

    One other approach that works in both situations, if adaptable to one (or more) of the scripts, is to put one script in a borderless iframe. It will look like it is on the same page but, since it really is on a separate page, conflicts are no longer an issue.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •