[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 // 2 // Created on: <1-Aug-2002 16:45:00 fh> 3 // 4 // SOFTWARE NAME: eZ publish 5 // SOFTWARE RELEASE: 3.9.0 6 // BUILD VERSION: 17785 7 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 8 // SOFTWARE LICENSE: GNU General Public License v2.0 9 // NOTICE: > 10 // This program is free software; you can redistribute it and/or 11 // modify it under the terms of version 2.0 of the GNU General 12 // Public License as published by the Free Software Foundation. 13 // 14 // This program is distributed in the hope that it will be useful, 15 // but WITHOUT ANY WARRANTY; without even the implied warranty of 16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 // GNU General Public License for more details. 18 // 19 // You should have received a copy of version 2.0 of the GNU General 20 // Public License along with this program; if not, write to the Free 21 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 22 // MA 02110-1301, USA. 23 // 24 // 25 26 /*! \file ezjslibmousetracker.js 27 */ 28 29 30 /*! 31 \brief 32 This library contains a mouse tracker. Simply include it and the current mouse 33 position will be in MouseX and MouseY. 34 */ 35 36 // Global VARS 37 var MouseX = 0; // Track mouse position 38 var MouseY = 0; 39 40 41 /** 42 * mouseHandler is called each time the mouse is moved within the document. We use the 43 * mouse position to popup the menus where the mouse is located. 44 */ 45 function ezjslib_mouseHandler( e ) 46 { 47 if ( !e ) 48 { 49 e = window.event; 50 } 51 if( e.pageX || e.pageY ) 52 { 53 MouseX = e.pageX; 54 MouseY = e.pageY; 55 } 56 else if ( e.clientX || e.clientY ) // IE needs special treatment 57 { 58 MouseX = e.clientX + document.documentElement.scrollLeft; 59 MouseY = e.clientY + document.documentElement.scrollTop; 60 } 61 } 62 63 64 // Uncomment the following lines if you want to use the mouseHandler function 65 // for tracing. Note that this can be slow on IE. 66 //document.onmousemove = ezjslib_mouseHandler; 67 //if ( document.captureEvents ) document.captureEvents( Event.MOUSEMOVE ); // NN4
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |