[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/editor/css/behaviors/ -> hiddenfield.htc (source)

   1  <public:component lightweight="true">
   2  
   3  <public:attach event="oncontentready" onevent="ShowField()" />
   4  <public:attach event="ondoubleclick" onevent="EditField()" />
   5  
   6  <script language="javascript">
   7  
   8  var bIsHiddenField = this.type == 'hidden' ;
   9  
  10  function ShowField()
  11  {
  12      if ( bIsHiddenField ) 
  13      {
  14          this.runtimeStyle.width                = '20px' ;
  15          this.runtimeStyle.height            = '20px' ;
  16          this.runtimeStyle.border            = '1px dotted #FF0000' ;
  17          this.runtimeStyle.backgroundImage    = 'url(css/behaviors/hiddenfield.gif)' ;
  18          this.runtimeStyle.fontSize            = '99px' ;
  19      }
  20  }
  21  
  22  function EditField()
  23  {
  24      if ( bIsHiddenField ) 
  25          alert( this.outerHTML ) ;
  26  }
  27  
  28  </script>
  29  
  30  </public:component>


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7