|
Posted by jojo on 07/24/06 15:54
Chris Tomlinson wrote:
> Hi all, just a quickie. I hope someone has the answer.
>
> We have about 30 images on a page, and want to apply something like this to
> all of them:
>
> < ... oncontextmenu="alert('Message here.');return false;" title="Another
> message here." ... >
>
> We want the same thing copied to every image, which basically makes for
> repetitive, long code that takes more time to load.
>
> Is there an easy way to have this appear just once in the code, but apply
> itself to all images in the page?
If you want to have it applied to the images _after_loading the page you
have to use JavaScript. I guess you still won't believe that this
*might* be a problem because many users have it switched off, so it
shouldn't be a problem to use it. But IMHO it's just ridiculous to strip
out snippets of the HTML code to get it loaded more quickly and applying
a JS which takes some time to load...
[Back to original message]
|