Improve Javascript
Project ID: 1230988752
Project Details
- Status: Closed (Chosen Programmer: shome; Paid; Rated 10 out of 10)
- Posted: 1/3/2009 at 8:19 EST
- Closed: 1/7/2009 at 12:38 EST
- Project Creator:
- Budget: N/A
- Description: Hello,
I have a javascript which displays a preview image when the mouse is over a thumbnail. It works great, and I have been able to alter it so if there is an error loading a preview image, it will show a different image. (See line 65 of the attached file).
What I would like is for it to try to load one image, if that errors out, try a different image, and if that errors out, try another image, going through a list until it finds one that loads.
For instance, the image number might be 38572.
I would like for it to try to load 38572-a.jpg then 38572-b.jpg then 38572-r.jpg then 38572-g.jpg.
I would have defined within the script the "-a.jpg,-b.jpg,-r.jpg,-g.jpg".
I am attaching a copy of the script for your review.
Additional Info (Added 1/3/2009 at 9:11 EST)...Attached file: CallingCode.txt
File info: Sample of code which calls the JS.Additional Info (Added 1/3/2009 at 9:14 EST)...Attached file: CallingCode.zip
File info: Download the CallingCode.zip file instead of the CallingCode.txtAdditional Info (Added 1/3/2009 at 11:06 EST)...Attached file: CallingCode-Fixed.zip
File info: Fixed zip file - Use this oneAdditional Info (Added 1/3/2009 at 11:07 EST)...I can not get the zip file to work correctly. PM me for the calling code.Additional Info (Added 1/3/2009 at 11:50 EST)...I will pay a $15 bonus to the selected bidder if you can make it resize the displayed image to the actual dimansions of the image that gets loaded.Additional Info (Added 1/4/2009 at 13:30 EST)...Please cancel the last remark about the bonus for the image resize feature. I found out it is already a part of the script. - Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| lnj2008 | $10 | 1 day | 1/4/2009 at 4:05 EST | (1 review) |
|
| Hi, pls check PM.I can do yr work without wasting yr time. Regards, lnj. | |||||
| microwebplanet | $20 | Immediately | 1/3/2009 at 8:59 EST | (28 reviews) |
|
| pls see pmb | |||||
| snowtigersoft | $20 | Immediately | 1/3/2009 at 10:00 EST | (No Feedback Yet) | |
| Please see PM | |||||
| quickwork | $30 | 2 hours | 1/3/2009 at 12:19 EST | (49 reviews) |
|
| I can get this done in a couple hours time for you. | |||||
| shome |
$30 | 1 day | 1/5/2009 at 11:58 EST | (19 reviews) |
|
| Please check my private messages. | |||||
| dragondance | $35 | 2 hours | 1/3/2009 at 10:53 EST | (156 reviews) |
|
| It's very easy. | |||||
| jameskap | $40 | Immediately | 1/3/2009 at 9:39 EST | (29 reviews) |
|
| it can be Done,We are well in JavaScript,Please View Profile in PMB.. | |||||
| jack | $40 | 1 day | 1/3/2009 at 9:50 EST | (296 reviews) |
|
| I can do this with the best quality. Please contact me for the further details. | |||||
| pgani84 | $40 | 1 day | 1/3/2009 at 9:06 EST | (44 reviews) |
|
| This will be done. | |||||






