Bad Credit Mortgages - Modded Xbox - Car Insurance - Daily Horoscopes - Image Hosting Site

PDA

View Full Version : urgent question! I have 5 hours left!


delimidilli
May 18th 2005, 1:47 am
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... :confused:

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...

davedx
May 18th 2005, 1:50 am
Can't be bothered giving you a full solution, but this page (http://www.codebelly.com/javascript/backimagechange.html) looks like more or less what you need :)

T0PS3O
May 18th 2005, 1:52 am
... otherwise I will fail because he didn't tell these things in his lessons...

LOL. Heard that one before. Or were you asleep/absent perhaps?

A Google search should throw in your face what you need.

delimidilli
May 18th 2005, 2:47 am
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????????:P

T0PS3O
May 18th 2005, 2:50 am
No thanks.

Have you progressed on this over the last hour?

SERPalert
May 18th 2005, 2:51 am
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... :confused:

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...

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

dirvish
May 18th 2005, 2:53 am
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'">

samm27
May 18th 2005, 2:54 am
For my homework I need to spend 2 hours with a voluptous redhead - I only have 3 hours left! can anyone please help?

DangerMouse
May 18th 2005, 2:55 am
thanks TOPS30 but I am clever enough to have thought searching from google...

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>

dirvish
May 18th 2005, 2:57 am
Looks like DangerMouse just did your homework for you. ;)

DangerMouse
May 18th 2005, 3:01 am
Well... I'm making it up now for when I never bothered at school (not that we had to write javascript at school) ;)

delimidilli
May 18th 2005, 3:33 am
well... very nice conversations...:)

T0PS3O
May 18th 2005, 3:38 am
I'm sure those who helped you have PayPal accounts ;)

miko67
May 18th 2005, 3:45 am
how about a picture of the voluptous redhead? :p :D

delimidilli
May 18th 2005, 3:49 am
muuahahahahaha.....!:D

delimidilli
May 18th 2005, 4:08 am
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! :? ? ? ?......................

misohoni
May 18th 2005, 4:20 am
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.

delimidilli
May 18th 2005, 4:35 am
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!

DangerMouse
May 18th 2005, 4:56 am
Don't worry, I can give them the programmers age old response...

"Well, I works in on my machine..." :P

noppid
May 18th 2005, 4:58 am
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.

delimidilli
May 18th 2005, 5:06 am
programmer? yes... a wonderful programmer:))))))))))))))) a wonderful programmer that can not use a silly scripting language trick... I AM NOT STUDYING COMPUTER PROGRAMMING OR SOMETHING I AM JUST AN UNLUCKY ART STUDENT AND WE ARE FORCED TO TAKE THIS LESSON.....!!!! AND I DON'T WANT TO TAKE A LESSON NEXT SESSION WHICH CONTAINS THINGS THAT I WILL NEVER USE AGAIN IN MY LIFE.....!

thanks dangermouse!!!!!!!!!

T0PS3O
May 18th 2005, 5:13 am
We have good vision...

noppid
May 18th 2005, 5:28 am
We have good vision...

I think cause he can shout at mom, he thought it would have an effect on me.

Homey don't play that crap, the worst kids in the hood that would curse their moms call me sir. It's kinda funny. If something goes wrong int he hood, I just walk up to them now and they start ratting each other out.

Nothing has gone missing from anyone's yard in about 2 years now. That happened once only though and ...

Oh damn, I'm ranting. Later.

delimidilli
May 18th 2005, 5:57 am
What a wonderful language... but I do not understand because english is not my first language.

then "mom", my time has finished and you can give my F because I did nothing as you have expected, I am an honest, religious, wonderful person right now, and I have guaranteed my peaceful place in heaven...

ALSO, I AM NOT "HE"... BE THINKING OF "OTHER" SEXES SOMETIMES...

miko67
May 18th 2005, 7:53 am
I have guaranteed my peaceful place in heaven...
this thread is clearly getting hijacked... also it shows signs of great surreal humor... :rolleyes:

Keep it up - my day is starting to look better. :D

I AM NOT STUDYING COMPUTER PROGRAMMING OR SOMETHING I AM JUST AN UNLUCKY ART STUDENT AND WE ARE FORCED TO TAKE THIS LESSON.....!!!! AND I DON'T WANT TO TAKE A LESSON NEXT SESSION WHICH CONTAINS THINGS THAT I WILL NEVER USE AGAIN IN MY LIFE.....!
Oh, and don't worry about the Caps Lock, I use glasses :cool: