Re: Changing image onMouseOver of WOHyperLink
Re: Changing image onMouseOver of WOHyperLink
- Subject: Re: Changing image onMouseOver of WOHyperLink
- From: David LeBer <email@hidden>
- Date: Sun, 16 Mar 2008 23:16:23 -0400
On 16-Mar-08, at 10:54 PM, Gustavo Pizano wrote:
Hello, well as some of you know im following the "WebObjects
developers book" and some tutorials and wikis,
Im trying to make a WOHyperLink who has a WOImage inside.. so the
idea is that when I put the moouse over the image change...
something really simple... I have the following
in wod
HomeLink : WOHyperlink {
onMouseOver = onMouseOver;
onMouseOut = onMouseOut;
directActionName = "default";
imageName = imageName;
}
HomeImage : WOImage {
filename = unhighlightedImage;
border = 0;
}
In looking at that part of the book, and it looks like you missed a
step.
At the top of page 31 it tells you to add a 'name' binding to the
WOImage and bind that to imageName.
So your wod should look like:
HomeImage : WOImage {
name = imageName;
filename = unhighlightedImage;
border=0;
}
Though I prefer to use CSS rollovers...
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden