Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Image rollovers w/o Border?

  1. #1
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image rollovers w/o Border?

    Hello all, I would much apprechiate the help... I dont know what the problem is, I cant figure out for the life of my why there are still borders on my rollover images. I am working in dreamweaver... This is my code...
    HTML Code:
    body {
    	background-color: #000;
    }
    a:link {
    	text-decoration: none;
    	border: hidden;
    	color: #000;
    }
    a:link,a:visited {
    border: hidden;
    padding: 1px;
    }
    
    A:hover, A:active {color: #fff}
    
    A:hover 
    a {
    	font-size: 0px;
    }
    a:visited {
    	color: #000; border:hidden
    }
    a:hover {
    	color: #000; border:hidden
    }
    body,td,th {
    	color: #000;
    }
    h1 {
    	font-size: 10px;
    	color: #000;
    	border:hidden
    }
    -->
    </style>
    <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>
    </head>
    
    <body bgcolor="#000000" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="MM_preloadImages('about1.jpg','images2.jpg','author2.jpg','press2.jpg','intro2.jpg')">
    <div align="center">
      <p><img src="mainidea.jpg" width="688" height="515" /></p>
      <blockquote>
        <h1><a href="beth.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','about1.jpg',1)"><img src="about2.jpg" name="Image2" width="158" height="48" border="0" id="Image2" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images2.jpg',1)"><img src="images1.jpg" name="Image3" width="123" height="48" border="0" id="Image3" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','press2.jpg',1)"><img src="press1.jpg" name="Image5" width="105" height="48" border="0" id="Image5" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','author2.jpg',1)"><img src="author1.jpg" name="Image4" width="239" height="48" border="0" id="Image4" /></a><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','intro2.jpg',1)"><img src="intro1.jpg" name="Image6" width="339" height="48" border="0px" id="Image6" /></a></h1>
      </blockquote>
    </div>
    Any help would be greatly appreciated. Thanks
    Last edited by Snookerman; 08-07-2009 at 03:37 PM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Where did you get this code from?

    Anyway adding this to the css should stop the problem you want.

    Code:
    a img {
    border:none;
    }
    a:hover img {
    border:none;
    }

  3. #3
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    arrr, still not working! I got the code from dreamweaver and some random CSS forums... this is so strange... it doesnt apply a border to regular image links... just buttons..

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    link?

  5. #5
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks so much for your help.

    Heres the link.

  6. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    What browser is the border showing in? I'm not seeing it in flock. Its the bottom 5 words in boxes right that the border is suppose to be showing on?

    This is what i see on hover (mouseover). No extra border.

  7. #7
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Im using firefox, but the borders show up around the text in safari as well...I dont have flock...

  8. #8
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    What browser is the border showing in? I'm not seeing it in flock. Its the bottom 5 words in boxes right that the border is suppose to be showing on?

    This is what i see on hover (mouseover). No extra border.
    On the image you attached there still is a border... I want the text images to be just black with no square around them

  9. #9
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    I see the same thing in all three browsers do you not want it to get brighter?


    from:http://thehumanpixel.com/about2.jpg
    to:http://thehumanpixel.com/about1.jpg

    this is what i see:
    http://www.screentoaster.com/watch/s...RFRcUlJd/i_see

  10. #10
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah, that is what I see as well. I dont want any boarder at all. I would like the links the blend into the black background without a box around them... is that possible?

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
  •