outerhtml question

R

Richard

In understanding how this works, would it not be possible then to replace an
item with another?

For instance, I have the first paragraph of "Lorem Ipsum" shown in a
division.
At the bottom is a ling showing "next".
Click on the link, the next paragraph replaces te previous.

<p id="lorem1">lorem ipsum stuff.</p>
<p id="lorem2">paragraph 2 stuff.</p>

I attempted to use the "Textual tooltip" swapping routine at Dynamicdrive,
but the code killed the other script for the menu.

What I'm looking for is a simple swap method, like image swapping, without
the use of z-index.

Also, if outerhtml is a solution to my problem, then could I have all the
paragraphs needed on an external page so that the various paragraphs do not
load with the main page?

If you must have a reference see www.somestuff.batcave.net/menu1.html
 
M

Michael Winter

In understanding how this works, would it not be possible then to
replace an item with another?

In a limited subset of browsers, yes. Unlike innerHTML, outerHTML has poor
support outside of IE and Opera (7?).

[snip]
What I'm looking for is a simple swap method, like image swapping,
without the use of z-index.

Just hide and show the content using the CSS display property. There are
countless examples in the group archives.

[snip]

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top