Adding new Link() to an img tag = weird default behavior

2008-03-27 Thread Dan Kaplan
Hello, Yesterday I tried adding a new Link() to an img tag. I noticed that when you hover over the image the cursor doesn't change and the status bar doesn't say anything. I bet 9 times out of 10 you wouldn't want this behavior. I already fixed the cursor problem with CSS, how do I make the

Re: Adding new Link() to an img tag = weird default behavior

2008-03-27 Thread Gerolf Seitz
that's because Link only adds the onclick event handler for non anchor tags and browser only do the cursor and status bar thing for anchor tags by default. you already fixed the cursor issue and you can write text to the status bar via window.status = foo, although this doesn't work in IE7 and

RE: Adding new Link() to an img tag = weird default behavior

2008-03-27 Thread Dan Kaplan
will be replaced/a -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 11:32 AM To: users@wicket.apache.org Subject: Re: Adding new Link() to an img tag = weird default behavior that's because Link only adds the onclick event handler for non