My suggestion would be

<td class=".."><a href="..."><img src=".." alt=".." /></a></td>

And attaching the onclick event to <a> with return false; to stop it
executing when there is javascript.

The alternative is to have an onload function that puts the image
outside the <a> and deletes the <a> element.

Both of these will degrade gracefully without needing that ugly <noscript>



On Wed, May 21, 2008 at 4:11 PM, IceKat <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm totally hoping that someone can help me with this. I'm trying to use
> noscript tags but I CANNOT get my page to validate. Below is the section
> which is giving me trouble. Please can someone tell me what the trouble is.
> <td class="delete_file"><noscript><a href="a_link.htm"></noscript>
> <img src="pics/delete.gif" alt="Delete File"
> /><noscript></a></noscript></td>
> I know it looks odd but this version does exactly what I need. However it
> refuses to validate. I use XHTML 1.0 strict and do not want to step down to
> transitional. Unless someone can tell me how to give javascript priority
> then I need to work this out because if I put the link in on it's own it
> does the javascript part and then does the link and I only want the link to
> be activated if javascript is turned off.
> Please someone help. I'm going crazy!
> IceKat.


List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm

Reply via email to