Jump to content

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


hansolo
 Share

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.

Edited by Ingolme
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...