This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 298
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: 15357
    
    6
What is the question?

Eric
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 298
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: 15357
    
    6
images can only reference one src? You want it to reference two? Why?
Michele Smith
Ranch Hand

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

Thanks,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Do they want you to use gif for browsers with bad png support?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question Regarding .png files in this JavaScript
 
Similar Threads
Which image file format you use in SCEA 5 part 2 assigment?
animated gif avatars
WA #1.....word association
Attachment file extension
Convert PDF files to Tiff files