Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question Regarding .png files in this JavaScript

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the question?

Eric
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
images can only reference one src? You want it to reference two? Why?
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
may sound dumb but that was what I was asked to do.

Thanks,
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do they want you to use gif for browsers with bad png support?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic