Announcement

Collapse
No announcement yet.

Have two images in Pop up window

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

    Have two images in Pop up window

    I need to have two images displayed in the pop up window or have two pop up windows

    Can anyone tell me how to do either, preferably two seperate pop ups in one product
    Chris Ashdown

    #2
    Adding this into the product description should work fine:
    !!<<a href="javascript:ShowPopUp('image.jpg',440,440)">Pop up</a>>!!

    Change the 440 to suit the popup window size that you want.

    The ShowPopUp function is already in actiniccore.js

    Comment


      #3
      Many thanks Duncan
      Chris Ashdown

      Comment


        #4
        Watch out! Typo above. It should be

        !!<<a href="javascript:ShowPopUp('image.jpg',440,440)">Pop up</a>>!!

        Also you can automate this by creating a Product level Variable called ExtraImage of type Filename. Also check Allow Empty value.

        Then add the following code to your Product Layout(s) wherever you want the link to the popup to be displayed.
        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22ExtraImage%22%20%2f%3e%20%20%21%3d%20%22%22" />
        	<a href="javascript:ShowPopUp('<actinic:variable name="ExtraImage" encoding="perl" selectable="false" />',400,500)">
        	See more...
        	</a>
        </actinic:block>
        Now you can select your image in the Product Details / Properties.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Woooops. Sorry - corrected. Cutting and pasting without checking.

          Comment


            #6
            Wel spotted Norman, I was just comming back with the question and yougave me the answer before I asked

            Must be a first time the forum has given the answer before being asked

            Even a goat could not do that!!

            Thanks to Both of you
            Chris Ashdown

            Comment


              #7
              I've just amended my post to show a more automatic way of doing this.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment

              Working...
              X