OK, in the photogallery.js file, replace the photogallery.prototype.createNav function with this one:
Code:
photogallery.prototype.createNav=function(gdiv, pdiv , ptext){
var instanceOfGallery=this
var navHTML=""
for (var i=0; i<this.pagecount; i++)
navHTML+=(ptext[2]&&i==this.pagecount-1? ptext[2]+' ' : '')+'<a href="#navigate" rel="'+i+'">'+ptext[1]+(i+1)+'</a><span> </span>'+(ptext[2]&&i==0? ptext[2]+' ' : '') //build sequential nav links
pdiv.innerHTML=ptext[0]+' '+navHTML
var navlinks=pdiv.getElementsByTagName("a")
navlinks[0].className="current" //Select first link by default
this.previouspage=navlinks[0] //Set previous clicked on link to current link for future ref
for (var i=0; i<navlinks.length; i++){
navlinks[i].onclick=function(){
instanceOfGallery.previouspage.className="" //"Unhighlight" last link clicked on...
this.className="current" //while "highlighting" currently clicked on flatview link (setting its class name to "selected"
instanceOfGallery.showpage(gdiv, this.getAttribute("rel"))
instanceOfGallery.previouspage=this //Set previous clicked on link to current link for future ref
if(ptext[2]){
var n = this.rel-0, above = Math.min(2, navlinks.length-2-n), below = Math.min(n-1, 2),
range=above==below? [n-2, n+2] : above<below? [navlinks.length-6, navlinks.length] : [n-below, n+2+(2-below)];
for (var i = navlinks.length - 1; i > -1; --i)
navlinks[i].style.display = navlinks[i].nextSibling.style.display = i==0||i==navlinks.length-1||(i>=range[0]&&i<=range[1])? '' : 'none';
}
return false
}
if(ptext[2])
navlinks[i].style.display = navlinks[i].nextSibling.style.display = i<6||i==navlinks.length-1? '' : 'none';
}
}
Then in your configuration script, use something like:
Code:
var thepics=new photogallery(myvacation, 3, 1, '700px', '600px', ['Browsing Gallery', '', '. . .'])
The highlighted text will be the separator:
Code:
1 . . . 31 32 33 34 35 . . . 44
Bookmarks