Else if in JavaScript

I have no idea how to go about inserting images into Java script using else if statement.