Jump to content

Is This Variable And What Does .src Stand For Thank U


hansolo

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...