Click to See Complete Forum and Search --> : HELP-Create Swap Phrase Code


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

David Harrison
09-17-2003, 01:42 PM
I'm not sure why you're going such a long way round when you can just do this:

David Harrison
09-23-2003, 05:56 PM
So was that any good, does it need modifying, or would you prefer to achieve the same effect a different way? It would be nice to have some feedback.