Results 1 to 5 of 5

Thread: Jim's DHTML 5.7 Menu and Up-Down Scroller

  1. #1
    Join Date
    Feb 2005
    Location
    California
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jim's DHTML 5.7 Menu and Up-Down Scroller

    I am trying to use Jim's DHTML Menu 5.7 (http://www.dynamicdrive.com/dynamici...menu/index.htm)
    along with another script, Pausing Up-Down Message Scroller
    (http://www.dynamicdrive.com/dynamicindex2/crosstick.htm) on the same page. Only one will work.

    Can I change some parameter or variable to get both of these to work on the same page. I've noticed that with other scripts, too.

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi - please don't double post

    Regarding multiple scripts on one page, we generally don't support this as stated in the forum stickies. Try seeing if there any conflicting variable names, or refer to the link in my signature about multiple scripts.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Feb 2005
    Location
    LaGrange, GA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default same problem

    Has anyone had success when using both of these scripts on one page? Both look great and I'd really like to use them.

    Thanks!

  4. #4
    Join Date
    Sep 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try looking in the second script for the line:

    Code:
    window.onload=whatever
    if the second scrip has this, then there is a conflict in the onload event handler. to fix it, add the function from the second script into the body tag

    Code:
    <body onload="function1();whatever()">
    and then remove the window.onload=whater statement from the second script.

  5. #5
    Join Date
    Sep 2004
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Got it working

    I managed to get them both working. Look for the line of code:

    Code:
    window.onload=startscroll

    It is about 2/3 of the way down the script. just rem the line out as such:

    Code:
    //window.onload=startscroll
    then go back to the <body> tag and modify the onload statement to:

    Code:
    <body onload="init();startscroll()">
    then your page should run. See the attached file (will need to change the extension to .html). You will need to either change the referances for the menu stuff or put your menu stuff in a folder on your root c drive called menutest.

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
  •