Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



hs.flushImgSize

Flush IE's cashed image width and height after an image is physically resized.

Suppose you have an image with size 300x450. Highslide works fine. Now you replace this image with a larger one, say 400x600 (with the same file name). However, everytime you click on the thumbnail, Highslide remembers the old image size.

The fix is to set hs.flushImgSize to true, refresh the page and open the expanding image. Remember to remove hs.flushImgSize again, or your server will get a lot of requests for a file called 'null'.

Details

Type boolean
Default value false
Overrideable inline No

Example

Flush

Put this code in the head section of your page. Remove it again after you have run the expander once.

<script type="text/javascript">
   hs.flushImgSize = true;
</script>
New, Edit