![]() |
square that changes color when clicked
Hi!!
I need a simple javascript/ajax code to make a simple square change color (about 5 different colors) every time you click without refreshing the page. I just have the css of the square. <style> #square{position:absolute; width:50px; height:50px; background-color:#000000;} </style> Appreciate any help:) |
Code:
<body> |
Thank you so much!!!!
works perfectly :) |
| All times are GMT +1. The time now is 01:24 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.