outerhtml question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard

    outerhtml question

    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">lor em ipsum stuff.</p>
    <p id="lorem2">par agraph 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




  • Michael Winter

    #2
    Re: outerhtml question

    On Sat, 22 Jan 2005 10:02:01 -0600, Richard <Anonymous@127. 001> wrote:
    [color=blue]
    > In understanding how this works, would it not be possible then to
    > replace an item with another?[/color]

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

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

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

    [snip]

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    Working...