<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RoadRash&#039; Highslide Test Blog</title>
	<atom:link href="http://roadrash.no/hswp/feed/" rel="self" type="application/rss+xml" />
	<link>http://roadrash.no/hswp</link>
	<description>Highslide JS functions in WordPress with and without NextGEN gallery</description>
	<lastBuildDate>Wed, 29 Jun 2011 10:49:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Manually added in-page gallery (without NextGEN)</title>
		<link>http://roadrash.no/hswp/2010/07/manually-added-in-page-gallery/</link>
		<comments>http://roadrash.no/hswp/2010/07/manually-added-in-page-gallery/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 22:46:38 +0000</pubDate>
		<dc:creator>RoadRash</dc:creator>
				<category><![CDATA[Manually added in-page gallery]]></category>

		<guid isPermaLink="false">http://roadrash.no/hswp/?p=278</guid>
		<description><![CDATA[Go to Dashbord =&#62; Appearance =&#62; Editor. Open header.php in the right column. Add this in header.php right above the closing head tag &#60;/head&#62;: &#60;!-- START CODE FOR MANUALLY ADDED IN-PAGE GALLERY --&#62; &#60;script type="text/javascript"&#62; // Add the slideshow providing &#8230; <a href="http://roadrash.no/hswp/2010/07/manually-added-in-page-gallery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="gallery-area" style="width: 620px; height: 520px; margin: 0 auto; border: 1px solid silver; overflow: hidden;">
<div style="visibility: hidden;"><a id="thumb1" class="highslide" title="Two cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip11.jpg"> <img src="http://www.roadrash.no/hs-support/images/thumbstrip11.thumb.png" alt="" /></a><a class="highslide" title="Patterns in the snow" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip12.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip12.thumb.png" alt="" /></a><a class="highslide" title="Cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip13.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip13.thumb.png" alt="" /></a><a class="highslide" title="Old stone cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip14.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip14.thumb.png" alt="" /></a><a class="highslide" title="A litte open water" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip15.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip15.thumb.png" alt="" /></a><a class="highslide" title="Dipper" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip16.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip16.thumb.png" alt="" /></a><a class="highslide" title="Dipper" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip17.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip17.thumb.png" alt="" /></a><a class="highslide" title="Mountain" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip18.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip18.thumb.png" alt="s" /></a><a class="highslide" title="Birch trees" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip19.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip19.thumb.png" alt="" /></a><a class="highslide" title="Highland woods" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip20.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip20.thumb.png" alt="" /></a><a class="highslide" title="Frozen lake" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip21.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip21.thumb.png" alt="" /></a><a class="highslide" title="Spring in the mountains" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip22.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip22.thumb.png" alt="" /></a><a class="highslide" title="Spring in the mountains" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip23.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip23.thumb.png" alt="" /></a><a class="highslide" title="Fjord landscape" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip24.jpg"><img src="http://www.roadrash.no/hs-support/images/thumbstrip24.thumb.png" alt="" /></a></div>
</div>
<p><span id="more-278"></span></p>
<p>Go to Dashbord =&gt; Appearance =&gt; Editor. Open header.php in the right column.</p>
<p>Add this in header.php right above the closing head tag &lt;/head&gt;:</p>
<pre>&lt;!-- START CODE FOR MANUALLY ADDED IN-PAGE GALLERY --&gt;
&lt;script type="text/javascript"&gt;
// Add the slideshow providing the controlbar and the thumbstrip
hs.addSlideshow({
 slideshowGroup: 'in-page',
 interval: 5000,
 repeat: true,
 useControls: true,
 overlayOptions: {
 position: 'bottom right',
 offsetY: 50
 },
 thumbstrip: {
 position: 'above',
 mode: 'horizontal',
 relativeTo: 'expander'
 }
});

// Options for the in-page items
var inPageOptions = {
 slideshowGroup: 'in-page',
 outlineType: null,
 allowSizeReduction: true,
 wrapperClassName: 'in-page controls-in-heading',
 useBox: true,
 width: 600,
 height: 400,
 targetX: 'gallery-area 10px',
 targetY: 'gallery-area 10px',
 captionEval: 'this.a.title',
 numberPosition: 'caption',
 transitions: ['expand', 'crossfade']
}

// Open the first thumb on page load
hs.addEventListener(window, 'load', function() {
 document.getElementById('in-page').onclick();
});

// Cancel the default action for image click and do next instead
hs.Expander.prototype.onImageClick = function() {
 if (/in-page/.test(this.wrapper.className))    return hs.next();
}

// Under no circumstances should the static popup be closed
hs.Expander.prototype.onBeforeClose = function() {
 if (/in-page/.test(this.wrapper.className))    return false;
}
// ... nor dragged
hs.Expander.prototype.onDrag = function() {
 if (/in-page/.test(this.wrapper.className))    return false;
}

// Keep the position after window resize
hs.addEventListener(window, 'resize', function() {
 var i, exp;
 hs.getPageSize();

 for (i = 0; i &lt; hs.expanders.length; i++) {
 exp = hs.expanders[i];
 if (exp) {
 var x = exp.x,
 y = exp.y;

 // get new thumb positions
 exp.tpos = hs.getPosition(exp.el);
 x.calcThumb();
 y.calcThumb();

 // calculate new popup position
 x.pos = x.tpos - x.cb + x.tb;
 x.scroll = hs.page.scrollLeft;
 x.clientSize = hs.page.width;
 y.pos = y.tpos - y.cb + y.tb;
 y.scroll = hs.page.scrollTop;
 y.clientSize = hs.page.height;
 exp.justify(x, true);
 exp.justify(y, true);

 // set new left and top to wrapper and outline
 exp.moveTo(x.pos, y.pos);
 }
 }
});
&lt;/script&gt;
&lt;style type="text/css"&gt;
 .in-page .highslide-image {
 border: 1px solid black;
 }
 .in-page .highslide-controls {
 width: 90px !important;
 }
 .in-page .highslide-controls .highslide-close {
 display: none;
 }
 .in-page .highslide-caption {
 padding: .5em 0;
 }
 .highslide-active-anchor img {
 visibility: hidden;
 }
&lt;/style&gt;
&lt;!-- END CODE FOR MANUALLY ADDED IN-PAGE GALLERY --&gt;</pre>
<p>Add the HTML  necessary for the gallery. This is what I have used &#8211; replace the images with your own.</p>
<pre>&lt;div id="gallery-area" style="width: 620px; height: 520px; margin: 0 auto; border: 1px solid silver; overflow: hidden;"&gt;&lt;div style="visibility: hidden;"&gt;&lt;a id="thumb1" class="highslide" title="Two cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip11.jpg"&gt; &lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip11.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Patterns in the snow" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip12.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip12.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip13.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip13.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Old stone cabins" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip14.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip14.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="A litte open water" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip15.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip15.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Dipper" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip16.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip16.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Dipper" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip17.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip17.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Mountain" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip18.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip18.thumb.png" alt="s" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Birch trees" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip19.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip19.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Highland woods" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip20.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip20.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Frozen lake" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip21.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip21.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Spring in the mountains" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip22.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip22.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Spring in the mountains" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip23.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip23.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;a class="highslide" title="Fjord landscape" onclick="return hs.expand(this, inPageOptions)" href="http://www.roadrash.no/hs-support/images/thumbstrip24.jpg"&gt;&lt;img src="http://www.roadrash.no/hs-support/images/thumbstrip24.thumb.png" alt="" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://roadrash.no/hswp/2010/07/manually-added-in-page-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually added Highslide HTML popups</title>
		<link>http://roadrash.no/hswp/2010/05/highslide-html-popups/</link>
		<comments>http://roadrash.no/hswp/2010/05/highslide-html-popups/#comments</comments>
		<pubDate>Tue, 11 May 2010 16:07:03 +0000</pubDate>
		<dc:creator>RoadRash</dc:creator>
				<category><![CDATA[HowTo - manually HTML popups]]></category>

		<guid isPermaLink="false">http://roadrash.no/hswp/?p=209</guid>
		<description><![CDATA[You can easily use Highslide HTML popups when you already have installed Highslide in your WordPress blog. See examples below. Using objectType: &#8216;iframe&#8217; Click this link to open Highslide homepage in a Highslide popup This is the code added to &#8230; <a href="http://roadrash.no/hswp/2010/05/highslide-html-popups/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can easily use Highslide HTML popups when you already have installed Highslide in your WordPress blog. See examples below.</p>
<p><span id="more-209"></span></p>
<h3>Using objectType: &#8216;iframe&#8217;</h3>
<p><a onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 1000, height: 600, wrapperClassName: 'draggable-header', outlineType: 'rounded-white'})" href="http://www.highslide.com">Click this link to open Highslide homepage in a Highslide popup</a></p>
<p>This is the code added to the post in HTML view:</p>
<pre>&lt;a href="http://www.highslide.com" onclick="return hs.htmlExpand(this, {objectType: 'iframe', width: 1000, height: 600, wrapperClassName: 'draggable-header', outlineType: 'rounded-white'})" &gt;Click this link to open Highslide homepage in a Highslide popup&lt;/a&gt;</pre>
<p>Barebones sample at Highslide:<br />
<a href="http://highslide.com/examples/iframe.html" target="_blank">http://highslide.com/examples/iframe.html</a></p>
<hr />
<h3>Using highslide-maincontent div</h3>
<p><a onclick="return hs.htmlExpand(this, {maincontentId: 'myContent', wrapperClassName: 'draggable-header', outlineType: 'rounded-white'})" href="javascript:;"> Click this link to open HTML content from a div within the same page</a></p>
<div id="myContent" class="highslide-maincontent">
<h3>Lorem ipsum</h3>
<p>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.</p>
</div>
<p>This is the code added to the post in HTML view:</p>
<pre>&lt;a href="javascript:;" onclick="return hs.htmlExpand(this, {maincontentId: 'myContent', wrapperClassName: 'draggable-header', outlineType: 'rounded-white'})"&gt;Click this link to open HTML content from a div within the same page&lt;/a&gt;
&lt;div id="myContent" class="highslide-maincontent"&gt;
&lt;h3&gt;Lorem ipsum&lt;/h3&gt;
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.
&lt;/div&gt;</pre>
<p>Barebones sample at Highslide:<br />
<a href="http://highslide.com/examples/inline.html" target="_blank">http://highslide.com/examples/inline.html</a></p>
<hr />
<h3>Using objectType: &#8216;swf&#8217; for opening flash content</h3>
<p>Opening swf files require including this line in your header.php file (WordPress admin panel – go to Appearance =&gt; Editor =&gt; Open  header.php):</p>
<pre id="line1">&lt;script type="text/javascript" src="<a href="view-source:http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js">http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js</a>"&gt;&lt;/script&gt;
</pre>
<p><a class="highslide" onclick="return hs.htmlExpand(this, { objectType: 'swf', width: 300, objectWidth: 300, objectHeight: 250, maincontentText: 'You need to upgrade your Flash player', wrapperClassName: 'draggable-header no-footer', outlineType: 'rounded-white', preserveContent: false, allowSizeReduction: false   } )" href="http://www.roadrash.no/hs-support/Flash.swf"> Click this link to open flash content</a></p>
<p>This is the code added to the post in HTML view:</p>
<pre>&lt;a onclick="return hs.htmlExpand(this, { objectType: 'swf', width: 300, objectWidth: 300, objectHeight: 250, maincontentText: 'You need to upgrade your Flash player', wrapperClassName: 'draggable-header no-footer', outlineType: 'rounded-white', preserveContent: false, allowSizeReduction: false } )" href="http://www.roadrash.no/hs-support/Flash.swf"&gt; Click this link to open flash content&lt;/a&gt;</pre>
<p>Barebones sample at Highslide:<br />
<a href="http://highslide.com/examples/flash.html" target="_blank">http://highslide.com/examples/flash.html</a></p>
<hr />
<h3>Opening flv file using JW flv player in a Highslide popup</h3>
<p><a class="highslide" onclick="return hs.htmlExpand(this, { objectType: 'swf', swfOptions: {version: '8', flashvars: { file: '&amp;file=http://www.roadrash.no/hs-support/Lille_pusekatt.flv&amp;image=http://www.roadrash.no/hs-support/pusekatt.jpg&amp;backcolor=000000&amp;frontcolor=ffffff&amp;lightcolor=555555&amp;screencolor=000000&amp;screencolor=000000&amp;stretching=fill&amp;autostart=true' }, params: {allowscriptaccess: 'always', allowfullscreen: 'true', vmode: 'transparent'} }, width: 640, objectWidth: 640, objectHeight: 500, maincontentText: 'You need to upgrade your Flash player', preserveContent: false, allowSizeReduction: false, wrapperClassName: 'draggable-header', outlineType: 'rounded-white' } )" href="http://www.roadrash.no/hs-support/player.swf"><img src="http://www.roadrash.no/hs-support/pusekatt-thumb.gif" alt="Lille Pusekatt" width="200" height="156" /></a></p>
<p>Click the thumb above to open the video<br />
Player used in this example:<a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank"> JW flv player</a></p>
<p>This is the code added to the post in HTML view:</p>
<pre>&lt;a href="http://www.roadrash.no/hs-support/player.swf" onclick="return hs.htmlExpand(this, { objectType: 'swf', swfOptions: {version: '8', flashvars: { file: '&amp;file=http://www.roadrash.no/hs-support/Lille_pusekatt.flv&amp;image=http://www.roadrash.no/hs-support/pusekatt.jpg&amp;backcolor=000000&amp;frontcolor=ffffff&amp;lightcolor=555555&amp;screencolor=000000&amp;screencolor=000000&amp;stretching=fill&amp;autostart=true' }, params: {allowscriptaccess: 'always', allowfullscreen: 'true', vmode: 'transparent'} }, width: 640, objectWidth: 640, objectHeight: 500, maincontentText: 'You need to upgrade your Flash player', preserveContent: false, allowSizeReduction: false, wrapperClassName: 'draggable-header', outlineType: 'rounded-white' } )"&gt;&lt;img alt="Lille Pusekatt" src="http://www.roadrash.no/hs-support/pusekatt-thumb.gif" width="200" height="156" /&gt;&lt;/a&gt;</pre>
<p>Barebones sample page:<br />
<a href="http://www.roadrash.no/hs-support/example-jw-flv-player.html" target="_blank">http://www.roadrash.no/hs-support/example-jw-flv-player.html</a></p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://roadrash.no/hswp/2010/05/highslide-html-popups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single type of Highslide gallery using Highslide Editor code with NextGEN gallery</title>
		<link>http://roadrash.no/hswp/2010/02/single-type-of-highslide-gallery-using-highslide-editor-code-with-nextgen-gallery/</link>
		<comments>http://roadrash.no/hswp/2010/02/single-type-of-highslide-gallery-using-highslide-editor-code-with-nextgen-gallery/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 13:17:12 +0000</pubDate>
		<dc:creator>RoadRash</dc:creator>
				<category><![CDATA[HowTo - singel type of gallery]]></category>

		<guid isPermaLink="false">http://roadrash.no/hswp/?p=55</guid>
		<description><![CDATA[How to use the Highslide Editor to create single type of Highslide gallery with NextGEN gallery. Gallery: Basic white Download and install the NextGEN Gallery plugin. In the WordPress admin panel &#8211; go to Appearance =&#62; Editor =&#62; Open header.php &#8230; <a href="http://roadrash.no/hswp/2010/02/single-type-of-highslide-gallery-using-highslide-editor-code-with-nextgen-gallery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>How to use the Highslide Editor to create single type of Highslide    gallery with NextGEN gallery.</em></p>
<h3>Gallery: Basic white</h3>
<div class="center-gallery highslide-gallery">
<div class="ngg-galleryoverview" id="ngg-gallery-6-55">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-43" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/sun/001.jpg" title="Caption text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_6' })" >
								<img title="Sun" alt="Sun" src="http://roadrash.no/hswp/wp-content/gallery/sun/thumbs/thumbs_001.jpg" width="175" height="116" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-44" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/sun/002.jpg" title="Caption text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_6' })" >
								<img title="Sun" alt="Sun" src="http://roadrash.no/hswp/wp-content/gallery/sun/thumbs/thumbs_002.jpg" width="175" height="116" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-45" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/sun/003.jpg" title="Caption text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_6' })" >
								<img title="Sun" alt="Sun" src="http://roadrash.no/hswp/wp-content/gallery/sun/thumbs/thumbs_003.jpg" width="175" height="118" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</div>
<div><span id="more-55"></span></div>
<p>Download and install the <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGEN Gallery plugin</a>.</p>
<p>In the WordPress admin panel &#8211; go to Appearance =&gt; Editor =&gt; Open header.php and add this right before the closing head tag &lt;/head&gt;</p>
<pre>&lt;script type="text/javascript" src="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide-full.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide.config.js" charset="utf-8"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide.css" /&gt;</pre>
<p>Replace <em>http://www.yourdomain.com/path-to/</em> with your own domain/path.</p>
<p>Go to the <a href="http://www.highslide.com/editor/" target="_blank">Highslide Editor</a> and create your gallery. I&#8217;ve used the pre-defined <a href="http://www.highslide.com/editor/?config=%7B%22preset%22%3A+%22gallery-white%22,+%22hideThumbOnExpand%22%3A+false,+%22alignment%22%3A+%22center%22,+%22enableGallery%22%3A+true,+%22controlsOffsetY%22%3A+-15,+%22enableThumbstrip%22%3A+false%7D" target="_blank">Gallery: Basic white</a> in this example.<br />
You don&#8217;t need to upload your own image since you must do that in the NextGEN gallery.</p>
<p>Click the Publish button and download the zip archive to your computer. Unzip the folder and open the <em>highslide.config.js</em> file (inside the highslide folder) in a text editor (f.ex Notepad). This is the code from the highslide.config.js file used in the example in this page:</p>
<pre>hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'custom';
hs.fadeInOut = true;
hs.align = 'center';
hs.captionEval = 'this.a.title';

// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: '0.75',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-15',
		hideOnMouseOut: true
	}
});

// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	transitions: ['expand', 'crossfade']
};</pre>
<p>Change the hs.graphicsDir line to this:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';</pre>
<p>Replace <em>http://www.yourdomain.com/path-to/</em> with your own  domain/path.</p>
<p>If you want all the galleries in your WordPress installation to have the same look, you can comment out the <em>slideshowGroup</em> in the <em>addSlideshow part of the code</em> by adding a double slash in front of the line:</p>
<pre>// Add the slideshow controller
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: '0.75',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-15',
		hideOnMouseOut: true
	}
});</pre>
<p>(See <a href="http://roadrash.no/hswp/category/highslide-multiple-types-of-galleries/">THIS POST</a> if you want to use different galleries.)<br />
<br/><br/><br />
Remove this part at the bottom of the file:</p>
<pre>// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	transitions: ['expand', 'crossfade']
};</pre>
<p>Add this line right below the hs.graphicsDir line:</p>
<pre>hs.transitions = ['expand', 'crossfade'];</pre>
<p>Your highslide.config.js file should now look like this:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';
hs.outlineType = 'custom';
hs.transition = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.align = 'center';
hs.captionEval = 'this.a.title';

// Add the slideshow controller
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: '0.75',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-15',
		hideOnMouseOut: true
	}
});</pre>
<p>Save the highslide.config.js file. Upload the highslide folder to the plugins folder.</p>
<p>Create your NextGEN gallery.</p>
<p>Go to Gallery =&gt; Options =&gt; Effects tab. Choose Highslide under JavaScript Thumbnail effect and save the changes. Add the gallery to your post and publish it.</p>
]]></content:encoded>
			<wfw:commentRss>http://roadrash.no/hswp/2010/02/single-type-of-highslide-gallery-using-highslide-editor-code-with-nextgen-gallery/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Multiple types of Highslide galleries using Highslide Editor code with NextGEN gallery</title>
		<link>http://roadrash.no/hswp/2010/02/multiple-types-hs-nextgen/</link>
		<comments>http://roadrash.no/hswp/2010/02/multiple-types-hs-nextgen/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 13:16:54 +0000</pubDate>
		<dc:creator>RoadRash</dc:creator>
				<category><![CDATA[HowTo - multiple types of galleries]]></category>

		<guid isPermaLink="false">http://roadrash.no/hswp/?p=45</guid>
		<description><![CDATA[How to use the Highslide Editor to create multiple types of Highslide galleries with NextGEN gallery. Gallery id set_5 Gallery id set_4 Download and install the NextGEN Gallery plugin. Go to Gallery =&#62; Options =&#62; Effects tab. Choose Highslide under &#8230; <a href="http://roadrash.no/hswp/2010/02/multiple-types-hs-nextgen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>How to use the Highslide Editor to create multiple types of Highslide galleries with NextGEN gallery.</em></p>
<h3>Gallery id set_5</h3>
<div class="center-gallery highslide-gallery">
<div class="ngg-galleryoverview" id="ngg-gallery-5-45">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-37" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/001.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_001.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-38" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/002.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_002.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-39" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/003.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_003.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-40" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/004.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_004.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-41" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/005.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_005.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-42" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/boats/006.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_5' })" >
								<img title="Boats" alt="Boats" src="http://roadrash.no/hswp/wp-content/gallery/boats/thumbs/thumbs_006.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</div>
<h3>Gallery id set_4</h3>
<div class="center-gallery highslide-gallery">
<div class="ngg-galleryoverview" id="ngg-gallery-4-45">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-31" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/001.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_001.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-32" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/002.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_002.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-33" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/003.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_003.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-34" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/004.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_004.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-35" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/005.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_005.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-36" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://roadrash.no/hswp/wp-content/gallery/clouds/006.jpg" title="Additional text" class="highslide" onclick="return hs.expand(this, { slideshowGroup: 'set_4' })" >
								<img title="Clouds" alt="Clouds" src="http://roadrash.no/hswp/wp-content/gallery/clouds/thumbs/thumbs_006.jpg" width="175" height="117" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</div>
<p><span id="more-45"></span><br />
Download and install the <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank">NextGEN Gallery plugin</a>.</p>
<p>Go to Gallery =&gt; Options =&gt; Effects tab. Choose Highslide under   JavaScript Thumbnail effect and save the changes.</p>
<p>Create two new galleries in the NextGEN gallery and upload your images. <strong>Remember the id of the galleries</strong> &#8211; we need to use them in the Highslide code later.</p>
<p>In the WordPress admin panel – go to Appearance =&gt; Editor =&gt;  Open header.php and add this right before the closing head tag  &lt;/head&gt;</p>
<pre>&lt;script type="text/javascript" src="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide-full.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide.config.js" charset="utf-8"&gt;&lt;/script&gt;
&lt;link rel="stylesheet" type="text/css" href="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide.css" /&gt;
&lt;!--[if lt IE 7]&gt;
&lt;link rel="stylesheet" type="text/css" href="http://www.yourdomain.com/path-to/wp-content/plugins/highslide/highslide-ie6.css" /&gt;
&lt;![endif]--&gt;
</pre>
<p>Replace <em>http://www.yourdomain.com/path-to/</em> with your own  domain/path.</p>
<h3>The first gallery &#8211; set_5</h3>
<p>Go to the <a href="http://www.highslide.com/editor/" target="_blank">Highslide  Editor</a> and create your first gallery. <a href="http://highslide.com/editor/?config=%7B%22preset%22%3A+%22controls-in-heading%22,+%22hideThumbOnExpand%22%3A+false,+%22alignment%22%3A+%22center%22,+%22captionSource%22%3A+%22thumb.alt%22,+%22headingStyles%22%3A+%22%5Ctcolor%3A+%23666666;%5Ctfont-weight%3A+bold;%5Ctpadding%3A+2px;%22,+%22enableGallery%22%3A+true,+%22controlsPreset%22%3A+%22controls-in-heading%22,+%22controlsPosition%22%3A+%22top+right%22,+%22controlsOffsetX%22%3A+1,+%22controlsOffsetY%22%3A+-22,+%22controlsHideOnMouseOut%22%3A+false,+%22buttonMove%22%3A+false,+%22numberPosition%22%3A+%22heading%22,+%22enableThumbstrip%22%3A+false,+%22fixedControls%22%3A+false%7D" target="_blank">THIS</a> is the setup for the first gallery in this example.<br />
You don’t need to upload your own image since you must do that in the  NextGEN gallery.</p>
<p>Click the Publish button and download the zip archive to your  computer. Unzip the folder and open the <em>highslide.config.js</em> file (inside the highslide folder) in a text editor (f.ex Notepad). This is the code from the highslide.config.js:</p>
<pre>hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'custom';
hs.fadeInOut = true;
hs.align = 'center';
hs.captionEval = 'this.thumb.alt';

// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'controls-in-heading',
		opacity: '0.75',
		position: 'top right',
		offsetX: '1',
		offsetY: '-22',
		hideOnMouseOut: false
	}
});

// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	numberPosition: 'heading',
	transitions: ['expand', 'crossfade']
};
</pre>
<p>Change the hs.graphicsDir line to this:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';
</pre>
<p>Replace <em>http://www.yourdomain.com/path-to/</em> with your own   domain/path.</p>
<p>Move this two lines to the bottom of the file &#8211; we will use them later:</p>
<pre>hs.outlineType = 'custom';
hs.captionEval = 'this.thumb.alt';
</pre>
<p>Move this line near the bottom to right below the hs.graphicsDir line:</p>
<pre>transitions: ['expand', 'crossfade']
</pre>
<p>Add hs. in front, change : to = and add a semi colon at the end like this:</p>
<pre>hs.transitions = ['expand', 'crossfade'];
</pre>
<p>You should now have this at the top of your file:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.align = 'center';
</pre>
<p>The code above is common for all galleries.</p>
<p>Replace &#8216;group1&#8242; in the slideshowGroup line of the addSlideshow part of the code with the id of the gallery you want to use. The id of my gallery is 5, so I need to replace it with set_5:</p>
<pre>// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'set_5',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'controls-in-heading',
		opacity: '0.75',
		position: 'top right',
		offsetX: '1',
		offsetY: '-22',
		hideOnMouseOut: false
	}
});
</pre>
<p>Now we need to add some new code to the highslide.config.js file. Add this right after the addSlideshow part:</p>
<pre id="line1">/*
 * Read the given slideshowGroup and apply other config options. This is
 * only an adaptation to the NextGenGallery plugin, it should not be done this
 * way if you have control over the onclick.
 */
