Results 1 to 1 of 1

Thread: Spacer Problem

  1. #1
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default Spacer Problem

    Hi, My site (blittz.net) has an annoying space after adding the banner to the top because i just wanted to plonk it on the top because i cba to recode it

    could anyone help me to get rid of the gap

    the code for the page is:

    HTML Code:
    <center>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <style type="text/css">
    #dropmenudiv{
    position:absolute;
    border:1px solid black;
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    }
    #dropmenudiv a{
    width: 100&#37;;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid black;
    padding: 1px 0;
    text-decoration: none;
    font-weight: bold;
    }
    #dropmenudiv a:hover{ /*hover background color*/
    background-color: yellow;
    }
    </style>
    <script type="text/javascript">
    /***********************************************
    * AnyLink Drop Down Menu- &#169; Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    //Contents for menu 1
    var menu1=new Array()
    menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
    menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>'
    menu1[2]='<a href="http://codingforums.com">Coding Forums</a>'
    menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>'
    //Contents for menu 2, and so on
    var menu2=new Array()
    menu2[0]='<a href="http://cnn.com">CNN</a>'
    menu2[1]='<a href="http://msnbc.com">MSNBC</a>'
    menu2[2]='<a href="http://news.bbc.co.uk">BBC News</a>'
      
    var menuwidth='165px' //default menu width
    var menubgcolor='lightyellow'  //menu bgcolor
    var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
    var hidemenu_onclick="yes" //hide menu when user clicks within menu?
    /////No further editting needed
    var ie4=document.all
    var ns6=document.getElementById&&!document.all
    if (ie4||ns6)
    document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
    function getposOffset(what, offsettype){
    var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
    var parentEl=what.offsetParent;
    while (parentEl!=null){
    totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
    parentEl=parentEl.offsetParent;
    }
    return totaloffset;
    }
    
    function showhide(obj, e, visible, hidden, menuwidth){
    if (ie4||ns6)
    dropmenuobj.style.left=dropmenuobj.style.top="-500px"
    if (menuwidth!=""){
    dropmenuobj.widthobj=dropmenuobj.style
    dropmenuobj.widthobj.width=menuwidth
    }
    if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
    obj.visibility=visible
    else if (e.type=="click")
    obj.visibility=hidden
    }
    function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
    }
    function clearbrowseredge(obj, whichedge){
    var edgeoffset=0
    if (whichedge=="rightedge"){
    var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
    dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
    if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
    edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
    }
    else{
    var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
    var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
    dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
    edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
    if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
    edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
    }
    }
    return edgeoffset
    }
    function populatemenu(what){
    if (ie4||ns6)
    dropmenuobj.innerHTML=what.join("")
    }
    
    function dropdownmenu(obj, e, menucontents, menuwidth){
    if (window.event) event.cancelBubble=true
    else if (e.stopPropagation) e.stopPropagation()
    clearhidemenu()
    dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
    populatemenu(menucontents)
    if (ie4||ns6){
    showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
    dropmenuobj.x=getposOffset(obj, "left")
    dropmenuobj.y=getposOffset(obj, "top")
    dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
    dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
    }
    return clickreturnvalue()
    }
    function clickreturnvalue(){
    if (ie4||ns6) return false
    else return true
    }
    function contains_ns6(a, b) {
    while (b.parentNode)
    if ((b = b.parentNode) == a)
    return true;
    return false;
    }
    function dynamichide(e){
    if (ie4&&!dropmenuobj.contains(e.toElement))
    delayhidemenu()
    else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
    delayhidemenu()
    }
    function hidemenu(e){
    if (typeof dropmenuobj!="undefined"){
    if (ie4||ns6)
    dropmenuobj.style.visibility="hidden"
    }
    }
    function delayhidemenu(){
    if (ie4||ns6)
    delayhide=setTimeout("hidemenu()",disappeardelay)
    }
    function clearhidemenu(){
    if (typeof delayhide!="undefined")
    clearTimeout(delayhide)
    }
    if (hidemenu_onclick=="yes")
    document.onclick=hidemenu
    </script>
    <title>index_blittz.png</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">td img {display: block;}</style>
    <!--Fireworks 8 Dreamweaver 8 target.  Created Sat Feb 24 21:46:25 GMT+0000 (GMT Standard Time) 2007-->
    </head>
    <body bgcolor="#000000">
    <table border="0" cellpadding="0" cellspacing="0" width="812">
    <!-- CSS LINKS -->
    <link href="css/style_site.css" rel="stylesheet" type="text/css" />
    <link href="css/style_global.css" rel="stylesheet" type="text/css" />
    <!-- /CSS LINKS -->
    <!-- fwtable fwsrc="Untitled" fwbase="index_blittz.png" fwstyle="Dreamweaver" fwdocid = "1247304765" fwnested="0" -->
      <tr>
       <td><img src="images/spacer.gif" width="42" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="64" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="38" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="2" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="102" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="105" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="104" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="104" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="104" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="99" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="6" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="42" height="0" border="0" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="0" border="0" alt="" /></td>
      </tr>
     
      <tr><img src="images/banner.png" border="0"><td rowspan="4"><img name="index_blittz_r1_c1" src="images/index_blittz_r1_c1.png" width="42" height="75" border="0" id="index_blittz_r1_c1" alt="" /></td>
       <td colspan="2"><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()"><img name="index_blittz_r1_c2" src="images/index_blittz_r1_c2.png" width="102" height="34" border="0" id="index_blittz_r1_c2" alt="" /></a></td>
       <td rowspan="2"><img name="index_blittz_r1_c4" src="images/index_blittz_r1_c4.png" width="2" height="56" border="0" id="index_blittz_r1_c4" alt="" /></td>
       <td><a href="default.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()"><img name="index_blittz_r1_c5" src="images/index_blittz_r1_c5.png" width="102" height="34" border="0" id="index_blittz_r1_c5" alt="" /></a></td>
       <td><img name="index_blittz_r1_c6" src="images/index_blittz_r1_c6.png" width="105" height="34" border="0" id="index_blittz_r1_c6" alt="" /></td>
       <td><img name="index_blittz_r1_c7" src="images/index_blittz_r1_c7.png" width="104" height="34" border="0" id="index_blittz_r1_c7" alt="" /></td>
       <td><img name="index_blittz_r1_c8" src="images/index_blittz_r1_c8.png" width="104" height="34" border="0" id="index_blittz_r1_c8" alt="" /></td>
       <td><img name="index_blittz_r1_c9" src="images/index_blittz_r1_c9.png" width="104" height="34" border="0" id="index_blittz_r1_c9" alt="" /></td>
       <td colspan="2"><img name="index_blittz_r1_c10" src="images/index_blittz_r1_c10.png" width="105" height="34" border="0" id="index_blittz_r1_c10" alt="" /></td>
       <td rowspan="4"><img name="index_blittz_r1_c12" src="images/index_blittz_r1_c12.png" width="42" height="75" border="0" id="index_blittz_r1_c12" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="34" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="2"><img name="index_blittz_r2_c2" src="images/index_blittz_r2_c2.png" width="102" height="22" border="0" id="index_blittz_r2_c2" alt="" /></td>
       <td colspan="7"><img name="index_blittz_r2_c5" src="images/index_blittz_r2_c5.png" width="624" height="22" border="0" id="index_blittz_r2_c5" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="22" border="0" alt="" /></td>
      </tr>
      <tr>
       <td rowspan="2"><img name="index_blittz_r3_c2" src="images/index_blittz_r3_c2.png" width="64" height="19" border="0" id="index_blittz_r3_c2" alt="" /></td>
       <td colspan="8" background="images/index_blittz_r3_c3.png"><marquee><font face="verdana" size="1" color="#ffffff">Welcome To <b>Blittz.net</b></font></marquee></td>
       <td rowspan="2"><img name="index_blittz_r3_c11" src="images/index_blittz_r3_c11.png" width="6" height="19" border="0" id="index_blittz_r3_c11" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="15" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="8"><img name="index_blittz_r4_c3" src="images/index_blittz_r4_c3.png" width="658" height="4" border="0" id="index_blittz_r4_c3" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="4" border="0" alt="" /></td>
      </tr>
      <tr>
       <td><img name="index_blittz_r5_c1" src="images/index_blittz_r5_c1.png" width="42" height="90" border="0" id="index_blittz_r5_c1" alt="" /></td>
       <td colspan="10"><script type="text/javascript"><!--
    google_ad_client = "pub-7310127402079812";
    google_ad_width = 728;
    google_ad_height = 90;
    google_ad_format = "728x90_as";
    google_ad_type = "image";
    google_ad_channel = "";
    google_color_border = "6699CC";
    google_color_bg = "003366";
    google_color_link = "FFFFFF";
    google_color_text = "AECCEB";
    google_color_url = "AECCEB";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></td>
       <td><img name="index_blittz_r5_c12" src="images/index_blittz_r5_c12.png" width="42" height="90" border="0" id="index_blittz_r5_c12" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="90" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="12"><img name="index_blittz_r6_c1" src="images/index_blittz_r6_c1.png" width="812" height="60" border="0" id="index_blittz_r6_c1" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="60" border="0" alt="" /></td>
      </tr>
      <tr>
       <td background="images/index_blittz_r7_c1.png"></td>
       <td colspan="10">
    <script type="text/javascript">
                //<![CDATA[
                window.onload = function() {
                    var f = document.getElementById("content");
                    function resize() {
                        var h = "";
                        var w = "";
                        if (f.contentDocument) {
                            h = f.contentDocument.documentElement.offsetHeight + 20 + "px";
                            // can't find anything for Opera and Firefox that works for the width. OffetWidth doesn't work right either.(f.contentDocument.documentElement,"").getPropertyValue("width");
                        } else if (f.contentWindow) {
                            h = f.contentWindow.document.body.scrollHeight + 5 + "px";
                        } else {
                            return;
                        }
                        f.setAttribute("height",h);
                        f.parentNode.setAttribute("height",h);
                    }
                    if (window.addEventListener) {
                        f.onload = resize;
                    } else if (f.attachEvent) {
                        f.attachEvent("onload", resize);
                    } else {
                        return;
                    }
                    resize();
                }
                //]]>
                        </script>
      <iframe height="353" id="content" width="100%" name="content" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0" align="middle" src="home.html"></iframe>
    
    </td>
       <td background="images/index_blittz_r7_c12.png"></td>
       <td><img src="images/spacer.gif" width="1" height="108" border="0" alt="" /></td>
      </tr>
      <tr>
       <td colspan="12"><img name="index_blittz_r8_c1" src="images/index_blittz_r8_c1.png" width="812" height="35" border="0" id="index_blittz_r8_c1" alt="" /></td>
       <td><img src="images/spacer.gif" width="1" height="35" border="0" alt="" /></td>
      </tr>
    </table>
    </body>
    </html>
    </center>
     

    +Rep To All Who Help

    Cheers

    -Ed

    Edited by L&#181;ke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 26-02-2007 at 10:11 PM.
    EDTALKING


Posting Permissions

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