Do I have a javascript conflict or something else?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
suzie
Forum Newbie
Posts: 8
Joined: Sun Jan 30, 2005 11:34 am
Location: ohio

Do I have a javascript conflict or something else?

Post by suzie »

The banner from my free host is coming in before my header and causes problems with the rest of the page.

I need some guidance as to what the problem is, so I can attemp to fix it. I'm guessing its the javascript.

Heres a shortened version of the source code:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><script src="http://100webads.com/banners/tooltip.js"></script>

(Their banner table is here)

<script language="JavaScript">
<!--
// Width = 779;
// Get browser ...
function checkBrowser()&#123;
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
&#125;
var bw = new checkBrowser();
// Get page size ...
var PageWidth = (bw.ns4 || bw.ns5) ? innerWidth : document.body.offsetWidth - 20;
var PageHeight = (bw.ns4 || bw.ns5) ? innerHeight : document.body.offsetHeight - 20;
// Get our layer ...
var my_div = document.getElementById('divtxl');
// Fix stuff ...
if (parent && (PageWidth < 300 || PageHeight < 200)) &#123;
	my_div.style.display = "none";
&#125;
else &#123;
	my_div.style.left = (PageWidth - 781) / 2;
	document.write('<div align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td height="22" style="font: Tahoma; font-size: 11px; color: #D4D4D4;">&nbsp;</td></tr></table></table></div>\n');
&#125;
-->
</script>

  <head>
    <title>Day - Wheres The Auction Calendar</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta content="en-us" http-equiv=language>
    <meta content="Where's The Auction" http-equiv=author>

    <meta content="Where's The Auction" http-equiv=publisher>
    <link href="stylesheet.php" rel="stylesheet" type="text/css">
		<script language="JavaScript" type="text/javascript"><!--
		function isIE4()	
&#123; return( navigator.appName.indexOf("Microsoft") != -1 && (navigator.appVersion.charAt(0)=='4') ); &#125;
		
		function new_window(freshurl) &#123;
			SmallWin = window.open(freshurl, 'Calendar','scrollbars=yes,resizable=yes,toolbar=no,height=300,width=400');
			if (!isIE4())	&#123;
				if (window.focus) &#123; SmallWin.focus(); &#125;
			&#125;
			if (SmallWin.opener == null) SmallWin.opener = window;
			SmallWin.opener.name = "Main";
		&#125;
		//-->
		</script>
  </head>
You can view all of the source code here:
http://www.wherestheauction.com/index.php?calendar=oh

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the code here is quite dissimilar to that of the page right now. Currently, the page has the banner and these called scripts appearing inside the body tag.

What exactly are you wanting to do?
suzie
Forum Newbie
Posts: 8
Joined: Sun Jan 30, 2005 11:34 am
Location: ohio

Post by suzie »

I snipped their banner here to try to save space, that's why it's different.

I was hoping to find a way to force their banner below the head. The page isn't being parsed correctly and throws things out of wak (everything is much larger, looking at it online, than localhost and I also cannot perform some actions online, thought I'm not sure if that's related or not.)

Also, it's impossible to validate without the header being first.
Post Reply