Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:22

Dynamic Top of Page?


Poster: wendy
Dated: Saturday August 2 2003 - 16:22:03 BST

I would like to add a top of page menu that follows the user down the page. When the user clicks on the "Top of Page" menu item it will take them back up to the top.

Very simple right? Well, my problem is that I want this script to run on every page. How do I specify the top of page in the .js file so that it will take me to top of whatever page the user is viewing without having to create a separate .js file for each page?

Thanks

Wendy


Poster: Hergio
Dated: Monday August 4 2003 - 2:02:15 BST

Have the top of link page be a # symbol. So the link would be url="#". The pound symbol, or hash symbol as its known, simply means to move to the top of the current page. Its used to have pages load at specific parts of the page, called an anchor, but thats another story. Just a # should work for any page.


Poster: wendy
Dated: Monday August 4 2003 - 19:22:16 BST

Thanks for your reply.

I tried what you suggested and the link doesn't go anywhere when I use "#". In fact I went to the sample pages where this # is also used and the link doesn't respond either. It just show a "#" in the URL bar at the bottom of my browser, but nothing happens. I'm using Explorer 6...any thoughts?

Thanks again.

Wendy


Poster: Ruth
Dated: Sunday August 10 2003 - 9:25:29 BST

Hi Wendy,
I also need this, and it is an anchor link. Did you figure it out? I've tried everything I can think of to do this, I even tried # target=_top it does function as a link but it takes me back to the main index/entry page.

Ruth


Poster: Ruth
Dated: Monday August 11 2003 - 4:53:58 BST

Hi Wendy,
Thank Dave for the help, he figured it out for me on the v3 menu. This is what I put and it works;

,"Back to Menu","#top",,,1


of course you may have more things in the code, but it's the "#top" that works.

Ruth


Poster: Hergio
Dated: Monday August 11 2003 - 13:21:08 BST

Wendy, yeah thanks to Ruth for mentioning that. Just so you know, you don't have to put an anchor in your paged called top for this to work, just anything after the # symbol will work. The reason is the browser will scroll to the top of the page if cannot find the anchor mentioned in your link. Best of luck.