A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Embedding a Page into a DIV float?

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    Embedding a Page into a DIV float?

    code as follows:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>My Mainframe Trial</title>
    <!-- add everything between the '//==  ===//' within the head tags of your document -->
    <!-- //=============================// -->
    
    <script language="javascript">
    /* 
    ******************************************
    **   DHTML No-Block PopUp Window Script **
    **   (c)2005 Spider WebMaster Tools.com **
    **  http://www.SpiderWebMasterTools.com **
    ******************************************
    				
    The following variables an be assigned your particuliar values. Keep all values within single quotes ('). Do not use 'auto' or percentages for pop up window width or height if the variable centerPopUpWindow is set to yes.
    
    */
    
    
    var popWindowWidth = '800'; // pop up window width (in pixels) .
    
    var popWindowHeight = '600'; // pop up window height (in pixels).
    
    var centerPopUpWindow = 'true'; // do you want the pop up window to be automatically centered in browser window? yes or no. NOTE: Height is somewhat higher than center due to toolbars and browser top height.
    var popWindowBackgroundColor = 'FFFFF0'; // pop up window background color (named or rgb).
    
    var popWindowPadding = '8'; // padding or margin between contents of pop up window and edges of pop up window in pixels.
    
    var popWindowPositionTop = '20'; // where top edge of popup window will be displayed (ignored if centerPopUpWindow = true - see above).
    
    var popWindowPositionLeft = '100'; // where left edge of popup window will be displayed (ignored if centerPopUpWindow = true - see above).
    
    var popWindowBorderStyle = 'solid'; // type of border for popup (solid,double,grooved,ridged,inset,outset).
    
    var popWindowBorderWidth = '1'; // border thickness of popup window (must be at least 3 for double style).
    
    var popWindowBorderColor = 'black'; // color of border (named or rgb).
    
    var popWinFontFamily = 'arial,verdana,sans-serif'; //font-family of text within pop up window. NOTE: Leave empty ('') if defined elsewhere.
    
    var popWinFontSize = '11px'; // size of font for text in pop up window. Again, leave empty ('') if defined elsewhere.
    
    var popWindowDelay = '500'; // microseconds before pop up is displayed (1000 = 1 second).
    
    var popWindowShadowColor = '#666666'; //drop shadow color, named or rgb - shows in IE5+ only. 'none'=no shadow.
    
    </script>
    <!-- DO NOT CHANGE ANYTHING BELOW HERE! -->
    <script language="javascript">
    	var ie=document.all
    	var ns6=document.getElementById && !document.all
    function showPopUp(){
        document.getElementById('pWinConfg').style.visibility='visible';
    }
    function hidePopUp(){
        document.getElementById('pWinConfg').style.visibility='hidden';
    }   
    function startPopUp(){
        timerID=setTimeout('showPopUp()',popWindowDelay);
    } 
    /*
    	heres where we set the popup window class properties..
    */
    var pWinConfg = "<style>.pWinConfg{\n";
    	if(popWinFontFamily !== ''){
    		pWinConfg += "font-family:"+popWinFontFamily+";\n";
    	}
    	if(popWinFontSize !== ''){
    		pWinConfg += "font-size:"+popWinFontSize+";\n";
    	}
    pWinConfg += "position:absolute;\n";
    pWinConfg += "width:"+popWindowWidth+";\n";
    pWinConfg += "height:"+popWindowHeight+";\n";
    pWinConfg += "background-color:"+popWindowBackgroundColor+";\n";
    		if(centerPopUpWindow.toLowerCase() == 'yes'){
    			var popTop = (screen.height/2.667) - (popWindowHeight/2);
    			var popLeft = (screen.width/2) - (popWindowWidth/2);
    			pWinConfg += "top:"+popTop+";\n";
    			pWinConfg += "left:"+popLeft+";\n";
    		}else{
    			pWinConfg += "top:"+popWindowPositionTop+";\n";
    			pWinConfg += "left:"+popWindowPositionLeft+";\n";
    		}
    pWinConfg += "border-style:"+popWindowBorderStyle+";\n";
    pWinConfg += "border-width:"+popWindowBorderWidth+";\n";
    pWinConfg += "border-color:"+popWindowBorderColor+";\n";
    pWinConfg += "padding:"+popWindowPadding+";\n";
    pWinConfg += "visibility:hidden;\n";
    if(popWindowShadowColor != 'none'){
    pWinConfg += "@filter: progid:DXImageTransform.Microsoft.Shadow(color="+popWindowShadowColor+",direction=135);\n";
    }
    pWinConfg += "}<\/style>\n";
    document.write(pWinConfg);
    </script>
    <!-- //=============================// -->
    </head>
    
    <body>
    <p>Example file.</p>
    <p>01101000100100010001</p>
    <p>Next stage note:</p>
    <p>To make the thing direct to main flash script function, where it is directed to elsewhere, elsewhere undercontrol by personnell. </p>
    <p>
      <!-- put your popup window text/contents here -->
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="550" height="350">
        <param name="movie" value="http://www.crazymonkeygames.com/swf/thing-thing-3.swf" />
        <param name="quality" value="high" />
        <embed src="http://www.crazymonkeygames.com/swf/thing-thing-3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="350"></embed>
                </object>  <!-- make sure to include a close button  like this or 
    	           a call to hidePopUp(); to close popup window!    -->
      
      <input type="button" value="close" onclick="hidePopUp();">
      <br />
      <br />
    </p>
    </body>
    </html>
    insted ov dat, can i embed like .. yahoo.com into the thing?
    thx
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2

  3. #3
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    HUH?
    Never hearda iFrame or anything before...
    Any helps ppl?
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  4. #4
    Employed
    Join Date
    Jun 2006
    Location
    Perth, Western Australia
    Posts
    2
    Code:
    <iframe scrolling="auto" height="100" width="100" src="*"></iframe>
    Whack that in your div, dont forget to change the settin's.

  5. #5
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    Righto, that works fine thanks!
    Although it didnt work as I anticapated. What I expect is that the iframe inside the DIV float could not make the server detect that the page is being loaded.
    forexample Im trying to create something like this: www.proxify.org
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center