francesco
Posts: 13
Joined: Thu Mar 22, 2012 1:11 pm

help please

hello forum,

we need help for one my question....

i have create, with highslide editor my favorite highslide gallery....

anyway when click on image function open or close function are present...

how to possible to enable features present on this example ?
see link...
http://www.roadrash.no/hs-support/galle ... trols.html

when click on image next image are displayed and not close..

is possible to enable on highslide editor this features?

thank you for your work and contribution
User avatar
EarlyOut
Posts: 1705
Joined: Sun Nov 11, 2007 9:22 pm
Location: Sector R
Contact: Website

Re: help please

I don't think the Editor includes that option. You need to edit the highslide.config.js file, and add these lines at the bottom:

Code: Select all

hs.Expander.prototype.onImageClick = function() {
	return hs.next();
}
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: help please

You also need to replace this line in the head section of your page:

Code: Select all

<script type="text/javascript" src="highslide/highslide-with-gallery.js"></script>
with this:

Code: Select all

<script type="text/javascript" src="highslide/highslide-full.js"></script>
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
User avatar
EarlyOut
Posts: 1705
Joined: Sun Nov 11, 2007 9:22 pm
Location: Sector R
Contact: Website

Re: help please

I always forget that part! :mrgreen:
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: help please

Yeah - I know! :lol:
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
francesco
Posts: 13
Joined: Thu Mar 22, 2012 1:11 pm

Re: help please

very very thank's for support....

my config file is:
**********************************
/**

* Site-specific configuration settings for Highslide JS

*/

$(document).ready(function() {

hs.graphicsDir = 'http://www.franzdepa.com/highslide/graphics/';
hs.showCredits = false;
hs.creditsPosition = 'bottom right';
hs.outlineType = 'custom';
hs.dimmingOpacity = 0.5;
hs.fadeInOut = true;
hs.align = 'center';
hs.padToMinWidth = true;
hs.blockRightClick = true;
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
});



// Add the slideshow controller
hs.addSlideshow({
slideshowGroup: (function() {
var groups = [];
$('.gallery').each(function(i, $item) {
groups.push($item.id);
});
return groups;
})(),
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
className: 'controls-in-heading',
opacity: 0.75,
position: 'below',
offsetX: 1,
offsetY: -22,
hideOnMouseOut: false
},
thumbstrip: {
mode: 'horizontal',
position: 'bottom center',
relativeTo: 'viewport'
}

});

hs.numberPosition = 'caption';
hs.transitions = ['expand', 'crossfade'];
// for gallery
$('.gallery-item a').addClass('highslide');
$('.gallery-item a').each(function() {
this.onclick = function() {
return hs.expand(this, {
slideshowGroup: this.parentNode.parentNode.parentNode.id
});
};
});

// For single images
hs.onSetClickEvent = function(sender, e) {
e.element.onclick = function() {
return hs.expand(this, singleConfig);
}
return false;
};

var singleConfig = {
slideshowGroup: 'single-image',
outlineType: 'drop-shadow',
wrapperClassName: 'borderless',
numberPosition: null,
dimmingOpacity: 0
};

hs.registerOverlay({
slideshowGroup: 'single-image',
html: ' <div onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2
});

});
hs.Expander.prototype.onImageClick = function() {
return hs.next();
}

**********************************

code is correct here ?


sorry im not expert... :oops: :oops:
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: help please

Yes, the code is correct.
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
francesco
Posts: 13
Joined: Thu Mar 22, 2012 1:11 pm

Re: help please

RoadRash wrote:You also need to replace this line in the head section of your page:

Code: Select all

<script type="text/javascript" src="highslide/highslide-with-gallery.js"></script>
with this:

Code: Select all

<script type="text/javascript" src="highslide/highslide-full.js"></script>

again thx for help...

i dont see this line on my wordpress page...
is normal? :?:
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: help please

I can see from the code youÔÇÖve posted that you are using the ÔÇ£Highslide in Wordpress without third-party pluginÔÇØ code, so you don't have to worry about the file - you are already using the correct file.
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
francesco
Posts: 13
Joined: Thu Mar 22, 2012 1:11 pm

Re: help please

yes, work correctly,

thx

Return to “Highslide Editor”