Instead of continuing the battle against spammers, we decided to close the forum for new users and topics. But don't worry, there are still plenty of ways to reach us. Most notably, we will move our attention to Stack Overflow, where we will monitor questions under the tags [highcharts], [highstock] and [highslide].
For other ways of getting in touch with us, see Highcharts Support or Highslide Support.
Torstein Hønsi, CTO, 2013-01-29<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<script type="text/javascript" src="js/highslide-with-gallery.js"></script>
<script type="text/javascript" src="js/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="js/highslide.css" />
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head><div class="highslide-gallery"><a id="thumb1" class="highslide" title="Caption from the anchor's title attribute" onclick="return hs.expand(this, config1 )" href="http://localhost/Wordpress/wp-content/uploads/2011/04/sample.gif"><img src="http://localhost/Wordpress/wp-content/uploads/2011/04/sample.gif" alt="" /></a><div class="hidden-container"><a class="highslide" title="Caption from the anchor's title attribute" onclick="return hs.expand(this, config1 )" href="http://localhost/Wordpress/wp-content/uploads/2011/04/sample.gif"><img src="http://localhost/Wordpress/wp-content/uploads/2011/04/sample.gif" alt="" /></a></div></div>hs.addSlideshow({
slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: '0.75',
position: 'bottom center',
offsetX: '0',
offsetY: '+50',
hideOnMouseOut: true
},
thumbstrip: {
mode: 'horizontal',
position: 'above',
relativeTo: 'image'
}
});
var config1 = {
slideshowGroup: 'group1',
thumbnailId: 'thumb1',
numberPosition: 'caption',
transitions: ['expand', 'crossfade']
};cubikated wrote:one important question. how would all this url's effect once i put it online? would i have to change them one by one manually? brain wrecker again!!!!
<div class="highslide-gallery"><a id="thumb1" class="highslide" title="Caption from the anchor's title attribute" onclick="return hs.expand(this, config1 )" href="/wp-content/uploads/2011/04/sample.gif"><img src="/wp-content/uploads/2011/04/sample.gif" alt="" /></a><div class="hidden-container"><a class="highslide" title="Caption from the anchor's title attribute" onclick="return hs.expand(this, config1 )" href="/wp-content/uploads/2011/04/sample.gif"><img src="/wp-content/uploads/2011/04/sample.gif" alt="" /></a></div></div>/**
* Site-specific configuration settings for Highslide JS
*/
$(document).ready(function() {
hs.graphicsDir = 'http://safcakovec.org/highslide/graphics/';
hs.outlineType = 'custom';
hs.dimmingOpacity = 0.6;
hs.dimmingDuration = 100;
hs.easing = 'easeInCirc';
hs.expandDuration = 200;
hs.restoreDuration = 200;
hs.align = 'center';
hs.padToMinWidth = true;
hs.marginBottom = 105;
hs.captionEval = 'this.thumb.title';
// 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: 'large-dark',
opacity: 0.6,
position: 'bottom center',
offsetX: 0,
offsetY: -60,
relativeTo: 'viewport',
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: 'rounded-white',
numberPosition: null,
dimmingOpacity: 0.6
};
hs.registerOverlay({
slideshowGroup: 'single-image',
html: ' <div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
position: 'top right',
fade: 2
});
});
There is one limitation: You can’t use galleries with one visible thumbnail like in ‘Gallery: Minigallery’ and ‘Gallery: Box with thumbstrip above image’.
Users browsing this forum: Bing [Bot] and 8 guests