CPAN-Testers-WWW-Admin

 view release on metacpan or  search on metacpan

vhost/html/js/admin.js  view on Meta::CPAN


function SetImage(id,href) {
	f = document.forms[1];
	f.elements[f.display.value].value=id;
	disp = document.getElementById(f.display.value);
	disp.src=webpath+href
}

function PhotoGallery(callback) {
	document.forms[1].display.value = callback;
	window.open(cgipath+"pages.cgi?act=album-pick", "popup", "width=370,height=450,scrollbars=no,menubar=no,resizable=no,status=no,toolbar=no,location=no");
}

function ImageGallery(callback) {
	document.forms[1].display.value = callback;
	window.open(cgipath+"pages.cgi?act=imgs-gallery&imagetype=0,1,2,4,9", "popup", "width=340,height=390,scrollbars=no,menubar=no,resizable=no,status=no,toolbar=no,location=no");
}

vhost/html/js/fixedmenu.js  view on Meta::CPAN

            menu.left = 0;
            menu.top = 0;
        }
        fixedMenu.addEvent(window, 'onscroll', fixedMenu.moveMenu);
        fixedMenu.floatMenu();
    }
};

fixedMenu.addEvent(window, 'onload', fixedMenu.init);

/* additional code to show/hide popup */

function showMenu() { $(fixedMenuId).style.display = 'block'; initPosition(); }
function hideMenu() { $(fixedMenuId).style.display = 'none';  }
function initPosition() {
    iebody = (document.compatMode=="CSS1Compat") ? document.documentElement : document.body;

    var scroll_top = (isIE) ? iebody.scrollTop   : 0;
    var docwidth   = (isIE) ? iebody.clientWidth : window.innerWidth;
    var docheight  = (isIE) ? iebody.clientHeight: window.innerHeight;



( run in 0.758 second using v1.01-cache-2.11-cpan-364913b4093 )