PDA

View Full Version : Jim's DHTML 5.7 Menu and Up-Down Scroller



kjohnson
02-06-2005, 05:54 AM
I am trying to use Jim's DHTML Menu 5.7 (http://www.dynamicdrive.com/dynamicindex1/jimmenu/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

cr3ative
02-06-2005, 12:12 PM
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

cloud
02-17-2005, 09:33 PM
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!

JF sly
03-11-2005, 06:18 PM
Try looking in the second script for the line:



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



<body onload="function1();whatever()">


and then remove the window.onload=whater statement from the second script.

JF sly
03-11-2005, 06:37 PM
I managed to get them both working. Look for the line of code:



window.onload=startscroll



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



//window.onload=startscroll


then go back to the <body> tag and modify the onload statement to:



<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.