-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: manishakiran
Message 1 in Discussion

Hi All,   Below is the code for displaying two frames side by side. The 
requirement is on clicking a link one of the frames should be hidden and the 
other frame should use its own space along with the hidden frame's space and be 
displayed in the total area as one single frame.    The code is able to hide 
frames but is not able to resize the other frame to span the full length.  
Please suggest changes to be made for enabling frame resizing dynamically.   
<html>
<head>
<title>Remove Iframe</title>
<style type="text/css">
/*<![CDATA[*/  /*//]]>*/
</style>
</head>
<form>
<input type=hidden id="w" value=0>
</form> <body>   <iframe id="theiframe1" rows="100%,*" cols="50%,*" src
="http://www.google.com/";></iframe>
<iframe id="theiframe2" src="http://www.msn.com/";></iframe> <script> function 
functionName(fileName1,fileName2) {
    parent.theiframe1.location.href = fileName1;
    parent.theiframe2.location.href = fileName2; } 
function resizeFrames() { alert(parent.document.getElementById("theiframe1")); 
parent.document.getElementById("theiframe1").style.display='none';
parent.document.getElementById("theiframe2").style.display='block'; 
parent.document.getElementById("theiframe1").setAttribute(("rows","0%,*"));
parent.document.getElementById("theiframe1").setAttribute(("cols","0%,*")); 
parent.document.getElementById("theiframe2").setAttribute(("rows","100%,*"));
parent.document.getElementById("theiframe2").setAttribute(("cols","50%,*")); 
} </script> <div><a 
href="javascript:functionname('file1.html','file2.html')">Go</a></div> <div><a 
href="#" onclick="resizeFrames()">Resize Frame</a></div> </body>
</html> 
Manisha

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to