Kamel:Moonboy/Kamelbau.js

// ================================================================ //                  -- dock menu --- // script by Gerard Ferrandez - Ge-1-doot - February 2006 // http://www.dhteumeuleu.com // modified by Moonboy - August 2008 (ov.lang) // ================================================================ var xm = xmb = ov = 0; var M = true; function dock(dock, sMin, sMax) {	this.icons = document.getElementById(dock).getElementsByTagName('img'); this.N = this.icons.length; this.s = sMin; this.ovk = 0; this.pxLeft = function(o) {		for(var x=-document.documentElement.scrollLeft; o != null; o = o.offsetParent) x+=o.offsetLeft; return x;	} for(var i=0;i<this.N;i++) {		with(this.icons[i]) {			style.width = sMin+"px"; style.height = sMin+"px"; className = "dockicon"; }	}	this.run = function {		with(this) {			for(var i=0;i= sMax) M = false; }	} } document.onmousemove = function(e) {	if(window.event) e=window.event; xm = (e.x || e.clientX); if(xm!=xmb){ M = true; xmb = xm; }	ov = (e.target)?e.target:((e.srcElement)?e.srcElement:null); } window.onload = function {	dock = new dock("dock", 48, 128); setInterval("dock.run", 16); } //--