Hi Felix,
Yes I use the SVbuilder for adding images. My picture filenames are timecoded (yyyymmdd_hhmm_####.jpg).
So I use the SVbuilder menu option:
Images > Sort > By file name
and after that :
Images > Sort > Reverse
After that I have the newest-picture-first-order I need and then I generate the xml.
An other issue with the direct linking script from the example here:
http://simpleviewer.net/simpleviewer/pr … rect_link/
and the script I use for multiple galleries as mentioned here
http://www.simpleviewer.net/forum/viewtopic.php?id=9514
seems to interfere one way or another when combined on my page.
Problem: The correct url is generated in the address bar, but the page does not refresh accordingly.
Question: Can someone tell me what goes wrong here?
My website is here:
http://bit.ly/ehR3B8
(sorry for those who tried the previous broken link in my previous post)
Here is the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[url]http://www.w3.org/TR/html4/strict.dtd[/url]">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>rogierrood.nl | photo | 2010</title>
<style type="text/css">
body {
background-color: #000;
}
</style>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<script type="text/javascript" src="svcore/js/swfaddress.js"></script><script type="text/javascript">
//SimpleViewer API setup
var svAPI; //svAPI is the object to call API methods on
//Called by SWF when API becomes available
function svComplete() {
//console.log("SimpleViewer API Available");
svAPI = document.getElementById('svInstance');
};
//Called by SWF when user views an image
function svImageChange(index){
//add an anchor hash tag to URL for this image index
//console.log("svImageChange:" + index);
document.location="#" + (index + 1);
}
//Called when browser back button is clicked
SWFAddress.onChange = function(){
if(svAPI != null && svAPI.getImageIndex() != getLocationIndex()) {
svAPI.showImage(getLocationIndex());
}
}
//map the hash tag to the SV image index
function getLocationIndex() {
return location.hash.substr(1) - 1;
}
//JavaScript Embed
var flashvars = {};
//Set enableAPI to true to use JS API
flashvars.enableAPI = "true";
//Set 'firstImageIndex' based on the 'index' query string parameter
flashvars.firstImageIndex = getLocationIndex();
var params = {};
params.allowfullscreen = true;
params.allowscriptaccess = "always";
params.bgcolor = "000000";
var attributes = {};
//name and id should match getElementById() call above
attributes.id = "svInstance";
attributes.name = "svInstance";
jQuery(document).ready(function () {
SV.simpleviewer.load('sv-container', '100%', '600', '000000', true, flashvars, params, attributes);
});
</script>
</head>
<body onLoad="MM_preloadImages('buttons/GearHover.png','../../buttons/ArchiveHover.png','../../buttons/ContactHover.png','../../buttons/BackHover.png','../../buttons/rrLogoHover.png','../../buttons/CopyrightHover.png','../../buttons/PhotoHover.png','../../buttons/BigHover.png','../../buttons/ThumbsHover.png')">
<table width="800" border="0" align="center">
<tr bgcolor="#000000" class="rogierrood">
<td width="64" align="left" valign="top"><a href="photo2010_91.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btrrlogo','','../../buttons/rrLogoHover.png',1)"><img src="../../buttons/rrLogoNeutral.png" name="btrrlogo" width="64" height="64" border="0"></a></td>
<td width="64" height="64"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btback','','../../buttons/BackHover.png',1)"><img src="../../buttons/BackNeutral.png" name="btback" width="64" height="64" border="0"></a></td>
<td width="97"> </td>
<td width="65"><a href="photo2010_91.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btphoto','','../../buttons/PhotoHover.png',1)"><img src="../../buttons/PhotoNeutral.png" name="btphoto" width="64" height="64" border="0"></a><a href="gear.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','buttons/GearHover.png',1)"></a></td>
<td width="64"><a href="photo2010_00.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btbig','','../../buttons/BigHover.png',1)"><img src="../../buttons/BigNeutral.png" name="btbig" width="64" height="64" border="0"></a></td>
<td width="64"><a href="photo2010_97.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btthumbs','','../../buttons/ThumbsHover.png',1)"><img src="../../buttons/ThumbsNeutral.png" name="btthumbs" width="64" height="64" border="0"></a></td>
<td width="64"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btarchive','','../../buttons/ArchiveHover.png',1)"><img src="../../buttons/ArchiveNeutral.png" name="btarchive" width="64" height="64" border="0"></a></td>
<td width="148"> </td>
<td width="64"><a href="../../contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btcontact','','../../buttons/ContactHover.png',1)"><img src="../../buttons/ContactNeutral.png" name="btcontact" width="64" height="64" border="0"></a></td>
<td width="64"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('btcopyright','','../../buttons/CopyrightHover.png',1)"><img src="../../buttons/CopyrightNeutral.png" name="btcopyright" width="64" height="64" border="0"></a></td>
</tr>
</table>
<div id="sv-container"></div>
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery2010_91.xml";
var params = {};
var attributes = {};
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%","000000", true, flashvars, params, attributes);
});
</script>
</body>
</html>