dreamweaver mx course - dreamweaver top page
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver mx course - Dreamweaver - top of page link

dreamweaver mx course - Dreamweaver - top of page link

resolvedResolved · Low Priority · Version Standard

replyReply Sun 24 Dec 2006, 11:06Delegate Elaine said...

Elaine has attended:
Dreamweaver 8 Introduction course

Dreamweaver - top of page link

I am trying to create a 'return to top of page' link at the end of each page on my site. How do I do this?

Many thanks,

Elaine Warriner

For upcoming training course dates see: Pricing & availability

replyReply Mon 25 Dec 2006, 00:04Trainer Rich said...

#top anchor

Hi Elaine,

Hope you enjoyed the course last week.

A solution to your question is to create an anchor at the top of your page, perhaps as the first element after <body> tag (before any text, images or tables). To do this, place your cursor in desired insertion point and choose Insert > Anchor. Sometimes it's called Named Anchor.

Normally you would name this anchor top.

You then need to link to the anchor. There are a few ways to do this, but the easiest is to create a link to simply #top (or whatever you've called the anchor). Note the use of the hash character before the name, this is how you indicate you are linking to an anchor, not another web page.

Another way is to simply link to a hash. This is a built in shortcut for most browsers which jumps the user back to the top of the page.

The code will look like this:
<a href="#">Back to top</a>

I trust this answers your question. Have a lovely Christmas.

Regards, Rich

 

Dreamweaver tip:

JumpMenu in new window

When inserting a jumpmenu to a page, the only option available for 'open in' is usually 'main window'. There would be other options available if the page was a frameset.

To change the jumpmenu to open in a new window, change the target parameter of the selectbox in your code to 'window.open()'.

eg.
<select name="menu1" onChange="MM_jumpMenu('window.open()',this,0)">


source:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16166&sliceId=1

View all Dreamweaver hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard