Chapter 12 - Making an Interactive Page
Making an Interactive Site
In this chapter, we will learn how to make your site more interactive. This may mean adding mouse roll-overs, or having members enter their name at a prompt so when the page loads, it says "Welcome Theirname". Use these effects sparingly though, because they could increase load time. I will first start with a roll-over.
To make image roll-overs we will use JavaScript. An image roll-over is a script that says: when a mouse goes over an image, that image will be replaced with another image. We can also set it to return to the original image when the mouse leaves the image. To do this, you need to create two images - the original one, and the depressed one. I will name mine home.gif, and home_roll.gif. To make the roll-over look realistic, we need to preload the button so it will load faster. Type this within the head tags.
|
Now we need to place the link on the page. Enter this inside the body tags.
|
You can do this for any number of images, but make sure the name of the image is different from the name of the preloaded images. For a more indepth tutorial on image roll-overs, go here. Now that we have made out page more interactive, lets go over the commandments of web design.
< Previous Page | Index |
Current Comments
2 comments so far (post your own)I've been searching for a template tutorials in many places, I found some but they all use Photoshop, this one uses PSP which is cool, Thankyou for this great tutorial, another useful information about templates.. :)
Posted by Kikki (-)on Friday, 01.28.05 @ 07:05am | #346
i am worried about my result.
kindly anounced the result of M.Sc Part-II Annual Examination 2006
Posted by Muhammad Irfan (www.pu.edu.pk)on Thursday, 04.12.07 @ 10:51pm | #2840
Rate this Tutorial
Current Rating: