Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with floatframe please!!

    hi im working on my website at www.ni-graphics.com
    if you click enter, the website will appear correctly on 1024x768 settings, if you change your resolution, the floatframe will move, and not appear aligned with the rest of the page, can someone PLEASE help me why this is happening.

    also any other tips for the website as well, thanks!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Try this
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Negative Ions :: Main</title>
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    <style type="text/css">
    body {
    margin:0;
    padding:0;
    background:#000;
    color:#FFF;
    }
    #floatframehold {
    width: 707px;
    height: 396px;
    background:#B4BAB8;
    color:#FFF;
    }
    #container {
    width:707px;
    margin:auto;
    /*hide from IE Mac\*/
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-353.5px;
    margin-top:-283px;
    /*end hide*/
    }
    #header {
    height:120px;
    }
    #nav {
    margin:0;
    padding:0;
    list-style:none;
    height:24px;
    }
    #nav li {
    line-height:0px;
    font-size:1px;
    float:left;
    }
    #bottombar {
    line-height:0px;
    font-size:1px;
    }
    </style>
    </head>
    
    <body onLoad="MM_preloadImages('http://www.ni-graphics.com/news_on.jpg','http://www.ni-graphics.com/about_on.jpg','http://www.ni-graphics.com/contact_on.jpg','http://www.ni-graphics.com/faq_on.jpg','projects_on.jpg','http://www.ni-graphics.com/forums_on.jpg','http://www.ni-graphics.com/affiliate_on.jpg')">
    <div id="container">
    	<div id="header"><img src="http://www.ni-graphics.com/banner_top.jpg" width="707" height="120" alt=""></div>
    	<ul id="nav">
    		<li><img src="http://www.ni-graphics.com/left.jpg" width="48" height="24" alt=""></li>
    		<li><a href="http://www.ni-graphics.com/News.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','http://www.ni-graphics.com/news_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/news_off.jpg" width="60" height="24" border="0" id="Image10" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/About.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','http://www.ni-graphics.com/about_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/about_off.jpg" width="96" height="24" border="0" id="Image11" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/Contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','http://www.ni-graphics.com/contact_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/contact_off.jpg" width="72" height="24" border="0" id="Image12" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/FAQ.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image13','','http://www.ni-graphics.com/faq_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/faq_off.jpg" width="144" height="24" border="0" id="Image13" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/Projects.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','http://www.ni-graphics.com/projects_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/projects_off.jpg" width="60" height="24" border="0" id="Image14" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/Community.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image15','','http://www.ni-graphics.com/forums_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/forums_off.jpg" width="96" height="24" border="0" id="Image15" alt=""></a></li>
    		<li><a href="http://www.ni-graphics.com/Affiliate.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','http://www.ni-graphics.com/affiliate_on.jpg',1)" target="floatframe"><img src="http://www.ni-graphics.com/affiliate_off.jpg" width="96" height="24" border="0" id="Image16" alt=""></a></li>
    		<li><img src="http://www.ni-graphics.com/right.jpg" width="35" height="24" alt=""></li>
    	</ul>
    	<div id="bottombar"><img src="http://www.ni-graphics.com/banner_bottom.jpg" width="707" height="10" alt="" /></div>
    	<div id="floatframehold">
    		<iframe src="http://www.ni-graphics.com/news.html" name="floatframe" width="707" height="396" frameborder="0"> </iframe>
    	</div>
    	<img src="http://www.ni-graphics.com/LayoutBottom.gif" width="707" height="16" alt="" />
    </div>
    </body>
    </html>

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ill try it, im not at home so i cant yet
    but thank you
    Last edited by Elgyn; 12-08-2005 at 03:17 PM.

  • #4
    New Coder
    Join Date
    Dec 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok it worked!
    thank you so mcuh!
    but one other problem
    now the margin above the main banner there is tons of empty space

  • #5
    New Coder
    Join Date
    Dec 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok nvm i got it, thanks so much man
    can you just preview it and tell me how it looks and what browswer you use and resolution, thanks again!


  •  

    Posting Permissions

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