sai prajeeth
Posts: 16
Joined: Wed Feb 26, 2014 11:25 am

disabling the caption specificaly for some images

is there any way to disable the caption specificaly for some images...i am using the-caption id for captions...so that i will have
same captions for some images but the thing is dat i want to diable it for some content please suggest me
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: disabling the caption specificaly for some images

According to the API, hs.captionId can be overridden inline. So...

In the <head> section:

Code: Select all

<script type="text/javascript">
hs.captionId = 'the-caption';
</script>
Somewhere in the <body> section, the caption for all images:

Code: Select all

<div class="highslide-caption" id="the-caption">Caption for all images.</div>
Markup for an image that should not use the common caption, by setting captionId to null:

Code: Select all

<a href="gallery2.jpg" class="highslide" onclick="return hs.expand(this, {captionId: null} )">
	<img src="gallery2.thumb.jpg" alt="Highslide JS"
		title="Click to enlarge" /></a>
You could also set the captionId to a different div by giving it a different name.
sai prajeeth
Posts: 16
Joined: Wed Feb 26, 2014 11:25 am

Re: disabling the caption specificaly for some images

thank you very much its working :D
all the images and contents im using it in highslide-gallery div i mean slideshow option..so whenever i insert html content im getting controls i.e. left buttton,right button so i want to popup it as simple modal window how can i do this

Return to “Highslide JS Usage”