Tweezy Posted October 9, 2010 Content Count: 3791 Joined: 08/08/09 Status: Offline Share Posted October 9, 2010 I'm making a website for college, but for some reason my java Script wont work... (Rollover button) Rollover Button <br /> <br /> <br /> image1 = new Image();<br /> image1.src = "button_home1.png";<br /> <br /> onMouseOver"image1.src='button_home1.png';"onMouseOut="image1.src='button_home2.png';"> Thats my code, any ideas why it's not happening? I'm not getting any errors, but when I mouse over my button, nothing happens... Link to comment
Hazmat Posted October 9, 2010 Content Count: 691 Joined: 07/21/09 Status: Offline Share Posted October 9, 2010 Did u forget a = after onMouseOver? or the inline close to sence there is no closing tag. im not the best with java but im going from what i learned in my web dev class. sorry if i didnt help. 1 Link to comment
Tweezy Posted October 9, 2010 Content Count: 3791 Joined: 08/08/09 Status: Offline Share Posted October 9, 2010 That's why it's always better to have another look! Thanks man! I did forget the = Link to comment
Hazmat Posted October 9, 2010 Content Count: 691 Joined: 07/21/09 Status: Offline Share Posted October 9, 2010 No problem. Link to comment
Recommended Posts
Reply to Thread
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