Last change
on this file since 3369 was
3282,
checked in by plg, 15 years ago
|
change: according to topic:15067, svn:keywords property was removed
|
-
Property svn:eol-style set to
LF
|
File size:
523 bytes
|
Rev | Line | |
---|
[1475] | 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.