Results 1 to 1 of 1

Thread: Help me please!!!!

  1. #1
    Join Date
    Oct 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help me please!!!!

    1) Script Title: Iframe SSI script

    2) Script URL (on DD):http://www.dynamicdrive.com/dynamici.../iframessi.htm

    3) Describe problem: heres the link to an example
    http://the-rk.tripod.com/try.htm
    well i want the i frame script to show its the red outline box and for it not to mess up the grey rectangle the grey rectangle should look like it does on the bottom and on it is a picutre of what the iframe has on it

    well if you dont know how to view sorce this is the html
    HTML Code:
    <html>
    <head>
    <script type="text/javascript">
    
    /***********************************************
    * IFrame SSI script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
    * Visit DynamicDrive.com for hundreds of original DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    
    //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
    //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
    var iframeids=["myframe"]
    
    //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
    var iframehide="yes"
    
    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    
    function dyniframesize() {
    var dyniframe=new Array()
    for (i=0; i<iframeids.length; i++){
    if (document.getElementById){ //begin resizing iframe procedure
    dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
    if (dyniframe[i] && !window.opera){
    dyniframe[i].style.display="block"
    if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
    dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight; 
    else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //ie5+ syntax
    dyniframe[i].height = dyniframe[i].Document.body.scrollHeight;
    }
    }
    //reveal iframe for lower end browsers? (see var above):
    if ((document.all || document.getElementById) && iframehide=="no"){
    var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
    tempobj.style.display="block"
    }
    }
    }
    
    if (window.addEventListener)
    window.addEventListener("load", dyniframesize, false)
    else if (window.attachEvent)
    window.attachEvent("onload", dyniframesize)
    else
    window.onload=dyniframesize
    
    </script>
    </head>
    <body>
    <body bgcolor="white">
    <table width="710" border="0" cellpadding="0" cellspacing="0" align=center>
    	<tr> 
    		<td width="710" height="16" bgcolor=#7A8299 colspan=3>&nbsp;</td>
    	</tr>
    	<tr> 
    		<td height="38" width=10 valign="top" bgcolor=#7A8299>&nbsp;</td>
    		<td height="58" width=366 valign="top" bgcolor=#7A8299><img src="slide1.gif" width="332" height="58"></td>
    		<td height="48" width=374 valign="top" bgcolor=#7A8299><iframe id="myframe" src="externalpage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe></td>
    		<td height="38" width=368 valign="top" bgcolor=#7A8299>&nbsp;</td>
    </tr>
    	<tr> 
    		<td width="710" height="30" bgcolor=#7A8299 colspan=3>&nbsp;</td>
    	</tr>
    	<tr> 
    		<td width="710" height="5" colspan=3><font size=1>&nbsp;</font></td>
    	</tr>
    </table>
    
    <body bgcolor="#838DA7">
    <table width="710" border="0" cellpadding="0" cellspacing="0" align=center>
    	<tr> 
    		<td width="710" height="16" bgcolor=#7A8299 colspan=3>&nbsp;</td>
    	</tr>
    	<tr> 
    		<td height="38" width=10 valign="top" bgcolor=#7A8299>&nbsp;</td>
    		<td height="48" width=374 valign="top" bgcolor=#7A8299><img src="externalpage.gif" width="332" height="58"></td>
    		<td height="38" width=368 valign="top" bgcolor=#7A8299>&nbsp;</td>
    </tr>
    	<tr> 
    		<td width="710" height="30" bgcolor=#7A8299 colspan=3>&nbsp;</td>
    	</tr>
    	<tr> 
    		<td width="710" height="5" colspan=3><font size=1>&nbsp;</font></td>
    	</tr>
    </table>
    </body>
    </html>
    i you dont understand what i mean tell me and ill explain again
    Last edited by mickey131; 10-26-2006 at 10:07 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •