Frame help

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

    Frame help

    I have two frames. In the first frame I have a label and a button.
    When click on the button, an image show up in the frame 2. The lable
    just display a some text (banner type). What I'd like to do is write
    a script that when the image is fully loaded in frame 2, hide the
    label in frame 1. Can you someone show me how to do this? Thanks.
  • Thomas 'PointedEars' Lahn

    #2
    Re: Frame help

    powerranger wrote:[color=blue]
    > I have two frames. In the first frame I have a label and a button.
    > When click on the button, an image show up in the frame 2. The lable
    > just display a some text (banner type). What I'd like to do is write
    > a script that when the image is fully loaded in frame 2, hide the
    > label in frame 1. Can you someone show me how to do this? Thanks.[/color]

    In the document displayed in frame 2:

    <body
    onload="documen t.images[0].onload = parent.frames[0].hideLabel;"
    ...>

    where hideLabel() is a method in frame 1. To hide the "label", read
    on "Dynamic HTML".


    PointedEars

    Comment

    Working...