[Javascript] image preloading problems

Peter Brunone peter at brunone.com
Fri Aug 10 12:47:57 CDT 2001


    Definitely the first option, because not all browsers support event
handling for images.

    Of course I'm open to being corrected if others have better
suggestions...

----- Original Message -----
From: "Jon Drukman" <jsd at cluttered.com>
To: <javascript at LaTech.edu>
Sent: Friday, August 10, 2001 12:40 PM
Subject: Re: [Javascript] image preloading problems


| At 12:39 PM 8/10/2001 -0500, Peter Brunone wrote:
| >Jon,
| >
| >     Just an unrelated observation (I apologize if this has been brought
up
| >already), but it's generally better coding practice to use the HREF
property
| >of a link with the javascript: pseudoprotocol rather than its onClick
event
| >handler, e.g.
| >
| ><A HREF="javascript:doThisFunction(withThisParameter)">
|
| thanks for the tip peter.  i'll do that.
|
| here's a question:  is it better to do
|
| <a href="javascript:code"><img src></a>
|
| or
|
| <img src="..." onClick="...">
|
| and why?
|
| -jsd-
|
|
| _______________________________________________
| Javascript mailing list
| Javascript at LaTech.edu
| http://www.LaTech.edu/mailman/listinfo/javascript
|




More information about the Javascript mailing list