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: 421
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: 421
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: 421
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question Regarding .png files in this JavaScript