Announcement

Collapse
No announcement yet.

Opening New Window on Clicking an Image

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

    Opening New Window on Clicking an Image

    How do I do this?

    I've read in past posts about how to have a text link open the URL in a new window but I only want the image to be clickable. Can this be done... if so how do I do it?

    #2
    Use this....

    <a target="_blank" href="http://www.whateverpageyouwant.com/">
    Football Heaven

    For all kinds of football souvenirs and memorabilia.

    Comment


      #3
      You can either do what George suggests above - putting an link tag around your image - or use javascript to do it:
      <a href="javascript:ShowPopUp(image2.jpg',440,440)"><img src="image1.jpg" border="0" ></a>
      So by clicking on image1 you get a popup of image2.

      Duncan R

      Comment


        #4
        I've tried George's suggestion but it Actinic won't allow me to input the tags around the image file name in the fragment. Am I doing something wrong or can that not be done.

        Duncan if I use your idea where will I need to place the code? And how do I alter it if I want to link an external site to the image.

        My purpose of doing this is that I want to create a Links page. Each link will be a fragment. Each fragment will contain an image of the logo of the business I am linking to, The name of the business and a short description. I want these links to open in external pages so that my site doesn't close. The only way I want people to be able to link to the external site is via the logo image.

        Comment


          #5
          You can put images in fragments - either choose the image with text fragment template or precede all your html with !!< and end it with >!! I think you can only do this once in a fragment. I code all my fragments in html.
          So the link would be for example:
          !!<blah html blah html blah<a href="javascript:ShowPopUp(image2.jpg',440,440)"><img src="image1.jpg" border="0" ></a>blah html blah html blah>!!

          If these are standard html site pages though you might be better off using the other html method above instread of javascript - just put inside the same type 'limiters' as above

          Duncan R

          Comment


            #6
            I still can't get this to work.

            The fragment that I am using is within the brochure section - an image to the left with title and text. I only want the image to be clickable. I have scoured the advanced manual but this is refering to catalog pages.

            If I try to put in !!<< etc in the Image field of the fragment it won't allow me to put the < sign in the box.

            Is there some other way of doing this or is it not possible to link only an image to an external page?

            Comment


              #7
              If you're using the fragment template that has image and text then you will need to modify it to allow the image to be clickable with normal html. If you are using a text only fragment template then you can add a clickable image into the descriptive part with !<<.html.>!!.

              Duncan R

              Comment


                #8
                Thanks Duncan,

                I think I'll give the text only fragment a go and insert the image into that - manually changing the html in the image layout is a bit too much for my brain at the moment.

                Comment

                Working...
                X