SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question border shows on firefox

    Hi, I'm trying not to show border on an iframe....I have some php code that is genereating random ads.....the border doesn't show on IE but on firefox it does....How could I get rid of this border? This is the code I have:



    <html><head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>ad</title>

    <script language='JavaScript' type='text/javascript' src='http://www.someads.com/phpads/adx.js'></script>
    <script language='JavaScript' type='text/javascript'>
    <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("http://www.someads.com/phpads/adjs.php?n=" + phpAds_random);
    document.write ("&amp;what=zone:543&amp;target=_blank");
    document.write ("&amp;exclude=" + document.phpAds_used);
    if (document.referrer)
    document.write ("&amp;referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
    //-->
    </script><noscript><a href='http://www.someads.com/phpads/adclick.php?n=af8794bc' target='_blank'><img src='http://www.someads.com/phpads/adview.php?what=zone:543&amp;n=af8794bc' border='0' alt=''></a></noscript>

    <style type="text/css">
    <!--


    body {
    overflow:hidden;
    background-color: #000000;
    border:none;

    }

    -->


    </style>


    </head>

    <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" >

    </body>

    </html>

  2. #2
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could we see the code that links to this page? The one that contains the Iframe?

    A link might also help!?

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2007
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Karinne,

    I was able to take out the border on both IE and Firefox...for future readers on this topic..I'm placing the code for guidance.

    Thank you again for responding.

    Code:

    <iframe name="ad2" src="http://www.sitename.com/iframe/ad_right.html" style="float:right; margin: 0 0 0;width:160px; height:600px; border:0;"> </iframe>

    Regards,


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
  •