Changeset 2623 for trunk/phpgwapi/js/expressoAjax/dom.js
- Timestamp:
- 04/23/10 10:41:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/js/expressoAjax/dom.js
r2618 r2623 1 XEvents.add( window, "onload", function( ) 2 { 3 if ( template == 'classic' ) 4 return false; 5 6 var icons = document.getElementById( "app_icons" ).getElementsByTagName( "td" ); 7 for ( var i = 0; i < icons.length; i++ ) 8 { 9 XEvents.add( icons.item( i ), "onmouseover", function( ) 10 { 11 if ( this.className != "navbar_butOut" ) 12 { 13 this.className = "navbar_butOver"; 14 /*zoom_in( this.firstChild.firstChild.id );*/ 15 } 16 } ); 17 XEvents.add( icons.item( i ), "onmouseout", function( ) 18 { 19 if ( this.className != "navbar_butOut" ) 20 { 21 this.className = "navbar_but"; 22 /*zoom_out( this.firstChild.firstChild.id );*/ 23 } 24 } ); 25 XEvents.add( icons.item( i ), "onclick", function( ) 26 { 27 if ( this.className != "navbar_butOut" ) 28 { 29 this.className = "navbar_butOut"; 30 /*zoom_out( this.firstChild.firstChild.id );*/ 31 var app = document.getElementById( curr_app ); 32 if ( app ) 33 app.parentNode.parentNode.className= "navbar_but"; 34 //curr_app = "' . str_replace( '_', '', $app ) . 'id" 35 } 36 } ); 37 } 38 } ); 39 40 function openWindow( newWidth, newHeight, link ) 41 { 42 newScreenX = screen.width - newWidth; 43 newScreenY = 0; 44 Window1 = window.open( link, "", 45 "width=" + newWidth + ", height=" + newHeight 46 + ", screenX=" + newScreenX + ", screenY=" + newScreenY 47 + ", top=" + newScreenY + ", left=" + newScreenX 48 + ", toolbar=no, scrollbars=yes, resizable=no" 49 ); 50 } 51 1 52 function borkb(size){ 2 53 kbyte = 1024; … … 193 244 extra = document.getElementById("extraButton"); 194 245 extra.style.visibility = "hidden"; 195 but.innerHTML= "<a title='"+title+"' onClick='javascript:changeBar()'><img src="+URL_SERVER+"'/phpgwapi/templates/default/images/up.button.png'></a>";246 but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + '/phpgwapi/templates/default/images/up.button.png"></a>'; 196 247 var neverExpires = new Date("January 01, 2100 00:00:00"); 197 248 document.cookie = "showHeader=true"+
Note: See TracChangeset
for help on using the changeset viewer.