Chapter Three


In this chaper I learned alot of new things. First, I learned how to create a rolling banner. Then we learned the onmouseover function. We also learned how to create a selection list to display items and thier price and we learned how to calculate.I will cover the ones that I have the best handle on!

The Rolling Banner- It is a very useful tool and it is yet another thing that is unique to Java. I went to a web page once where they had a picture that would change every, say, 5 seconds. I thought it was very cool and I wanted to know how to do it. I was very excited when I finally saw that I would learn it! Yea! Anyways, the rolling banners. Well, there are six steps. First off, you have to define an array of images (new Array ("...","picture.whatever","picture.jpg") you get the drift. Secondly and third, you have to make a counter. Tell the computer what order to play them in and where to start and stop again...0 is the first image, 1 is second and so on. Fourth,test it! Fifth (almost there!), asign the counter to the image object. So, basically tell it what to do. (document.Banner.src= objectname[countername]). And lastly,call the function again using recursion (setTimeout() method). And then you have a rolling banner! How cool! I think I actually understood all this! (Not that I explained it well or anything) Next was the onmouseover function... this was a fun one too! I had way to much fun!

The OnMouseOver- To use this function place OMO (onmouseover) where you want to image or text to chage! Then define the function in the head, where the rest of them are! If you did not see the image change on this page, refresh it, but dont move your mouse (if you move it before it loads, it changes before you can see it.)Then, after it loads, you can move the mouse over it to see it change!! YAY! This chapter really helped me to understand things better, even things that I didnt understand from chapter one. I am starting to get a grasp of all this, and it is BEGINNING to make sense!! This chapter was fun too! I enjoyed it!





Home | Chapter One| Chapter Two | Chapter Four | Chapter Five