Announcement

Collapse
No announcement yet.

Image Pop-up

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

    Image Pop-up

    Hi
    I am using components to up sell products and would like a way of creating a pop-up image when customer clicks on the component name. Is java the best way to achieve this and if so, can someone recommend a script thats quick. I have found a couple but they seem to take an eternity to load the image. The image is 180 x 180 and is less than 3kb.
    .
    Or am I over complicating things and Actinic already does this?
    Thank
    K

    #2
    Create an new variable "ComponentImage" of type Filename, place of setting Component. Also check "Allow Empty Value".

    In your component layout "Standard Component Layout", replace the line:
    Code:
    <Actinic:Variable Name="ComponentDisplayLabel"/>
    with:
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ComponentImage%22%20%2f%3e%20%21%3d%20%22%22">
    	<a href="javascript:ShowPopUp('<actinic:variable name="ComponentImage" />',180,180)">
    </actinic:block>
    <Actinic:Variable Name="ComponentDisplayLabel"/>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ComponentImage%22%20%2f%3e%20%21%3d%20%22%22">
    	</a>
    </actinic:block>
    Now your Components will have a new variable ComponentImage available (under Properties) that you can browse for an image to display.

    See the Starter Guide for tutorials on any bits you don't understand.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman, works beautifully.

      Comment

      Working...
      X