It is currently Mon Jul 28, 2014 10:17 am Advanced search

Injecting html code into image expander

Technical support, bug reports, feature requests and more.

Injecting html code into image expander

Postby iamntz » Thu Feb 09, 2012 8:54 pm

Hello. I'm new to this forum and also a new user of HS.

What I'm trying to achieve is something very much like current facebook image viewer.
The very first (and logical) solution was to load image as an iframe, with all those comments & everything else. But i noticed that images are not preloaded.
So i assume the only solution is to load the image as a normal image gallery then inject the code for comments in place. (with a scrollbar and all the bells & whistles)

I succeeded to do something using `onBeforeExpand` and `createOverlay` but those are placed over the picture and absolutely positioned, not under the picture.

There is an easy way to achieve this? As in built in function or something?
iamntz
 
Posts: 1
Joined: Thu Feb 09, 2012 8:45 pm

Re: Injecting html code into image expander

Postby torstein.honsi » Mon Feb 13, 2012 12:58 pm

Code: Select all
I succeeded to do something using `onBeforeExpand` and `createOverlay` but those are placed over the picture and absolutely positioned, not under the picture.


You can position them wherever you like - you want to set position: 'below'. See http://highslide.com/ref/hs.Expander.pr ... ateOverlay => position.

This is infact just a more complicated way of adding a caption - see http://highslide.com/tutorial#captions-headings
Torstein Hønsi
CTO, Founder
Highsoft Solutions
User avatar
torstein.honsi
Site Admin
 
Posts: 9185
Joined: Thu Nov 09, 2006 1:22 pm
Location: Vik i Sogn, Norway


Return to Highslide JS Usage

Who is online

Users browsing this forum: Bing [Bot] and 4 guests