aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Question Regarding .png files in this JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question Regarding .png files in this JavaScript" Watch "Question Regarding .png files in this JavaScript" New topic
Author

Question Regarding .png files in this JavaScript

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
Hello, my code snippet is as follows.


I have something like this: where it is a .gif I also need to allow for a .png file.




Thank you,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
What is the question?

Eric
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
Yes on line 11 it references a .gif file. I need to allow it to reference also a .png file of the same name.

Thanks,
Michele
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
images can only reference one src? You want it to reference two? Why?
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
may sound dumb but that was what I was asked to do.

Thanks,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Do they want you to use gif for browsers with bad png support?
 
 
subject: Question Regarding .png files in this JavaScript
 
Similar Threads
animated gif avatars
Attachment file extension
WA #1.....word association
Which image file format you use in SCEA 5 part 2 assigment?
Convert PDF files to Tiff files