• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing image onMouseOver of WOHyperLink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Changing image onMouseOver of WOHyperLink (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Changing image onMouseOver of WOHyperLink
  • Next by Date: Re: WWDC 08
  • Previous by thread: Changing image onMouseOver of WOHyperLink
  • Next by thread: Upgrade to leopard causes ERXBlowfish exception (SOLVED)
  • Index(es):
    • Date
    • Thread