source: trunk/admin/inc/FCKeditor/editor/css/behaviors/hiddenfield.htc@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 691 bytes
Line 
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
8var bIsHiddenField = this.type == 'hidden' ;
9
10function 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
22function EditField()
23{
24 if ( bIsHiddenField )
25 alert( this.outerHTML ) ;
26}
27
28</script>
29
30</public:component>
Note: See TracBrowser for help on using the repository browser.