HighDots Forums  

need help with a simple code

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss need help with a simple code in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eddie
 
Posts: n/a

Default need help with a simple code - 11-25-2004 , 10:17 AM









Hi All,
I am trying to put a link into a page whereby if a viewer of the page is way
down the screen a link takes him/her back to the top of the page.
I know this is very simple but it is a link I have not used for years and
cannot for the life of me think of how I used to do it or find any help in
dreamweaver.
OK I am getting old and maybe the brain is going.
Can someone answer this simple question and reply with the source code.
Thank you
Eddie



Reply With Quote
  #2  
Old   
Terry Hughes
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 12:00 PM







"eddie" <eddiej (AT) dsl (DOT) pipex.com> wrote

Quote:


Hi All,
I am trying to put a link into a page whereby if a viewer of the page is
way
down the screen a link takes him/her back to the top of the page.
I know this is very simple but it is a link I have not used for years and
cannot for the life of me think of how I used to do it or find any help in
dreamweaver.
OK I am getting old and maybe the brain is going.
Can someone answer this simple question and reply with the source code.
Thank you
Eddie

2 quick ways - there are others.

<a href="#">Top</a> will take the user to the top of the page
or
<a href="#top">Top</a> is a named anchor and can be positioned at the start
of your content, which is not necessarily at the very top of the page.

HTH

Terry




Reply With Quote
  #3  
Old   
eddie
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 12:09 PM



Hello Terry
Thank you very much for your help,I know it was a simple problem but just
couldn't get my head around this one.
Thanks again.
Eddie

"Terry Hughes" <terryuse (AT) cashette (DOT) com> wrote

Quote:
"eddie" <eddiej (AT) dsl (DOT) pipex.com> wrote in message
news:41a5f781$0$370$cc9e4d1f (AT) news (DOT) dial.pipex.com...



Hi All,
I am trying to put a link into a page whereby if a viewer of the page is
way
down the screen a link takes him/her back to the top of the page.
I know this is very simple but it is a link I have not used for years and
cannot for the life of me think of how I used to do it or find any help
in
dreamweaver.
OK I am getting old and maybe the brain is going.
Can someone answer this simple question and reply with the source code.
Thank you
Eddie


2 quick ways - there are others.

a href="#">Top</a> will take the user to the top of the page
or
a href="#top">Top</a> is a named anchor and can be positioned at the
start
of your content, which is not necessarily at the very top of the page.

HTH

Terry





Reply With Quote
  #4  
Old   
Terry Hughes
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 12:26 PM




"Terry Hughes" <terryuse (AT) cashette (DOT) com> wrote


....assuming, of course, that you have positioned a named anchor at the start
of your content or whatever.

<a name="top" id="top"></a>Content blah blah blah



Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 12:29 PM



.oO(Terry Hughes)

Quote:
...assuming, of course, that you have positioned a named anchor at the start
of your content or whatever.

a name="top" id="top"></a>Content blah blah blah
Named anchors should not be empty.

Micha


Reply With Quote
  #6  
Old   
HiTech
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 01:41 PM



The code would look like this:


<a name="top_of_page" id="top_of_page"></a><!-- you place this were
the viewer should jump back to -->
<a href="#top_of_page">Go to the top of this page</a><!-- This is the
Link -->



"eddie" <eddiej (AT) dsl (DOT) pipex.com> wrote

Quote:
Hi All,
I am trying to put a link into a page whereby if a viewer of the page is way
down the screen a link takes him/her back to the top of the page.
I know this is very simple but it is a link I have not used for years and
cannot for the life of me think of how I used to do it or find any help in
dreamweaver.
OK I am getting old and maybe the brain is going.
Can someone answer this simple question and reply with the source code.
Thank you
Eddie

Reply With Quote
  #7  
Old   
Terry Hughes
 
Posts: n/a

Default Re: need help with a simple code - 11-25-2004 , 04:42 PM




"Michael Fesser" <netizen (AT) gmx (DOT) net> wrote

Quote:
Named anchors should not be empty.

Micha
Neither should my head but it is today :-)

Terry




Reply With Quote
  #8  
Old   
eddie
 
Posts: n/a

Default Re: need help with a simple code - 11-26-2004 , 03:42 AM



Hello all who replied,
Thank you for the help,reference Terry with the empty head,not as empty as
mine,but thanks again everyone
Eddie

"eddie" <eddiej (AT) dsl (DOT) pipex.com> wrote

Quote:


Hi All,
I am trying to put a link into a page whereby if a viewer of the page is
way down the screen a link takes him/her back to the top of the page.
I know this is very simple but it is a link I have not used for years and
cannot for the life of me think of how I used to do it or find any help in
dreamweaver.
OK I am getting old and maybe the brain is going.
Can someone answer this simple question and reply with the source code.
Thank you
Eddie




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.