From a365bbcf0ccc18cc5cee9e5cc697725279b02e53 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 14 Jul 2007 06:33:18 +0000 Subject: issue41, remove any trace of the javascript bubble git-svn-id: file:///var/lib/svn/phpfspot/trunk@196 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- bubble.js | 334 -------------------------------------------------------------- 1 file changed, 334 deletions(-) delete mode 100644 bubble.js (limited to 'bubble.js') diff --git a/bubble.js b/bubble.js deleted file mode 100644 index d44780e..0000000 --- a/bubble.js +++ /dev/null @@ -1,334 +0,0 @@ -/* - WebSnapr - Preview Bubble Javascript - Written by Juan Xavier Larrea - http://www.websnapr.com - xavier@websnapr.com - -*/ - -// Point this variable to the correct location of the bg.png file -var bubbleImageUp = 'resources/bubble_up.png'; -var bubbleImageDown = 'resources/bubble_down.png'; - -if(typeof Array.prototype.push!="function"){ - Array.prototype.push=ArrayPush; - - function ArrayPush(_1){ - this[this.length]=_1; - } -} - -function WSR_getElementsByClassName(oElm, strTagName, oClassNames){ - var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); - var arrReturnElements = new Array(); - var arrRegExpClassNames = new Array(); - if(typeof oClassNames == "object"){ - for(var i=0; i= get_page_height()) { - var _f=findPos(_c)[1]-363; - bubbleImage = bubbleImageUp; - } - else { - var _f=findPos(_c)[1]+17; - bubbleImage = bubbleImageDown; - } - } - else { - var _e=findPos(_c)[0]+5; - var _f=findPos(_c)[1]+129; - bubbleImage = bubbleImageDown; - } - if (BrowserDetect.browser == 'Explorer') { - _10.style.width="275px"; - _10.style.height="275px"; - _10.style.position="absolute"; - _10.style.top=_f; - _10.style.zIndex=99999; - _10.style.left=_e; - _10.style.textAlign="left"; - _10.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bubbleImage + "',sizingMethod='image')"; - } else if (BrowserDetect.browser == 'Safari' || BrowserDetect.browser == 'Konqueror' ) { - _10.setAttribute("style","text-align: center; z-index: 99999; position: absolute; top: "+ _f +"px ; left: "+ _e +"px ; background: url("+ bubbleImage +") no-repeat; width: 275px; height: 275px; padding: 0; margin: 0;"); - } else { - _10.setAttribute("style","text-align: center; z-index: 99999; position: absolute; top: "+_f+"px ; left: "+ _e +"px ; background: url("+ bubbleImage +") no-repeat; width: 275px; height: 275px; padding: 0; margin: 0;"); - } - - if(cur_height >= get_page_height()) - showBubbleDetails(_10, _c.id, 'up'); - else - showBubbleDetails(_10, _c.id, 'down'); - -} - -function detachBubble(_12){ - lbActions=WSR_getElementsByClassName(document,"div","bubble"); - for(i=0;i \"" + value + "\"\n"; - } - } - } else { //Stings/Chars/Numbers etc. - dumped_text = "===>"+arr+"<===("+typeof(arr)+")"; - } - return dumped_text; - -}//end function var_dump - -function get_page_height() -{ - var myHeight = 0; - if( typeof( window.innerHeight ) == 'number' ) { - //Non-IE - myHeight = window.innerHeight; - } else if( document.documentElement && document.documentElement.clientHeight ) { - //IE 6+ in 'standards compliant mode' - myHeight = document.documentElement.clientHeight; - } else if( document.body && document.body.clientHeight ) { - //IE 4 compatible - myHeight = document.body.clientHeight; - } - - return myHeight; -} - -function get_scroll_position() -{ - if (typeof window.pageYOffset != 'undefined') { - return window.pageYOffset; - } - else { - if (typeof document.compatMode != 'undefined' && - document.compatMode != 'BackCompat' && - typeof window.scrollTop != 'undefined') - return window.scrollTop; - else { - if(typeof document.documentElement.scrollTop != 'undefined') - return document.documentElement.scrollTop; - else { - if (typeof document.body.scrollTop != 'undefined') - return document.body.scrollTop; - } - } - } - - return 0; - -} - -BrowserDetect.init(); -- cgit v1.2.3-18-g5258