raeB Posted April 22, 2005 Posted April 22, 2005 Hi, I want to have a 'back to top' link in my footer, however it directs to the top of the index.php everytime, and not the page the user is on. Anyone know how to correct this? <a href="#top">BACK TO TOP </a>
Guest Posted April 22, 2005 Posted April 22, 2005 Leon, You need to put the page name in: <a href="current_page.php#top">BACK TO TOP </a> ed
raeB Posted April 22, 2005 Author Posted April 22, 2005 Leon, You need to put the page name in: <a href="current_page.php#top">BACK TO TOP </a> ed <{POST_SNAPBACK}> That won't work because my 'back to top' link is located in the footer, which exists on all pages, so I cant link pages directly.
♥Vger Posted April 23, 2005 Posted April 23, 2005 You've answered your own question really. You can't use a 'back to top' link from a footer which appears on every page. Vger
Guest Posted April 23, 2005 Posted April 23, 2005 So set a variable with the name of the file in the page and use the variable in the footer. ed
Recommended Posts
Archived
This topic is now archived and is closed to further replies.