caragl
09-15-2003, 09:09 PM
I would like to complete this script to:
Create a page that will swap from a list of 10 phrases stored in arrays. When the user clicks one of the French phrases, the
English translation should appear.
EWhen the mouse button moves up the French version returns.
I have constructed some of the code, but the instructions for the functions have me confused?
**If the browser is using the IE, change the inner HTML of the Phrase object to the value of English[Pnum].
**If the browser is using the W3C DOM, first test whether the Phrase object points to a paragraph element. (Use the object reference Phrase.nodeName and test whether this value equals "P") If the Phrase object does point to a paragraph, change the inner HTML of the Phrase object to the value of Enlish[Pnum].
I would appreciate any help with this code.
Thanks
Cat
Create a page that will swap from a list of 10 phrases stored in arrays. When the user clicks one of the French phrases, the
English translation should appear.
EWhen the mouse button moves up the French version returns.
I have constructed some of the code, but the instructions for the functions have me confused?
**If the browser is using the IE, change the inner HTML of the Phrase object to the value of English[Pnum].
**If the browser is using the W3C DOM, first test whether the Phrase object points to a paragraph element. (Use the object reference Phrase.nodeName and test whether this value equals "P") If the Phrase object does point to a paragraph, change the inner HTML of the Phrase object to the value of Enlish[Pnum].
I would appreciate any help with this code.
Thanks
Cat