Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Iframe issue


Message #1 by mjpr@f... on Wed, 9 Jan 2002 19:05:41
Hi,

Try this..


Container page:
<script language="javascript">
<!--
function mouseOver() {
  mypic.src='http://www.wrox.com/consumer/store/images/articles/747.gif';
}

function mouseOut() {
    mypic.src='http://p2p.wrox.com/wrox50.gif';
}
//-->
</script>

<table>
<tr>
     <td width="300"><img src="http://p2p.wrox.com/wrox50.gif" id
="mypic"></td>
     <td><iframe src="iframe.htm" width=100 height=100></iframe></td>
</tr>
</table>

Iframe:
<body onmouseover="parent.mouseOver()" onmouseout="parent.mouseOut()">
Here is some text

Cheers

Sten Hougaard
EDB Gruppen
Application developer/web-designer



                                                                                                                   
                    mjpr@f...                                                                                 
                    ada.pt               To:     "JavaScript HowTo" <javascript_howto@p...>                
                                         cc:                                                                       
                    01/09/2002           Subject:     [javascript_howto] Iframe issue                              
                    08:05 PM                                                                                       
                    Please respond                                                                                 
                    to "JavaScript                                                                                 
                    HowTo"                                                                                         
                                                                                                                   
                                                                                                                   




Hi everybody,

I've looked everywhere and can't find an example of an
onmouseover/onmouseout event for what I'm trying to do.
What I'm trying to do is :
I have an iframe inside the container page. How can I do an onmouseover on
over a link on the iframe and apear an image in a table cell on the
container page.


Please help.
Thanks
$subst('Email.Unsub').




  Return to Index