Announcement

Collapse
No announcement yet.

Popup window, image enlarge ..

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

    Popup window, image enlarge ..

    I want a popup window like the one I get when I use Extended Information Popup Window in my PRODUCTS details.

    I want to modify my Primary template and create one called My_PrimaryPopup.html and add an image of a magnifying glass to act as a button to call the popup browser window.

    I have a gif of the magnifying glass, and want to give it the right properties and perhaps a CUSTOMVAR of the popup image, so the right image pop's up for different sections.

    I seem to only be able to generate html popup's manually in D'Weaver, which will mean that I have a dozen's of primary templates is there any other way of doing this ?

    Thanks, Simon.
    esafetysigns.co.uk
    your instant download portal for self printable health and safety signs and posters
    ... download once use as many times as you like !


    http://www.esafetysigns.co.uk/index.html
    http://www.esafetysigns.co.uk/acatalog/index.html

    #2
    In your primary template add either (hard coded links)

    Code:
    <a href="javascript:ShowPopUp('mypopupimage.jpg',400,500);"><img border=0 src="mypopup.gif"></a>
    And upload mypopupimage.jpg via Advanced / Additional Files.

    Or, if you want to use a CUSTOMVAR then use
    Code:
    <a href="javascript:ShowPopUp('CUSTOMVAR:MYPOPUPIMAGE',400,500);"><img border=0 src="mypopup.gif"></a>
    Here Actinic will upload the image for you (assuming you've checked Is File Name for the CUSTOMVAR)

    The 400 and 500 are the width and height of the popup.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Works a treat, thanks.

      Out of interest??? is it possible to put a timer on how long the popup is open ?

      I prefer not to have a "close window" button, as I am a lazy browser as are many users, and perhaps after say 5 seconds window closes on its own ?

      Just a thought.

      Thanks, S.
      esafetysigns.co.uk
      your instant download portal for self printable health and safety signs and posters
      ... download once use as many times as you like !


      http://www.esafetysigns.co.uk/index.html
      http://www.esafetysigns.co.uk/acatalog/index.html

      Comment


        #4
        What I have noticed is that the image is scaled to the window size. In this case 400 x 500 px.

        Is it possible to change this ShowPopup script to open the window sized 400 x 500 but ensure the image displays at its full size even if this means only a portion of it is visible.

        OR

        .... have the browser window open to the image original size ??

        Thanks, Simon.
        esafetysigns.co.uk
        your instant download portal for self printable health and safety signs and posters
        ... download once use as many times as you like !


        http://www.esafetysigns.co.uk/index.html
        http://www.esafetysigns.co.uk/acatalog/index.html

        Comment


          #5
          I think it will only resize the image to the window if the contained image is a gif, try it with a jpg and see if it works ok.

          Comment

          Working...
          X