ეს არის მოძრავი თოვლის ბაბუა დააყენეთ თქვენ საიტზე და შეაფასეთ
სკრიპტი
Code
<span style="background-color: rgb(255, 255, 255); font-family: tahoma;"><!-- sareklamo baneri MODZRAVI --></span><span style="background-color: rgb(255, 255, 255); font-family: tahoma;"> </span></div><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"><div id="floatdiv" style="position:absolute;z-index:100"> </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"><a href="http://gelesson.net" target="_blank"><img alt="" src="http://www.picz.ge/img/s2/1212/24/6/60c9cd52bab4.png" height="87" width="70"></a> </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"></div> </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"><script type="text/javascript"> </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">/* Script by: gelesson.net </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">* www.gelesson.net </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">*/ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var floatingMenuId = 'floatdiv'; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var floatingMenu = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">targetX: 20, </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">targetY: 420, </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">hasInner: typeof(window.innerWidth) == 'number', </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">hasElement: typeof(document.documentElement) == 'object' </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">&& typeof(document.documentElement.clientWidth) == 'number', </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">menu: </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">document.getElementById </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? document.getElementById(floatingMenuId) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.all </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? document.all[floatingMenuId] </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.layers[floatingMenuId] </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.move = function () </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.menu.style.left = floatingMenu.nextX + 'px'; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.menu.style.top = floatingMenu.nextY + 'px'; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.computeShifts = function () </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var de = document.documentElement; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.shiftX = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasInner </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? pageXOffset </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? de.scrollLeft </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.scrollLeft; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (floatingMenu.targetX < 0) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.shiftX += </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? de.clientWidth </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.clientWidth; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.shiftY = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasInner </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? pageYOffset </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? de.scrollTop </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.scrollTop; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (floatingMenu.targetY < 0) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (floatingMenu.hasElement && floatingMenu.hasInner) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// Handle Opera 8 problems </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.shiftY += </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">de.clientHeight > window.innerHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? window.innerHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: de.clientHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">else </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.shiftY += </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? de.clientHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.clientHeight; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.calculateCornerX = function() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (floatingMenu.targetX != 'center') </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return floatingMenu.shiftX + floatingMenu.targetX; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var width = parseInt(floatingMenu.menu.offsetWidth); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var cornerX = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? (floatingMenu.hasInner </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? pageXOffset </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.documentElement.scrollLeft) + </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">(document.documentElement.clientWidth - width)/2 </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.scrollLeft + </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">(document.body.clientWidth - width)/2; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return cornerX; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.calculateCornerY = function() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (floatingMenu.targetY != 'center') </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return floatingMenu.shiftY + floatingMenu.targetY; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var height = parseInt(floatingMenu.menu.offsetHeight); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// Handle Opera 8 problems </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var clientHeight = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasElement && floatingMenu.hasInner </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">&& document.documentElement.clientHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">> window.innerHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? window.innerHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.documentElement.clientHeight </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var cornerY = </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.hasElement </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? (floatingMenu.hasInner </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? pageYOffset </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.documentElement.scrollTop) + </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">(clientHeight - height)/2 </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.body.scrollTop + </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">(document.body.clientHeight - height)/2; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return cornerY; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.doFloat = function() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// Check if reference to menu was lost due </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// to ajax manipuations </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (!floatingMenu.menu) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">menu = document.getElementById </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? document.getElementById(floatingMenuId) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.all </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">? document.all[floatingMenuId] </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">: document.layers[floatingMenuId]; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">initSecondary(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var stepX, stepY; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.computeShifts(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var cornerX = floatingMenu.calculateCornerX(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var stepX = (cornerX - floatingMenu.nextX) * .07; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (Math.abs(stepX) < .5) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">stepX = cornerX - floatingMenu.nextX; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var cornerY = floatingMenu.calculateCornerY(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var stepY = (cornerY - floatingMenu.nextY) * .07; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (Math.abs(stepY) < .5) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">stepY = cornerY - floatingMenu.nextY; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (Math.abs(stepX) > 0 || </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">Math.abs(stepY) > 0) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.nextX += stepX; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.nextY += stepY; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.move(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">setTimeout('floatingMenu.doFloat()', 20); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// addEvent designed by Aaron Moore </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.addEvent = function(element, listener, handler) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if(typeof element[listener] != 'function' || </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">typeof element[listener + '_num'] == 'undefined') </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener + '_num'] = 0; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (typeof element[listener] == 'function') </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener + 0] = element[listener]; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener + '_num']++; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener] = function(e) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">var r = true; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">e = (e) ? e : window.event; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">for(var i = element[listener + '_num'] -1; i >= 0; i--) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if(element[listener + i](e) == false) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">r = false; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return r; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">//if handler is not already stored, assign it </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">for(var i = 0; i < element[listener + '_num']; i++) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if(element[listener + i] == handler) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">return; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener + element[listener + '_num']] = handler; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">element[listener + '_num']++; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.init = function() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.initSecondary(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.doFloat(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">}; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// Some browsers init scrollbars only after </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">// full document load. </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.initSecondary = function() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.computeShifts(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.nextX = floatingMenu.calculateCornerX(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.nextY = floatingMenu.calculateCornerY(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.move(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">if (document.layers) </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.addEvent(window, 'onload', floatingMenu.init); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">else </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.init(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.addEvent(window, 'onload', </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.initSecondary); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">function move_lower_right() </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">{ </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.targetX=-250; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">floatingMenu.targetY=-120; </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">} </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);">//move_lower_right(); </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"></script> </span><br style="margin: 0px; padding: 0px; font-family: tahoma; background-color: rgb(255, 255, 255);"><span style="font-family: tahoma; background-color: rgb(255, 255, 255);"><!-- sareklamo baneri MODZRAVI -->
html-კოდი ფაილის | |
BB-კოდი ფაილის | |
გაუზიარე ეს ფაილი მეგობარს |
მომეწონა
+13
სულ კომენტარები: 0 | |