| | |
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:
Solved Threads: 2
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
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
After the body tag, throw in
<a name="top"></a> html Syntax (Toggle Plain Text)
<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')"> <a name="top"></a>
Lost time is never found again.
- Benjamin Franklin
- Benjamin Franklin
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" }
{ "\x04f\x06d\x06f\x06c" }
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
Vrijwilligerswerk Zuid-Afrika | Facility Management Software | Consultancy
![]() |
Similar Threads
- Is this the correct Code ? (ASP.NET)
- updating a JList (Java)
Other Threads in the Site Layout and Usability Forum
- Previous Thread: How do I wordwrap in Frontpage?
- Next Thread: [HELP] Typing n
Views: 2276 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Site Layout and Usability
blog blogging content cookies customer design development dreamweaver duplicate email evaluation filesharing firefox flash gilbane google html itunes javascript kazaa layout music napster peertopeer photoshop remote remoteserver satellitenavigation satnav server sessions site tables template tips tomtom url wave web website websitedesignreview web_development web_sites wordpress





