I'm still experimenting with this "read more" html popup issue and have a problem I can't seem to fix.
In this example (see code below), each large image has a "Read more" link in the caption. But clicking those links (1) causes the thumbstrip to "jump" slightly, and (2) causes additional active "Read more" links to appear up in the thumbstrip area.
I also noticed while opening and closing the page during testing that it doesn't matter which "read more" link is clicked on first, second or third. The first click will show 3 "Read more" links in the thumbstrip area, the second "read more" click for either of the other two images will show 2 "Read more" links in the thumbstrip, and the third "read more" click will show 1 "Read more" link in the thumbstrip area.
I will be very grateful for any help in figuring out what is causing the thumbstrip to "jump" when the "read more" links in the captions are clicked, and what's causing the extra links to appear in the thumbstrip?
Here's my code:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Highslide JS</title>
<script type="text/javascript" src="../highslide/highslide-full.js"></script>
<link rel="stylesheet" type="text/css" href="../highslide/highslide.css" />
<script type="text/javascript">
hs.graphicsDir = '../highslide/graphics/';
hs.showCredits = false;
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.marginTop = 60; // make room for the thumbstrip and the controls
hs.wrapperClassName = 'controls-in-heading';
hs.fadeInOut = true;
hs.numberPosition = 'heading';
hs.dimmingOpacity = 0.25;
// Add the controlbar
if (hs.addSlideshow)
hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: false,
overlayOptions: {
opacity: 1,
position: 'top right',
hideOnMouseOut: false
},
thumbstrip: {
position: 'top center',
mode: 'horizontal',
relativeTo: 'viewport'
}
});
// Make all images animate to the one visible thumbnail
var miniGalleryOptions1 = {
thumbnailId: 'thumb1'
}
</script>
<style>
.nocb .highslide-controls {
display: none;
}
.nocb .highslide-number {
display: none;
}
.nocb .highslide-html-content {
display: none;
width: 600px;
padding: 0 15px 25px 15px;
}
</style>
</head>
<body>
<a id="thumb1" class="highslide" onclick="return hs.expand(this, {src: 'flower01.jpg', thumbnailId: 'thumb1', slideshowGroup: 1})">
<img src="flower01_thumb.jpg" alt="Highslide JS"
title="Click to enlarge" height="100" width="100" /></a>
<div class="highslide-caption">
This caption can be styled using CSS.
<a href="#" onclick="return hs.htmlExpand(this, {wrapperClassName: 'nocb no-footer'})"> Read More</a>
<div class="highslide-maincontent">
<h3>Flower 1</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl.
</div><!-- end highslide-maincontent -->
</div><!-- end highslide-caption -->
<a class="highslide" onclick="return hs.expand(this, {src: 'flower02.jpg', slideshowGroup: 1})">
<img src="flower02_thumb.jpg" alt="Highslide JS"
title="Click to enlarge" height="100" width="100" /></a>
<div class="highslide-caption">
This caption can be styled using CSS.
<a href="#" onclick="return hs.htmlExpand(this, {wrapperClassName: 'nocb no-footer'})"> Read More</a>
<div class="highslide-maincontent">
<h3>Flower 2</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl.
</div><!-- end highslide-maincontent -->
</div><!-- end highslide-caption -->
<a class="highslide" onclick="return hs.expand(this, {src: 'flower03.jpg', slideshowGroup: 1})">
<img src="flower03_thumb.jpg" alt="Highslide JS"
title="Click to enlarge" height="100" width="100" /></a>
<div class="highslide-caption">
This caption can be styled using CSS.
<a href="#" onclick="return hs.htmlExpand(this, {wrapperClassName: 'nocb no-footer'})"> Read More</a>
<div class="highslide-maincontent">
<h3>Flower 3</h3>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl.
</div><!-- end highslide-maincontent -->
</div><!-- end highslide-caption -->
</body>
</html>