I've been looking at this slideshow code for a couple days now trying to decide how best to go about making it access two separate slideshows.
As it sits, it accesses one slideshow with multiple galleries. But say you wanted two different slideshows, with the galleries separating into one for functions and another separating into manufacturers of a line of products, set up on different links.
I was looking at the 5th line of code..that is the link to the slideshow...is there away to change that "var" to a specified link? So that you can put into two separate links?
Assuming you don't have to make any huge changes to the software, I assume you can simply change the links that are accessed?
CODE
var windowW=640 // wide
var windowH=640 // high
var windowX = 250 // from left
var windowY = 100 // from top
var urlPop = "Slideshow/Gallery001.html"
var title = "Mr. X | Business Machines"
var autoclose = true
s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
function openFrameless(){
if (beIE){
NFW = window.open("","popFrameless","fullscreen,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
NFW.document.open();
NFW.document.write(frameString)
NFW.document.close()
} else {
NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
NFW.blur()
window.focus()
NFW.resizeTo(windowW,windowH)
NFW.moveTo(windowX,windowY)
}
NFW.focus()
if (autoclose){
window.onunload = function(){NFW.close()}
}
}
This is linked to a .js file. I know this isn't the most efficient way of doing it, but could you simply create another.js file with a different name and link the second show to the new file?