And now on to my problem...
On my page-in-progress (not on the web yet...as soon as I get my reply back from the hosting service it will be up), I want to have an image and the text beneath it change when you move the mouse over certain links. I figured out the mouseover fine by examining existing scripts: The onMouseover command passes several attributes back to the script, which then chooses the appropriate image based on the attributes given to it, and then changes the image with a "document" function. I still don't know the exact syntax of the document functions...like document.wite and all that other stuff.
This is giving me a hard time right now. I got document.write to write what I want it to based on which link you move the mouse over...but it does this by wiping the entire page clean and writing ONLY that string to the screen. How do I control where the text will appear?
Also, on the TI I got used to using matrices to store large amounts of repetetive, related data. I'm looking at using arrays but they are not the same; they are more like ordered lists, it seems. I would like to have an array to store all the values for the image and text changes associate with a specific set of links..for example...
var movr= new Array(8);
movr="This is picture #1";
movr="This is picture #2";
movr="This is picture #3";
movr="This is picture #4";
Then I figure that the script which changes the image and text would just have to use the attributes given it by the onMouseover and onMouseout commnds:
Then, the script itself would use, for example, movr as the new image, and movr as the new text.
However I don't think this will work because preloading the images seems to want a name and a source for each image...so I'm confused again...I guess knowing the syntax would help me but I hope someone here can as well...thanks...
heres a quick example of changing text with a link:
<A HREF="java script:void(0)"
onMOUSEOUT="document.getElementById('mytext').innerHTML='back to normal'">link</A>
<P><SPAN ID="mytext">this is my text</SPAN>