hansolo Posted July 24, 2009 Share Posted July 24, 2009 im new to javascript well i am an absolute begginner but i have used actionscript so im am confused with some of the syntax in javascript, any help cheers, is the stastement below a varaible declaring a new image named homeBtnhomeBtn = new Image;is this statement below the path / if not why is the statement included homeBtn.src = homeBtn."gif"if(document.images){homeBtn = new Image;homeBtn.src = homeBtn."gif"}} Link to comment Share on other sites More sharing options...
aspnetguy Posted July 24, 2009 Share Posted July 24, 2009 yes but it should look like this homeBtn = new Image();homeBtn.src = "homeBtn.gif" Link to comment Share on other sites More sharing options...
Ingolme Posted July 25, 2009 Share Posted July 25, 2009 If you actually know ActionScript, you should understand what the new statement stands for.src is referring to the src attribute of the <img> element. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.