Announcement

Collapse
No announcement yet.

home link on header

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

    home link on header

    Hi

    I am sure this has probably been asked a million and one times...

    Can someone tell me how to put a 'home' button and link on the top header. At the moment I have site map, contact us and terms and conditions and the client has decided they would like a home link as well.

    Thanks

    Ben

    #2
    If you go into Design | Options | Misc tab you will find areas set asside for the Home Page Link and Information Link.

    Comment


      #3
      Thanks for the reply.

      How can I insert another home page link though? I can't see how to do that from the design options.

      Don't I need to be adding a netquotevar somewhere?

      I have tried adding netquotevar:navbhome in act_primary with the other nav images, but all it does is put the button there without a link.

      Where am I going wrong?

      Ben.

      Comment


        #4
        If all you have added is NETQUOTEVAR:NAVBHOME, then that should add the image and links, but down to the individual elements you can use for links NETQUOTEVAR:NAVBHOMELINK.

        Comment


          #5
          Hi

          Thanks for that. I have now got it to work. Sort of.

          I can get it to show the home image in the top nav bar, and the link works. This is fine, but the javascript mouseover doesn't work which isn't the end of the world. The other problem is that it uses the same home image which appears on the side navigation. Is there anyway to use a different image to this one? Problem being it has a line on it acting as a divider and this naturally looks wrong when it is used at the top.

          I hope you see what I mean.

          Thanks

          Ben.

          Comment


            #6
            OK - you need to do a custom HTML button in the following style....

            Assuming that:

            home1.gif is the name of the normal icon image
            home2.gif is the name of the highlight icon image

            This code will insert an image that rolls over:

            <A HREF="NETQUOTEVAR:NAVBHOMELINK" TARGET="_self" onMouseOver="SwapImage('home_img,'home2.gif')" onMouseOut="RestoreImage()">
            <img src="home1.gif" name="home_img" border="0" alt="Home Page">
            </a>

            In order to preload the highlight image, which will make it appear more quickly online, then locate the following code within the <body> tag in Act_Primary.html:
            onLoad="NETQUOTEVAR:ONLOAD"
            Change it to read
            onLoad="NETQUOTEVAR:ONLOAD;PreloadImages('home2.gif')"

            FYI this was all in the 'DesignGuide.pdf' under a heading of 'Inserting Custom Navigation Icons'

            Comment


              #7
              Hi Chris.

              Thanks for the reply.

              I have done all of what you said and it sort of works. For some reason though, the mouseover isn't working. The image1.gif stays displayed all the time.

              This is not the end of the world as the most important thing was just getting a link back to the home page.

              Any ideas what is wrong though?

              Ben.

              Comment


                #8
                I'll happily take a look at your code if you show me the edited template and also give me a URL with the button on it.

                Comment


                  #9
                  Hi Chris.

                  Thanks for this. Here is the url to see the button: http://www.ukdesignweb.co.uk/~portab...log/index.html

                  I also noticed that it is somehow causing an error on the page.

                  I have attached the file for you (the code was too long)

                  Thanks

                  Ben
                  Attached Files

                  Comment


                    #10
                    You are just missing an apostrophe:

                    <A HREF="NETQUOTEVAR:NAVBHOMELINK" TARGET="_self" onMouseOver="SwapImage('home_img','h_home2.gif')" onMouseOut="RestoreImage()">
                    <img src="h_home1.gif" name="home_img" border="0" alt="Home Page">
                    </a>

                    Comment


                      #11
                      Cheers Chris

                      Works fine now.

                      Ben.

                      Comment

                      Working...
                      X