It took some doing to work out, but I added a new feature to my random quote generator.
Clicking on the "new quote" button will refresh the random quote. It's a lot faster than having to refresh the entire page.
It actually took almost two hours to work out, to ultimately add less than 5 lines of code.
Now I just need to add more quotes.
Later,
Thursday, December 27, 2007
I'm so damn clever
John went insane today at 8:23 PM
Subscribe to:
Post Comments (Atom)
6 people have spouted off:
Oh, cool. I was wondering if that was possible. At some point, I may spend a similar two hours! ^/^
document.getElementById("qt").innerHTML=quote
you should put the button above the quote 'cause as different length quotes are displayed, the button moves. So for rapid clicking, you have to keep moving the mouse to follow the button - it's annoying and really slows down the click speed.
My vote's with Phil on this one.
Spout off: