This week, we are learning the basics of JavaScript. I wasn't sure if I would have time to include JavaScript in my project, but it seems quite straightforward, so I'm thinking to use it for for my image gallery.
Here are the links for this week's practical exercise:
Click here to see the Simple Blog
As you click on the thumbnail, the image changes below.
I think this script will be useful for the image gallery on my project website, and will have a play during the week (maybe using some of my images).
Click here to see the Challenge Exercise
Using JavaScript to compare 2 dates, and then using the alert() function to display the result. But don't get too excited, I didn't let on my birth date... so it's calculating how many days that I've been married - I wonder if my husband is counting :-)
References:
W3C Schools, JavaScript Date Object, http://www.w3schools.com/jS/js_obj_date.asp [viewed 15 September 2009]
W3C Schools, JavaScript Popup Boxes, http://www.w3schools.com/JS/js_popup.asp, [viewed 15 September 2009]
No comments:
Post a Comment