[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/typo3/sysext/cms/tslib/media/scripts/ -> example_keepRollover.js (source)

   1  /***************************************************************
   2  *
   3  *  Example script for keeping rollover effect when a menu item is clicked.
   4  *
   5  *
   6  *  Copyright notice
   7  * 
   8  *  (c) 1998-2000 Kasper Skårhøj
   9  *  All rights reserved
  10  *
  11  *  This script is part of the standard PHP-code library provided by
  12  *  Kasper Skårhøj, kasper@typo3.com
  13  * 
  14  *  This script 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.
  17  * 
  18  *  This copyright notice MUST APPEAR in all copies of this script
  19  ***************************************************************/
  20  
  21  var ARO_Image=null;
  22  function ARO_setLocationTop(uid,image) {
  23      ARO_setActiveImg(image);
  24      ARO_setFrame('left','index.php?id='+uid+'&type=2');
  25      ARO_setFrame('page','index.php?id='+uid+'&type=1');
  26  }
  27  function ARO_setLocationLeft(uid,image) {
  28      ARO_setActiveImg(image);
  29      ARO_setFrame('page','index.php?id='+uid+'&type=1');
  30  }
  31  function ARO_setFrame(key,url)    {
  32      if (top.frameset2 && top.frameset2[key]) {
  33          top.frameset2[key].location = url;
  34      }
  35  }
  36  function ARO_setActiveImg(image)    {
  37      ARO_out(ARO_Image,'',1);
  38      ARO_Image = image;
  39  }
  40  function ARO_over(name,imgObj,noOutAction)    {
  41      if (version == 'n3' && document[name]) {document[name].src = eval(name+'_h.src');}
  42          else if (imgObj)    {imgObj.src = eval(name+'_h.src');}
  43      if (ARO_Image!=name)  ARO_out(ARO_Image,'',1);
  44  }
  45  function ARO_out(name,imgObj,noOverAction)    {
  46      if (version == 'n3' && document[name]) {document[name].src = eval(name+'_n.src');}
  47          else if (imgObj)    {imgObj.src = eval(name+'_n.src');}
  48      if (!noOverAction)    ARO_over(ARO_Image,'',1);
  49  }
  50  
  51  


Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics