I have a small final exam question to do in home and we are allowed to search help. please help me otherwise I will fail because he didn't tell these things in his lessons... here is the question: "Write a javascript program that displays 2 pictures. When the mouse move over the first picture, the page background color should change into green, when the mouse move out of picture area, background color should change into white. The same thing should happen for the second picture, when the mouse move into picture area, background color should change into blue, when the mouse move out of picture area, color should change into white.(use following picture: 8.jpg,9.jpg)" thanks...
LOL. Heard that one before. Or were you asleep/absent perhaps? A Google search should throw in your face what you need.
thanks TOPS30 but I am clever enough to have thought searching from google... will you please find the answer from google for me if it was too easy????????
http://www.codebelly.com/javascript/backimagechange.html this is exactly what you want I found it very easily with this search javascript mouseover background change
This might help: http://www.adjava.info/file.asp?file_id=48 Looks like you might be able to do something like this, haven't tested it though: <img src="redimage.gif" onMouseover="document.bgColor='red'">
For my homework I need to spend 2 hours with a voluptous redhead - I only have 3 hours left! can anyone please help?
But not enough to check out the results? There must be thousands and thousands of examples <a href="#" onMouseOver="javascript:document.bgColor = '#00FF00';" onmouseout="javascript:document.bgColor = '#FFFFFF';"><img src="" ></a> Code (markup):
Well... I'm making it up now for when I never bothered at school (not that we had to write javascript at school)
SO.... why these codes doesn't work?????? I have tried and combined both the site's codes and the ones that you gave but they do not work! :? ? ? ?......................
Talk about grateful!! Perhaps you fell asleep in the other lessons also in how to implement the codes also? If I was your teacher I'd give you an F.
thank you misohoni, this made me very powerful that I will start to study right now and pass the course in two hours, I know I will be given an F, if there exists people like you! you know that nobody can listen all the lessons second by second with a wonderful concentration. also, there are no notes about this unit, he WANTED US TO SEARCH THE SUBJECT BY OURSELVES!
Which you wouldn't do. Go whine somewhere else. We don't need another programmer diluting the market.