June 2002
Intermediate to advanced
400 pages
7h 48m
English
In this section we will prototype and develop a WORollover component. One that is essentially an active link with a rollover image.
Before we dive into developing the component, let's think about what is required.
In terms of generating HTML, we're looking at producing something along the lines of the following:
<a href="/index.html" onMouseOver="image.src='/imageH.gif'" onMouseOut="image.src='/imageH.gif'"> <img src="/image.gif" name="image"> </a>
The differences will be that the link href will be a WebObjects URL. The image src will also point to a WebObjects Resource.
NOTE
Images in WebObjects are vended differently from those in WebObjects pages because of performance and efficiency. ...