Sure. First, replace array photolink[] with:
Code:
//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=["http://google.com", 500, 400] //pop up window
photoslink[1]=["http://yahoo.com"]
photoslink[2]=[""]
Then, replace function transport() with:
Code:
function transport(){
if (typeof photoslink[which][1]!="undefined")
window.open(photoslink[which][0], "", "width="+photoslink[which][1]+", height="+photoslink[which][2]+'"')
else
window.location=photoslink[which][0]
}
Here the first link ("google.com") will load in a controlled popup window.
Bookmarks