Announcement

Collapse
No announcement yet.

help please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help please

    i have a link at the bottom of each of my store pages to return user to the top of page as follows:
    <a href="#"> Return to top</a>

    This works fine UNLESS i enter any page via the search screen, in which case the 'return to top' takes me to the front page of the catalog. WHY????

    For example go to www.dislocate-records.com/acatalog, type 'candy' in search box, select a choice and on the page that is displayed, scroll to bottom and click 'return to top'. It takes you to the top - of a different page!
    I think it has something to do with the page being displayed via the search script.

    Can anyone provide a workaround for this?

    TIA,
    Robynne

    #2
    Hi Robynne,

    The problem is that the base href is being added to the front of your link. You could try one of the following:

    <a href="javascript:window.scrollTo(0,0)">Back to top of page</a>

    or

    <img src="image.gif" width="x" height="x" border="0" alt="Back to top" onClick="java script:window.scrollTo(0,0)">

    or

    <img src="image.gif" width="x" height="x" border="0" alt="Back to top" onClick="GotoAnchor('top')">

    With the last option you will have to create an anchor at the top of the page.

    I hope this helps.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Tracey,
      thanks heaps - i'll give it a go.
      cheers,
      Robynne

      Comment


        #4
        Another suggestion

        You could also use the proper Server Variable
        for the OS that your site is on.
        Windows, UNIX, etc.
        Best Regards,
        John King
        Web Master - BizPlus2000.com
        Web Hosting and Design for Today's Internet!
        Visit <a href="http://bizplus2000.com">BizPlus2000.com</a>

        Comment


          #5
          Que???

          Hi John,
          excuse my ignorance, but what is
          the proper server variable
          (I'm good at other stuff...,honest )
          My site runs on a Unix server.

          Comment


            #6
            Server Variables

            Server variables are kind of like server side includes.
            (as they can be used similarly)
            They get information from the server... like what
            web page your viewing.
            But before I go any further and confuse you even
            more, please tell me if you are running on a UNIX
            or Windows Server
            Best Regards,
            John King
            Web Master - BizPlus2000.com
            Web Hosting and Design for Today's Internet!
            Visit <a href="http://bizplus2000.com">BizPlus2000.com</a>

            Comment


              #7
              John,
              I'm running on a UNIX server.

              Comment

              Working...
              X