Reply to Re: Any way to apply oncontextmenu and title values to ALL images?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация