diff -r 4c86151704e9 -r 3daa4039509a web/rsln/res/metadataplayer/test/1Marc-javascript-fisheye-menu-c21f3bd/fisheye.js --- a/web/rsln/res/metadataplayer/test/1Marc-javascript-fisheye-menu-c21f3bd/fisheye.js Fri Apr 22 12:31:41 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,88 +0,0 @@ -/*! - * Fisheye Menu - * Copyright 2007-2009 Marc Grabanski (m@marcgrabanski.com) http://marcgrabanski.com - * Project Page: http://marcgrabanski.com/pages/code/fisheye-menu - * Under the MIT License */ - -var fisheyemenu = { - startSize : 55, - endSize : 88, - imgType : ".gif", - init : function () { - var animElements = document.getElementById("fisheye_menu").getElementsByTagName("img"); - var titleElements = document.getElementById("fisheye_menu").getElementsByTagName("span"); - for(var j=0; j steps) window.clearInterval(elem.widthChangeMemInt); - } - ,intervals) - }, - easeInOut : function (minValue,maxValue,totalSteps,actualStep,powr) { - //Generic Animation Step Value Generator By www.hesido.com - var delta = maxValue - minValue; - var stepp = minValue+(Math.pow(((1 / totalSteps)*actualStep),powr)*delta); - return Math.ceil(stepp) - }, - imgSmall : function (obj) { - imgSrc = obj.getAttribute("src"); - var typePos = imgSrc.indexOf(fisheyemenu.imgType, 0); - var imgName = imgSrc.substr(0, typePos); - obj.setAttribute("src", imgName+"_small"+fisheyemenu.imgType); - }, - imgLarge : function (obj) { - imgSrc = obj.getAttribute("src"); - var typePos = imgSrc.indexOf("_small", 0); - var imgName = imgSrc.substr(0, typePos); - obj.setAttribute("src", imgName+fisheyemenu.imgType); - } -} - -// Add event with wide browser support -if ( typeof window.addEventListener != "undefined" ) - window.addEventListener( "load", fisheyemenu.init, false ); -else if ( typeof window.attachEvent != "undefined" ) - window.attachEvent( "onload", fisheyemenu.init ); -else { - if ( window.onload != null ) { - var oldOnload = window.onload; - window.onload = function ( e ) { - oldOnload( e ); - fisheyemenu.init(); - }; - } - else - window.onload = fisheyemenu.init; -} \ No newline at end of file