X-Git-Url: http://www.average.org/gitweb/?p=mkgallery.git;a=blobdiff_plain;f=include%2Fgallery.js;h=f85f19a30d9142773fcb4e623e5181d863dad0ae;hp=0900c799e99a70185a57c87be1738bfe9643906c;hb=938141692ce114b47e3268df7a2bb115e40e8e0d;hpb=a01bd7a3ca127d89ae4a2d55c289c0c13ae70693 diff --git a/include/gallery.js b/include/gallery.js index 0900c79..f85f19a 100644 --- a/include/gallery.js +++ b/include/gallery.js @@ -6,30 +6,6 @@ Uses slideshow http://www.phatfusion.net/slideshow/ */ -function showIbox(iboxid) { - var ibox = document.getElementById(iboxid); - var bwidth = 400; - var bheight = 300; - - var wwidth = window.getWidth(); - var wheight = window.getHeight(); - - ibox.style.top = window.getScrollTop() + ((wheight - bheight) / 2) + 'px'; - ibox.style.left = ((wwidth - bwidth) / 2) + "px"; - ibox.style.width = bwidth + "px"; - ibox.style.height = bheight + "px"; - // alert('wwidth='+wwidth+'; bwidth='+bwidth+'; wheight='+wheight+'; bheight='+bheight); - ibox.zIndex = '0'; - ibox.style.display = 'block'; - return false; -} -function HideIbox(iboxid) { - var ibox = document.getElementById(iboxid); - ibox.zIndex = '1000'; - ibox.style.display = 'none'; - return false; -} - /* Slideshow */ @@ -150,6 +126,14 @@ function init_gallery() { alert(msg) /* end debugging output */ + var iboxparams = { + useOverlay: true, + showNumbers: false, + openFromLink: false, + descClassName: 'infoboxdesc', + } + ibox = new MultiBox('infobox', iboxparams) + var winparms = {} showwin = new ShowWindow('slideshowWindow',winparms)