Last change
on this file since 7124 was
7124,
checked in by cljosse, 13 years ago
|
[Autosize][beta]Improvement theme compatibility.
|
File size:
841 bytes
|
Line | |
---|
1 | <a><input id="bp_cla" |
---|
2 | type="image" |
---|
3 | style=" float:right;border:0px;" |
---|
4 | src="{$cl_autosize_button.ICON}" |
---|
5 | onclick = " Toggle_bp() " |
---|
6 | title="{'cl_autosize_info_2'|@translate}" |
---|
7 | alt="{'cl_autosize_info_2'|@translate}" /> |
---|
8 | </a> |
---|
9 | <script language=javascript type="text/javascript"> |
---|
10 | src1="{$cl_autosize_button.ICON}"; |
---|
11 | src2="{$cl_autosize_button.ICON2}"; |
---|
12 | src3="{'cl_autosize_info_2'|@translate}"; |
---|
13 | src4="{'cl_autosize_info'|@translate}"; |
---|
14 | |
---|
15 | function Toggle_bp() |
---|
16 | {ldelim} |
---|
17 | visible = !visible ; |
---|
18 | if (visible) src=src1 ; |
---|
19 | else src=src2 ; |
---|
20 | if (visible) src_info=src3 ; |
---|
21 | else src_info=src4 ; |
---|
22 | |
---|
23 | jQuery('#bp_cla').get(0).src=src ; |
---|
24 | jQuery('#bp_cla').attr('alt',src_info); |
---|
25 | jQuery('#bp_cla').attr('title',src_info); |
---|
26 | old_w = 0; |
---|
27 | jQuery(window).resize(); |
---|
28 | } |
---|
29 | </script> |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.