HighDots Forums  

Re: Links & Pictures

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Links & Pictures in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Random
 
Posts: n/a

Default Re: Links & Pictures - 06-01-2005 , 04:42 AM






Mikaël Hautin wrote:
Quote:
Hi there,

I'm Mikaël Hautin, a new one to this newsgroup. I will show you how to
get rid of <a> tags to put links on pictures.

When you want to put a link to another page on a picture, you type this
kind of HTML code :

a href="page.html" style="text-decoration:none;" alt="funny things
..."
img src="img12.gif" alt="funny things ..." border="0"
/a

But when you click on the image, you can see a dotted border around it.

If you type this instead :

img src="img12.gif" alt="funny things ..." border="0"
onclick="this.location='page.html';" style="cursor:hand;"

I think it is better, especially when you have frames in your website.

Voilà !

PS : forgive my english.
Bad idea as it reduces the accesibility of the web page to people who
are not using pointing devices, have textual browsers, turned off
images, et cetera.

What's wrong with dotted borders? They show up even on textual links,
you know, and they do serve a purpose.

But if you really want to get rid of it:
<a href=my.uri onClick=this.blur() ><img ... /></a>



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.