Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


border shows on firefox

Posted on 2007-10-18
Medium Priority
Last Modified: 2013-11-19
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:


<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&n=af8794bc' border='0' alt=''></a></noscript>

<style type="text/css">

body {
      background-color: #000000;




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

Question by:Charlesfx9
LVL 28

Accepted Solution

TName earned 2000 total points
ID: 20102163
I can't see an iframe element. You should set the border to 0  in the iframe element itself, e.g.

 <iframe src="ifr.html"  frameborder="0" style="border-width:0;">
 ( frameborder="0" should work for FF and IE)

Author Comment

ID: 20102173
Thank you TName..you're right...I was coding it wrong...I set the frameborder to 0 and it worked.

Thank you for the support


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question