Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Alternative Image
- From: shawn.milo at gmail.com (Shawn Milo)
- Subject: [Javascript] Alternative Image
- Date: Tue May 17 13:53:50 2005
You can easily automate the entry of the image names into your database. I doubt that using a server-side script to hit a database will cost you more than a half-second in page load time. If you'd like some help with these non-Javascript issues, you can e-mail me off-list. Shawn On 5/17/05, Innerlab <innerlab@xxxxxxxxxxx> wrote: > ----- Original Message ----- > From: "Cutter (JS)" <java.script@xxxxxxxxxxxx> > > > Generally JS is a client side language, whereas you would want a > > server side language for directory access... > > The original images displayed are dynamic (with ASP). But If I rely on SQL > queries to a database, or some file system commands to check my website > folders to see if such image is there, the whole things takes too many > resources (plus the time of typing the images' names into a DB). So I hoped > the client could do that with javascript. > > I found the following solution, but it may not work with all browsers: > > <img src="Orig_Img.jpg" onerror="this.src='Alt_Img.jpg';" /> > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > -- Voicemail any time at: 206-666-MILO
- References:
- [Javascript] Disable NETSCAPE (CONTROL-CLICK, SHIFT CLICK)
- From: Keshav K Habib
- [Javascript] Alternative Image
- From: Innerlab
- [Javascript] Alternative Image
- From: Cutter (JS)
- [Javascript] Alternative Image
- From: Innerlab
- [Javascript] Disable NETSCAPE (CONTROL-CLICK, SHIFT CLICK)
- Prev by Date: [Javascript] Alternative Image
- Next by Date: [Javascript] javascript includes
- Previous by thread: [Javascript] Alternative Image
- Next by thread: [Javascript] Re: Parsing XML terror alert level
- Index(es):