Greeting Card Ideas
Project Goals
- There should be pictures and text that fit with a common theme.
For example, if your greeting card is about New Years,
then you would have text and pictures about New Years.
- The should be a variety of ANIMATED text and/or pictures.
- You should use a variety of Javascript techniqes, like:
make
function
button
img
Slide
setTimeout
Slideshow
Audio (music)
.style.visibility, .style.left, .style.width, etc
- at least 10 programming techniques
- at least some objects (Buttons or IMGs) should be clickable
- some animation should happen in place
- some animation should involve changing locations
- the greeting card page should be INTERESTING and ENTERTAINING and
ATTRACTIVE
============================================
Day 1 - Moving Body Parts
Example Page: http://www.123greetings.com/birthday/birthday_wishes/birthday_kitties.html
The cats mouths are moving thanks to a very simple animation technique.
1 - Using a graphics program, cut out the bottom of the mouth (chin and
jaw).
2 - Save the chin/jaw picture as a separate picture.
3 - Place the original picture in the web page.
4 - Place the chin/jaw picture on top of the big picture.
5 - Using setTimeout, move the chin/jaw down about 20 pixels,
then set another timeout that moves it back up.
You already know how to use Slide and setTimeout to move things around.
You can start planning your Greeting Card, using the ideas you already
know
and maybe some of the new ideas listed above.
make("button;id=startfireworks;left:380px;top:20px;innerHTML=Start
Fireworks"); make("button;id=stopfireworks;left:480px;top:20px;innerHTML=Stop Fireworks"); make("img;id=fireworks;left:550px;top:20px;"); startfireworks.onclick = function() { fireworks.src = "fireworks.gif"; } stopfireworks.onclick = function() { fireworks.src = ""; } |