Named anchor doesn't work

Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Jul 2007
Posts: 91
Reputation: Reliable is an unknown quantity at this point 
Solved Threads: 2
Reliable Reliable is offline Offline
Junior Poster in Training

Named anchor doesn't work

 
0
  #1
Aug 15th, 2008
Hello everyone,

I was a little embarrassed today as I was presenting my portfolio to a potential client I took him a site I created which contains a named anchor. When I pressed it it didn't go "back to top"; it stayed put.

After further investigation it furns out that it works in IE but not in Firefox. I have FF2 on my laptop since it's an older P3, and I have FF3 on my desktop. It doesn't work in either version. If I go to IE, however, it takes "back to top". Any reason why? Here is the link to the page.
http://www.sweettoothdaintycakes.com...Cakes.html#top
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Named anchor doesn't work

 
0
  #2
Aug 17th, 2008
After the body tag, throw in <a name="top"></a>
  1. <body style="background-color:#4b2600;" onload="MM_preloadImages('images/home_over.gif','images/our-cakes_over.gif','images/Gourmet-Gifts_over.gif','images/Order_over.gif','images/Wholesale_over.gif','images/faq_over.jpg')">
  2. <a name="top"></a>
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 91
Reputation: Reliable is an unknown quantity at this point 
Solved Threads: 2
Reliable Reliable is offline Offline
Junior Poster in Training

Re: Named anchor doesn't work

 
0
  #3
Aug 18th, 2008
Thanks. I'll try that.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Named anchor doesn't work

 
0
  #4
Aug 19th, 2008
Have you tried it out yet?
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 95
Reputation: omol is an unknown quantity at this point 
Solved Threads: 4
omol's Avatar
omol omol is offline Offline
Junior Poster in Training

Re: Named anchor doesn't work

 
0
  #5
Aug 22nd, 2008
The reason it is not working in ff is that you do not have an element named top. The reason it works in ie is because it goes to the top and scrolls down, it can;t find it so stays at the top. FF is a little more cleve and will just go straight to #top. It can't find it so it stays put. Also move your css to a seprate file that way you only have to load it once rather than on every single page. Saves both time and bandwidth.
asm
{ "\x04f\x06d\x06f\x06c" }
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 51
Reputation: jb1ker is an unknown quantity at this point 
Solved Threads: 2
jb1ker's Avatar
jb1ker jb1ker is offline Offline
Junior Poster in Training

Re: Named anchor doesn't work

 
0
  #6
Sep 24th, 2008
Seems omol solved it. Please click solved.
"I believe in everything until it's disproved. So I believe in fairies, myths, dragons. It all exists, even if it's in your mind. Who's to say that dreams aren't as real as the here and now?" - John Lennon.

Vrijwilligerswerk Zuid-Afrika | Facility Management Software | Consultancy
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Site Layout and Usability Forum


Views: 2276 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Site Layout and Usability
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC