emcuemnecu
Registered
Здрасти. Този код се отнася за галерия, която използвам, и като кликнеш на снимката би трябвало да ти зареди нова страница в същия прозорец, не нов!
Как да оправя това ..
[js]
//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var thepics=new photogallery(myvacation, 3, 3, '600px', '800px')
//OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
//DELETE everything below to disable
//Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
thepics.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=200, height=200, status=1, resizable=1")
return false //cancel default action when clicking on image, by returning false instead of true
}
[/js]
Как да оправя това ..
[js]
//initiate a photo gallery
//Syntax: new photogallery(imagearray, cols, rows, tablewidth, tableheight, opt_[paginatetext_prefix, paginatetext_linkprefix])
var thepics=new photogallery(myvacation, 3, 3, '600px', '800px')
//OPTIONAL: Run custom code when an image is clicked on, via "onselectphoto"
//DELETE everything below to disable
//Syntax: function(img, link){}, whereby img points to the image object of the image, and link, its link object, if defined
thepics.onselectphoto=function(img, link){
if (link!=null) //if this image is hyperlinked
window.open(link.href, "", "width=200, height=200, status=1, resizable=1")
return false //cancel default action when clicking on image, by returning false instead of true
}
[/js]