PDA

View Full Version : Here is my JS, could I add a scrolling feature


JlynnMc10
02-07-2003, 03:41 PM
Here is my menu.js and I was wondering if I could add a scrolling feature to this menu (an arrow at the botttom of the menu that when the mouse moves over it the menu moves down.

Here is the setup: The webpage sets up the menubar headers (which are just images) and then reads the values from the database and stores all the menu information in DIM strMenuData. Then: <div id="Menu 0" style=display:none;"> <%=strMenuData%> Then the menu.js creates the menus with their respective data.

cg9com
02-07-2003, 03:53 PM
errr, whats with all the symbols everywhere.

JlynnMc10
02-07-2003, 04:02 PM
What do you mean?

cg9com
02-07-2003, 10:09 PM
@ work with ie5 i saw a bunch of wingding type symbols everywhere, overlapping your code ... musta been those crappy comps. or something heh, no worries
are you looking for a css scrolling solution?

JlynnMc10
02-07-2003, 11:26 PM
I found some javascript that makes the menu scroll: http://members.cox.net/jmcdonald101/index.htm

But I need to take that same idea and add it to my 3-level menu like the one found here: http://members.cox.net/menu/
but with the menu I am designing it reads from a database and only certain menus need to be scrollable.

The tricky part, and where I am completly confused, is that I need to add that scroll code to or link it to menu.js that actually creates all of the menus-- I didn't write this .js and the person who did is no longer with me-- and this .js takes the string of data that the webpage gathered from the database seen below and creates the menus.

The call the website makes to set up the menu that needs to be scrollable:
<div id="Menu0" style="display:none;">
<%strMenuData5>
</div>

I have included:
menu.txt -- menu.js that makes the menus
scrollmenu.txt -- script used at the first web address

I understand what is going on pretty well, but I am still learning and could use some guidance. Thanks.

JlynnMc10
02-07-2003, 11:27 PM
Here is the other file I mentioned above: