Last change
on this file since 17931 was
1900,
checked in by rub, 18 years ago
|
Apply property svn:eol-style Value: LF
|
-
Property svn:eol-style set to
LF
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
523 bytes
|
Line | |
---|
1 | <public:attach event="onmouseover" onevent="montrer()" /> |
---|
2 | <public:attach event="onmouseout" onevent="cacher()" /> |
---|
3 | |
---|
4 | <script langage=javascript> |
---|
5 | var thisImg = this; |
---|
6 | var thisTitle = this.title; |
---|
7 | var thisAlt = this.alt; |
---|
8 | var thisA = this.parentNode; |
---|
9 | var aTitle = thisA.title; |
---|
10 | |
---|
11 | function montrer() |
---|
12 | { |
---|
13 | if (aTitle) |
---|
14 | { |
---|
15 | thisAlt=thisImg.alt; |
---|
16 | thisImg.alt=aTitle; |
---|
17 | thisImg.title=aTitle; |
---|
18 | } |
---|
19 | return; |
---|
20 | } |
---|
21 | |
---|
22 | function cacher() { |
---|
23 | if (thisAlt) |
---|
24 | { |
---|
25 | thisImg.alt=thisAlt; |
---|
26 | thisImg.title=thisTitle; |
---|
27 | } |
---|
28 | return; |
---|
29 | } |
---|
30 | </script> |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.