X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Create a "go to top" Link (https://forum.x-cart.com/showthread.php?t=43839)

onfine 11-23-2008 11:52 PM

Create a "go to top" Link
 
Does anybody know how to create a hyperlink to the top of one of my pages?

I tried like below but it doesn't work.

<a href="#top" >GO TO TOP</a>

Thank you.

-Kenny

4.1.11 gold [Unix]
PHP 4.4.9
MySQL 5.0

Yurij 11-24-2008 12:20 AM

Re: Create a "go to top" Link
 
Quote:

Originally Posted by onfine
Does anybody know how to create a hyperlink to the top of one of my pages?

I tried like below but it doesn't work.

<a href="#top" >GO TO TOP</a>

Thank you.

-Kenny

4.1.11 gold [Unix]
PHP 4.4.9
MySQL 5.0



Try use next example:

PHP Code:

link:
<
a href="#Howsoon">* How soon will I receive my order?</a>


text:
<
a name="Howsoon">How soon will I receive my order?</a


JWait 11-24-2008 04:54 AM

Re: Create a "go to top" Link
 
Kenny, Yurji used a strange example but what he seems to be saying is did you add an anchor (<a name="top">&nbsp;</a>) at the top of the page? I would put it in head.tpl.

PhilJ 11-24-2008 04:59 AM

Re: Create a "go to top" Link
 
Just this on its own should work...
Code:

<a href="#">Top</a>


All times are GMT -8. The time now is 02:19 AM.

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