wml::des::rollover(3) | EN Tools | wml::des::rollover(3) |
wml::des::rollover - RollOver-Style Image-Button
#use wml::des::rollover <rollover [attributes]>
One of the most interesting trick to make a webpage more interactive is the so-called rollover effect commonly known from window system GUIs. The idea is simply to change the underlaying image when the mouse rolls over it. Additionally when a mouse click occurs over the image it acts like a button and jumps to a new URL.
Although there are more then one way to achieve this optical effect, to use the client-side scripting-language JavaScript currently is the best solution. But here only those variants can be used which provide the "image" object. Netscape version 3 and 4 and Internet Explorer 4 support this. But the generated code of this "<rollover>" tag is backward-compatible with all types of browsers.
Ralf S. Engelschall rse@engelschall.com www.engelschall.com
Internal: P1, P2 External: JavaScript (BROWSER)
HTML 3.2 "<img>" and "<a>" tags, JavaScript: http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/
2020-11-29 | EN Tools |