Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.srcAn alternative way to define the URL of the image or HTML content.
The default way to define the URL is through the The hs.src parameter is also the best way to specify the URL when you open the expander from an input button or other HTML elements. Details
ExampleProviding a richer fallback pageThis example requires that you have some kind of dynamic page that can show your image. Mark up your thumbnail like this: <a href="../showimage.php?src=samples/full5.jpg" class="highslide" onclick="return hs.expand(this, { src: '../samples/full5.jpg' })"> <img style="margin-top: 10px" width="120" height="102" src="../samples/thumb5.jpg" alt="Highslide JS" title="Click to enlarge" /> </a> To see how the fallback page looks, control-click the thumbnail to open it in a new tab (FF) or rightclick and open in new tab (IE7), or disable JavaScript in your browser. |