Javascript help...

The_Other_One

VIP Member
I'm a little confused with my latest javascript assignment... Basically we have to make a webpage where you are given buttons to click and they change the background or text colors accordingly. That much is done. Now I need to make something that displays what colors are being displayed...

When the page initially loads, I can get it to display whatever the background color is, but it won't change...

Code:
<script type="text/javascript">document.write("The current background
 color is "+document.bgColor)</script>

I'm fairly new to JS so I'm probably doing something rather stupid :rolleyes:
 
Did you get everything done?

BTW, I hate alerts. All you need on that page now is some marquee/blink, something that scrolls text on the bottom left status bar and some flashing gif in the background :P
 
Back
Top