hs.Expander.prototype.onInit = function() {
	var groupConfig = config[this.slideshowGroup];
	// apply it to this expander
	hs.extend(this, groupConfig);
};
</pre>
<p>At the bottom of your file you should now have this remaning code:</p>
<pre>// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	numberPosition: 'heading',
};
hs.outlineType = 'custom';
hs.captionEval = 'this.thumb.alt';
</pre>
<p>Add this code above it:</p>
<pre>// configuration hash
var config = {
</pre>
<p>And change this:</p>
<pre>var config1 = {</pre>
<p>to this (now we are using the gallery&#8217;s id again):</p>
<pre>'set_5': {
</pre>
<p>Remove the slideshowGroup line, and make the two remaining lines look like this:</p>
<pre>outlineType: 'custom',
captionEval: 'this.thumb.alt',</pre>
<p>Move the two lines above to right below the numberPosition line.</p>
<p>We also need to add a wrapperClass for the CSS specific for this  gallery. Add this line after the captionEval line:</p>
<pre>wrapperClassName: 'set_5' }
</pre>
<p><em>Notice the curly bracket at the end of the last line!!!</em></p>
<p>And since all outline graphics from the Edior are named custom, we need to rename them. Find the custom.png file inside the outlines folder (highslide/graphics/outlines) and rename it to custom-set_5.png. (Again we are using the gallery&#8217;s id.)<br />
Then rename <em>outlineType: &#8216;custom&#8217;</em> to <em>outlineType: &#8216;custom-set_5&#8242;</em>.</p>
<p>The last part of your file should now look like this:</p>
<pre>// configuration hash
var config = {
        'set_5': {
                numberPosition: 'heading',
                outlineType: 'custom-set_5',
                captionEval: 'this.thumb.alt',
                wrapperClassName: 'set_5' }
        };
</pre>
<p>Now the highslide.config.js file should look like this:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.align = 'center';

// Add the slideshow controller
hs.addSlideshow({
        slideshowGroup: 'set_5',
        interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'controls-in-heading',
		opacity: '0.75',
		position: 'top right',
		offsetX: '1',
		offsetY: '-22',
		hideOnMouseOut: false
	}
});
var config = {
        'set_5': {
                numberPosition: 'heading',
                outlineType: 'custom-set_5',
                captionEval: 'this.thumb.alt',
                wrapperClassName: 'set_5'}
        };
</pre>
<p>Then we need to take care of the gallery specific CSS. At the bottom of the highslide.css file you will find this:</p>
<pre>/*****************************************************************************/
/* The following styles are added by the Highslide Editor                    */
/*****************************************************************************/
.highslide-wrapper, .highslide-outline {
	background: #FFFFFF;
}
.highslide img {
	border: 1px solid #D0D0D0;
}
.highslide:hover img {
	border-color: #A0A0A0;
}
.highslide-active-anchor img {
	visibility: visible;
	border-color: #808080 !important;
}
.highslide-image {
	border: 2px solid #FFFFFF;
}
.highslide-heading {
	display: none;
	margin: 0;
	color: #666666;
	font-weight: bold;
	padding: 2px;
	cursor: move;
}
.highslide-loading {
	color: black;
	border: 1px solid black;
	background-color: white;
	background-image: url(graphics/loader.white.gif);
}

.highslide-controls {
	position: static !important;
	margin: 0;
	width: 100px !important;
}
.highslide-controls .highslide-move {
	display: none;
}
.highslide-gallery ul li {
	width: 106px;
	height: 106px;
	border: 1px solid #D0D0D0;
	background: #EDEDED;
	margin: 2px;
}
</pre>
<p>We need to turn this into the wrapperClassName we added to the configuration object in the highslide.config.js file. Add .set_5 in front of each of the styles:</p>
<pre>/*****************************************************************************/
/* The following styles are added by the Highslide Editor                    */
/*****************************************************************************/
.set_5 .highslide-wrapper, .highslide-outline {
	background: #FFFFFF;
}
.set_5 .highslide img {
        border: 1px solid #D0D0D0;
}
.set_5 .highslide:hover img {
        border-color: #A0A0A0;
}
.set_5 .highslide-active-anchor img {
        visibility: visible;
        border-color: #808080 !important;
}
.set_5 .highslide-image {
        border: 2px solid #FFFFFF;
}
.set_5 .highslide-heading {
        display: none;
        margin: 0;
        color: #666666;
        font-weight: bold;
        padding: 2px;
        cursor: move;
}
.set_5 .highslide-loading {
        color: black;
        border: 1px solid black;
        background-color: white;
        background-image: url(graphics/loader.white.gif);
}
.set_5 .highslide-controls {
        position: static !important;
        margin: 0;
        width: 100px !important;
}
.set_5 .highslide-controls .highslide-move {
        display: none;
}
.set_5 .highslide-gallery ul li {
        width: 106px;
        height: 106px;
        border: 1px solid #D0D0D0;
        background: #EDEDED;
        margin: 2px;
}
</pre>
<p>Save the highslide.config.js file and the highslide.css file.</p>
<h3>The second gallery &#8211; set_4</h3>
<p>Go to the <a href="http://www.highslide.com/editor/" target="_blank">Highslide   Editor</a> and create your first gallery. <a href="http://www.highslide.com/editor/?config=%7B%22preset%22%3A+%22gallery-horizontal-strip%22,+%22popupBackground%22%3A+%22%2385AA77%22,+%22contentBorderColor%22%3A+%22%23000000%22,+%22contentBorderWidth%22%3A+%221%22,+%22outlineColor%22%3A+%22%2385AA77%22,+%22outlineWidth%22%3A+%2210%22,+%22applyDimming%22%3A+true,+%22dimmingOpacity%22%3A+0.75,+%22hideThumbOnExpand%22%3A+false,+%22alignment%22%3A+%22center%22,+%22marginBottom%22%3A+105,+%22useBox%22%3A+true,+%22height%22%3A+%22401%22,+%22captionPosition%22%3A+%22leftpanel%22,+%22useHeading%22%3A+true,+%22headingSource%22%3A+%22thumb.alt%22,+%22useCloseButton%22%3A+true,+%22enableGallery%22%3A+true,+%22sorting%22%3A+%22file%22,+%22controlsPreset%22%3A+%22text-controls%22,+%22controlsRelativeTo%22%3A+%22viewport%22,+%22controlsOpacity%22%3A+1,+%22controlsOffsetY%22%3A+-60,+%22controlsHideOnMouseOut%22%3A+false,+%22buttonMove%22%3A+false,+%22buttonFullExpand%22%3A+false,+%22buttonClose%22%3A+false,+%22numberPosition%22%3A+%22caption%22,+%22numberStyles%22%3A+%22%5Ctcolor%3A+%23666666;%5Ctfont-style%3A+italic;%5Ctfont-size%3A+10pt+!important;%22,+%22fixedControls%22%3A+false%7D" target="_blank">THIS</a> is the setup for the second gallery in this  example.<br />
You don’t need to upload your own image since you must do that in the   NextGEN gallery.</p>
<p>Click the Publish button and download the zip archive to your   computer. Unzip the folder and open the <em>highslide.config.js</em> file (inside the highslide folder) in a text editor (f.ex Notepad). This  is the code from the highslide.config.js:</p>
<pre>hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'custom';
hs.dimmingOpacity = 0.75;
hs.fadeInOut = true;
hs.align = 'center';
hs.marginBottom = 105;
hs.useBox = true;
hs.width = 600;
hs.height = 401;
hs.captionEval = 'this.thumb.title';
hs.captionOverlay.position = 'leftpanel';
hs.headingEval = 'this.a.title';
hs.registerOverlay({
	html: '&lt;div onclick="return hs.close(this)" title="Close"&gt;&lt;/div&gt;',
	position: 'top right',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'text-controls',
		opacity: '1',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-60',
		relativeTo: 'viewport',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'horizontal',
		position: 'bottom center',
		relativeTo: 'viewport'
	}

});

// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	numberPosition: 'caption',
	transitions: ['expand', 'crossfade']
};
</pre>
<p>First we can remove the four lines we have at the top of the other highslide.config.js file &#8211; these three from the top of the new config file:</p>
<pre>hs.graphicsDir = 'highslide/graphics/';
hs.fadeInOut = true;
hs.align = 'center';
</pre>
<p>And this from the bottom:</p>
<pre>transitions: ['expand', 'crossfade']
</pre>
<p>Take this code:</p>
<pre>hs.registerOverlay({
	html: '&lt;div class="closebutton" onclick="return hs.close(this)" title="Close"&gt;&lt;/div&gt;',
	position: 'top right',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
</pre>
<p>Add slideshowGroup: &#8216;set_4&#8242;, after the useOnHtml line, and paste the whole code into the old config file &#8211; right after the hs.align line:</p>
<pre>hs.registerOverlay({
	html: '&lt;div class="closebutton" onclick="return hs.close(this)" title="Close"&gt;&lt;/div&gt;',
	position: 'top right',
	useOnHtml: true,
        slideshowGroup: 'set_4',
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
</pre>
<p>Copy the code for the controlbar and thumbstrip (addSlidshow) and change slideshowGroup to set_4, and paste it into the config file:</p>
<pre>// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'set_4',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'text-controls',
		opacity: '1',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-60',
		relativeTo: 'viewport',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'horizontal',
		position: 'bottom center',
		relativeTo: 'viewport'
	}
});</pre>
<p>Then we need to build a new configuration object for the second gallery where we can put in all the remaining code &#8211; except for hs.marginBottom. Remember to change name for the custom outline graphic as we did for the first gallery, and change the name of the outlineType in the code below.<br />
The new configurasjons object should look like this:</p>
<pre>        'set_4': {
                numberPosition: 'caption',
                outlineType: 'custom-set_4',
		dimmingOpacity: 0.75,
		useBox: true,
		width: 600,
		height: 401,
                captionEval: 'this.a.title',
		captionOverlay: { position: 'leftpanel' },
		headingEval: 'this.thumb.alt',
                wrapperClassName: 'set_4' }
</pre>
<p>Notice how we need to code the captionOverlay position! We also added a wrapperClassName for specific CSS for this gallery.</p>
<p>Add a comma after the curly bracket at the end of the wrapperClassName: &#8216;set_5&#8242; line in the old highslide.config.js file and paste in the configuration object for the second gallery.</p>
<p>Now we have to deal with the hs.marginBottom setting for this gallery. Find this code:</p>
<pre>hs.Expander.prototype.onInit = function() {
	var groupConfig = config[this.slideshowGroup];
	// apply it to this expander
	hs.extend(this, groupConfig);
};
</pre>
<p>And add this right after the hs.extend line:</p>
<pre>if (this.slideshowGroup == 'set_4')hs.marginBottom = 105;
</pre>
<p>It should now look like this:</p>
<pre>hs.Expander.prototype.onInit = function() {
	var groupConfig = config[this.slideshowGroup];
	// apply it to this expander
	hs.extend(this, groupConfig);
	if (this.slideshowGroup == 'set_4')hs.marginBottom = 105;
};
</pre>
<p>The highslide.config.js file should now look like this:</p>
<pre>hs.graphicsDir = 'http://www.yourdomain.com/path-to/wp-content/plugins/highslide/graphics/';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.align = 'center';

hs.registerOverlay({
	html: '&lt;div class="closebutton" onclick="return hs.close(this)" title="Close"&gt;&lt;div&gt;',
	position: 'top right',
	useOnHtml: true,
        slideshowGroup: 'set_4',
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

// Add the slideshow controller
hs.addSlideshow({
        slideshowGroup: 'set_5',
        interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'controls-in-heading',
		opacity: '0.75',
		position: 'top right',
		offsetX: '1',
		offsetY: '-22',
		hideOnMouseOut: false
	}
});

// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'set_4',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'text-controls',
		opacity: '1',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-60',
		relativeTo: 'viewport',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'horizontal',
		position: 'bottom center',
		relativeTo: 'viewport'
	}
});

hs.Expander.prototype.onInit = function() {
	var groupConfig = config[this.slideshowGroup];
	// apply it to this expander
	hs.extend(this, groupConfig);
	if (this.slideshowGroup == 'set_4')hs.marginBottom = 105;
};

var config = {
        'set_5': {
                numberPosition: 'heading',
                outlineType: 'custom-set_5',
                captionEval: 'this.thumb.alt',
                wrapperClassName: 'set_5'}
        'set_4': {
                numberPosition: 'caption',
                outlineType: 'custom-set_4',
		dimmingOpacity: 0.75,
		useBox: true,
		width: 600,
		height: 401,
                captionEval: 'this.a.title',
		captionOverlay: { position: 'leftpanel' },
		headingEval: 'this.thumb.alt',
                wrapperClassName: 'set_4' }
        };</pre>
<p>Copy the CSS from the bottom of the highslide.css file for this gallery, add the wrapperClassName and paste it into the old highslide.css file.<br />
NB! We need to do one change in the CSS. Instead of using:</p>
<pre>.set_4 .highslide-wrapper, .highslide-outline {
	background: #85AA77;
}
</pre>
<p>we need to use:</p>
<pre>.set_4 {
	background: #85AA77;
}</pre>
<p>The CSS for the secon gallery should now look like this:</p>
<pre>.set_4 {
	background: #85AA77;
}
.set_4 .highslide img {
	border: 1px solid #D0D0D0;
}
.set_4 .highslide:hover img {
	border-color: #A0A0A0;
}
.set_4 .highslide-active-anchor img {
	visibility: visible;
	border-color: #808080 !important;
}
.set_4 .highslide-dimming {
	background: #000000;
}
.set_4 .highslide-image {
	border: 1px solid #000000;
}
.set_4 .highslide-heading {
	display: none;
	margin: 0;
	padding:2px;
	font-weight:bold;
	cursor: move;
}
.set_4 .highslide-number {
	color: #666666;
	font-style: italic;
	font-size: 10pt !important;
}
.set_4 .highslide-loading {
	color: black;
	border: 1px solid black;
	background-color: white;
	background-image: url(graphics/loader.white.gif);
}
.set_4 .highslide-controls {
	position: static !important;
	margin-bottom: 0;
}
.set_4 .highslide-controls .highslide-move {
	display: none;
}
.set_4 .highslide-controls .highslide-full-expand {
	display: none;
}
.set_4 .highslide-controls .highslide-close {
	display: none;
}
.set_4 .highslide-gallery ul li {
	width: 106px;
	height: 106px;
	border: 1px solid #D0D0D0;
	background: #EDEDED;
	margin: 2px;
}
</pre>
<p>Save the highslide.config.js file and the highslide.css file. Upload the highslide folder to the plugins folder. Add your galleries to your post and publish.</p>
]]></content:encoded>
			<wfw:commentRss>http://roadrash.no/hswp/2010/02/multiple-types-hs-nextgen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

