First you should move the script tags to the head section of the page where they belong. Move this part to right below the included highslide.css file:
Code: Select all
<script type="text/javascript">
//<![CDATA[
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.graphicsDir = 'highslide/graphics/';
hs.wrapperClassName = 'borderless';
hs.targetY = 'hs1';
hs.targetX = 'hs1';
//]]>
</script>
Add this line below the hs.graphicsDir line:
You have this a bit further down in your page - you can remove it since you already have it in the other script tag and you donÔÇÖt need it twice:
Code: Select all
<script type="text/javascript">
//<![CDATA[
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
</script>
Find this part in the head section of your page and remove it:
Code: Select all
<script type="text/javascript">
hs.graphicsDir = '/highslide/graphics/';
hs.outlineType = 'rounded-white';
</script>
Now all the highslide settings should be nicely placed in the head section ÔÇô looking like this:
Code: Select all
<script type="text/javascript">
//<![CDATA[
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
useOnHtml: true,
fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'borderless';
hs.targetY = 'hs1';
hs.targetX = 'hs1';
//]]>
</script>
To make the HTML popups look like the image popups you first need to do some changes in the external HTML pages. You canÔÇÖt have any elements with fixed width and height, the image must be placed as background image for the body and the body must have margin and padding set to 0 - all this to avoid scroll bars in the popup.
Try this for the zoe_expnd.html page:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: Verdana;
font-size: 12px;
color: #FFF;
background: black url(images/zoe_full.jpg) no-repeat;
}
.content {
margin: 335px 15px 15px 15px;
}
</style>
</head>
<body>
<div class="content">
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. </p>
<p>Read more...</p>
</div>
</body>
</html>
And this for the sermon_expnd.html page:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: Verdana;
font-size: 12px;
color: #FFF;
background: black url(images/sermon_full.jpg) no-repeat;
}
.content {
margin: 290px 15px 15px 15px;
}
</style>
</head>
<body>
<div class="content">
<p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. </p>
<p>Read more...</p>
</div>
</body>
</html>
A wrapperClassName is necessary to remove the Move/Close text, the footer and the padding from the popup.
Add this CSS to your highslide.css file:
Code: Select all
.image-like .highslide-header {
display: none;
}
.image-like .highslide-footer {
display: none;
}
.image-like .highslide-html-content {
padding: 0;
}
And add the wrapperClassName to the onclicks:
Code: Select all
<a class="highslide" href="zoe_expnd.html" [hilight]onclick="return hs.htmlExpand(this, {objectType: 'iframe', height: 503, width: 633, wrapperClassName: 'image-like'})"[/hilight]>
<img src="images/zoe_thumb.jpg" width="155" height="503" /></a>
Code: Select all
<a class="highslide" href="sermon_expnd.html" [hilight]onclick="return hs.htmlExpand(this, {objectType: 'iframe', height: 503, width: 633, wrapperClassName: 'image-like'})"[/hilight]>
<img src="images/sermon_thumb2.jpg" alt="Updates"
title="Click to enlarge" height="504" width="155" /></a>
Note the width and height for the popups ÔÇô itÔÇÖs the same as the background images but the popup will not get any scroll bars.
Now you need to tell the Mac style close button to appear on HTML popups; ÔÇô add the highlighted line to the registerOverlay code in the head section:
Code: Select all
hs.registerOverlay({
html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
[hilight]useOnHtml: true,[/hilight]
fade: 2 // fading the semi-transparent overlay looks bad in IE
});