tantachar07 Posted November 21, 2006 Share Posted November 21, 2006 These are my probs: I need to have more than 2 links randomly, in the "tryit" I never fount anything when I did 3 in the "else" statement Can I put img src's through js? Link to comment Share on other sites More sharing options...
aspnetguy Posted November 21, 2006 Share Posted November 21, 2006 Can you explain what you mean for the first one and yes you can set the src with js.HTML <img id="myimg"/> JS var img = document.getElementById('myimg');img.src = "myimage.gif";img.alt = "my alternate text";img.title = "image title"; you can set any html attribute of any html tag with js Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now