Jump to content


Photo

'null' is null or not an object


  • Please log in to reply
3 replies to this topic

#1 aebstract

aebstract

    Advanced Member

  • Members
  • PipPipPip
  • 1,099 posts

Posted 28 April 2008 - 03:03 PM

Getting the following error message:
_______________________________
Line: 253
Char: 17
'null' is null or not an object
Code: 0
_______________________________

This is on: www.berryequipment.net, you can view the error there. Everything had been working until recently and I will keep looking at the code and try and find a problem, but if anyone could help me find what is going wrong here. A few scripts throughout the site have quit working. One being an image scroller that is suppose to be in the gray space in the header. Another is a little bit that moves you on to the next form box (ex: while putting phone number in, skips to next box when 3 digits are in). Both completely quit, might be some other small scripts that quit.

The code:

<?php
session_start();
header("Cache-control: private");

if ($_SERVER[HTTPS]!="on")
{
$strURIName=getenv("REQUEST_URI");
header ("Location: https://$SERVER_NAME$strURIName");
exit;
}

include "/connect/todb.php";

if(isset($logout))
{
unset ($_SESSION);
session_destroy();
header("Location: index.php");
}

$content = '';

if (isset($_GET['page']) && file_exists($_GET['page'] . '.php')) {
$page = ($_GET['page']);
} else {
$page = "home";
}


$_SESSION['history'] = $_SERVER['REQUEST_URI'];


		include "gconnect.php";

		if (isset($_SESSION[id])){ include "connect.php"; }

include "$page.php";

?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Berry Plumbing & Equipment</title>
<link rel="stylesheet"
   type="text/css"
   media="print" href="/print.css" />
<link href="/stylesheet.css" rel="stylesheet" type="text/css" title="default" />
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
<SCRIPT>
function popUp(page,PWidth,PHeight,id) {
 eval("designerwiz"+id+"=window.open('"+page+"','designerwiz1','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=0,width="+PWidth+",height="+PHeight+"')")
eval;("wiz"+id+".window.moveTo((screen.width/2)-(PWidth/2),(screen.height/2)-(PHeight/2))")
}
</SCRIPT>
	<script type="text/javascript">
	   function showPic(whichpic) {
	   var placeholder = document.getElementById('placeholder');
	   if (placeholder) {
	   placeholder.src = whichpic.href;
	   var tempParent = placeholder.parentNode;
	   if (tempParent && tempParent.nodeType == 1 && tempParent.nodeName.toLowerCase() == 'a') {
	   var tempHref = whichpic.href;
	   tempHref = tempHref.substring(0, tempHref.length-4);
	   tempParent.href = tempHref + 'L' + '.jpg';
	   }
	   return false;
	   } else {
	   return true;
	   }
}


	</script>
<script type="text/javascript">
var addPrintLink = {
	init:function(sTargetEl,sLinkText) {
		if (!document.getElementById || !document.createTextNode) {return;} // Check for DOM support
		if (!document.getElementById(sTargetEl)) {return;} // Check that the target element actually exists
		if (!window.print) {return;} // Check that the browser supports window.print
		var oTarget = document.getElementById(sTargetEl);
		var oLink = document.createElement('a');
		oLink.id = 'print-link'; // Give the link an id to allow styling
		oLink.href = '#'; // Make the link focusable for keyboard users
		oLink.appendChild(document.createTextNode(sLinkText));
		oLink.onclick = function() {window.print(); return false;} // Return false prevents the browser from following the link and jumping to the top of the page after printing
		oTarget.appendChild(oLink);
	},

	addEvent:function(obj, type, fn) {
		if (obj.addEventListener)
			obj.addEventListener(type, fn, false);
		else if (obj.attachEvent) {
			obj["e"+type+fn] = fn;
			obj[type+fn] = function() {obj["e"+type+fn](window.event);}
			obj.attachEvent("on"+type, obj[type+fn]);
		}
	}
};
addPrintLink.addEvent(window, 'load', function(){addPrintLink.init('article','Print this page');});
</script>
<script type="text/javascript">
function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
</script>

</head>
<body onload="start()">



<div id="container">


	<div id="center">
		<div id="header"></div>
		<div id="topright">
		<?php
				if (isset($_SESSION[id])){

				echo "<div class=\"topr\"><a href=\"/cart/\"><img src=\"/images/cart.jpg\" border=\"0\" /></a> &nbsp;&nbsp;&nbsp; <a href=\"/logout/\">Logout</a></div>";

				}
		?>
		</div>
		<div id="user">

		<?php
		if (isset($_SESSION[id])){

		echo "<div class=\"topr\"><a href=\"/accounthome/\">$plantloc</a></div>";

		} else {

		echo "<div class=\"topr\"><a href=\"/login/\">Login</a></div>";

		}
		?>

		</div>
		<div id="bbar1"></div>

			<div id="products">
<script type="text/javascript">

//Specify the slider's width (in pixels)
var sliderwidth="804px"
//Specify the slider's height
var sliderheight="175px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor=""

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="/eqph/"><img src="/ptop/ph.jpg" border=0></a>'
leftrightslide[1]='<a href="/eqdp/"><img src="/ptop/dpump.jpg" border=0></a>'
leftrightslide[2]='<a href="/eqbs4/"><img src="/ptop/bs.jpg" border=0></a>'
leftrightslide[3]='<a href="/eqbfu/"><img src="/ptop/fu.jpg" border=0></a>'
leftrightslide[4]='<a href="/eqprs/"><img src="/ptop/prs.jpg" border=0></a>'
leftrightslide[5]='<a href="/eqws6/"><img src="/ptop/ws.jpg" border=0></a>'
leftrightslide[6]='<a href="/eqpu/"><img src="/ptop/pu.jpg" border=0></a>'
leftrightslide[7]='<a href="/eqfp4/"><img src="/ptop/fp10.jpg" border=0></a>'
leftrightslide[8]='<a href="/eqhs/"><img src="/ptop/hs.jpg" border=0></a>'
leftrightslide[9]='<a href="/eqbchs/"><img src="/ptop/bchs.jpg" border=0></a>'
leftrightslide[10]='<a href="/eq4016/"><img src="/ptop/gc.jpg" border=0></a>'
leftrightslide[11]='<a href="/eqss/"><img src="/ptop/ss.jpg" border=0></a>'
leftrightslide[13]='<a href="/eqgd/"><img src="/ptop/gd.jpg" border=0></a>'
leftrightslide[14]='<a href="/eqbw/"><img src="/ptop/bw.jpg" border=0></a>'
leftrightslide[15]='<a href="/eqcc/"><img src="/ptop/cc.jpg" border=0></a>'
leftrightslide[16]='<a href="/eqcd3/"><img src="/ptop/cd3.jpg" border=0></a>'
leftrightslide[17]='<a href="/eqfbcc/"><img src="/ptop/fbcc.jpg" border=0></a>'
leftrightslide[18]='<a href="/eqfc/"><img src="/ptop/fc.jpg" border=0></a>'
leftrightslide[19]='<a href="/eqge/"><img src="/ptop/ge.jpg" border=0></a>'
leftrightslide[20]='<a href="/eqgt/"><img src="/ptop/gt.jpg" border=0></a>'
leftrightslide[21]='<a href="/eqhp/"><img src="/ptop/hp.jpg" border=0></a>'
leftrightslide[22]='<a href="/eqipss/"><img src="/ptop/ipss.jpg" border=0></a>'
leftrightslide[23]='<a href="/eqocs/"><img src="/ptop/ocs.jpg" border=0></a>'
leftrightslide[24]='<a href="/eqosc/"><img src="/ptop/osc.jpg" border=0></a>'
leftrightslide[25]='<a href="/eqpit/"><img src="/ptop/pit.jpg" border=0></a>'
leftrightslide[26]='<a href="/eqrws/"><img src="/ptop/rws.jpg" border=0></a>'
leftrightslide[27]='<a href="/eqtd/"><img src="/ptop/td.jpg" border=0></a>'
leftrightslide[29]='<a href="/eqwm/"><img src="/ptop/wm.jpg" border=0></a>'

//Specify gap between each image (use HTML):
var imagegap="&nbsp;&nbsp;&nbsp;"

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
</script>
    <script language="javascript">

    createNotes=function(){

                showNote=function(){
                            // gets note1 element
                            var note1=document.getElementById('note1');
                            // shows note1 element
                            note1.style.visibility='visible';
                }

                hideNote=function(){
                            // gets note1 element
                            var note1=document.getElementById('note1');
                            // hides note1 element
                            note1.style.visibility='hidden';
                }
                var a1=document.getElementById('a1');
                // shows note1 element when mouse is over
                a1.onmouseover=showNote;
                // hides note1 element when mouse is out
                a1.onmouseout=hideNote;
    }
    // execute code once page is loaded
    window.onload=createNotes;
    </script>

			</div>


		<div id="bbar2"></div>
		<div id="navbar">

		<div id="multi-level">
		<ul class="menu">

			<li class="top p1"><a href="http://www.berryequipment.net" id="aboutus" class="top_link"><span>About Us</span></a></li>

			<li class="top p2"><a href="#" id="equipment" class="top_link"><span>Equipment</span><!--[if IE 7]><!--></a><!--<![endif]-->
				<!--[if lte IE 6]><table><tr><td><![endif]-->
				<ul class="sub">
									<li><a href="#" class="fly">Picking<!--[if IE 7]><!--></a><!--<![endif]-->
																							<!--[if lte IE 6]><table><tr><td><![endif]-->
																							<ul>

<li><a href="#" class="fly">Foot Pad Scrubber<!--[if IE 7]><!--></a><!--<![endif]-->
	<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul>
		<li><a href="/eqfps348/">B-FPS-LH/RH-3-48</a></li>
		</ul>
	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

														<li><a href="/eqcb/">Cuticle Brush</a></li>

<li><a href="#" class="fly">Foot Pickers<!--[if IE 7]><!--></a><!--<![endif]-->
	<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul>
		<li><a href="/eqfp3/">B-FP-3</a></li>
		<li><a href="/eqfp4/">B-FP-4</a></li>
		</ul>
	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
														<li><a href="/eqhp/">Hock Picker</a></li>
														<li><a href="/eqph/">Paw Harvester</a></li>
														<li><a href="/eqpu/">Paw Untanglers</a></li>
														<li><a href="/eqprs/">Paw Recovery System</a></li>
														<li><a href="/eqpit/">Paw Inspection Table</a></li>
														<li><a href="/eqbfu/">Backup Foot Unloader</a></li>
														<li><a href="/eqbc/">Bird Counter</a></li>
																							</ul>
																							<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href="#" class="fly">Evisceration<!--[if IE 7]><!--></a><!--<![endif]-->
																							<!--[if lte IE 6]><table><tr><td><![endif]-->
																							<ul>
														<li><a href="/eqbs4/">Bird Scrubber</a></li>
														<li><a href="/eqbw/">Bird Washer</a></li>
					                					<li><a href="/eqosc/">Oil Sac Cutter</a></li>
														<li><a href="/eqrws/">Rework & Wash Station</a></li>

<li><a href="#" class="fly">Water Screens<!--[if IE 7]><!--></a><!--<![endif]-->
	<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul>
		<li><a href="/eqws6/">B-WS-6-60</a></li>
		<li><a href="/eqws5/">B-WS-5-200</a></li>
		</ul>
	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

														<li><a href="/eqipss/">IP Salvage Station</a></li>
														<li><a href="/eqtg/">Turn Guard</a></li>
																							</ul>
																							<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href="#" class="fly">Giblet Handling<!--[if IE 7]><!--></a><!--<![endif]-->
																							<!--[if lte IE 6]><table><tr><td><![endif]-->
																							<ul>
					<li><a href="/eqdp/">Diaphragm Pump</a></li>

<li><a href="#" class="fly">Giblet Chillers<!--[if IE 7]><!--></a><!--<![endif]-->
	<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul>
		<li><a href="/eq3015/">B-GC-3015</a></li>
		<li><a href="/eq4016/">B-GC-4016</a></li>
		</ul>
	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

					<li><a href="/eqge/">Giblet Elevator</a></li>
					<li><a href="/eqgwc/">Giblet Water Changer</a></li>
					<li><a href="/eqgd/">Gizzard Defatter</a></li>
					<li><a href="/eqgt/">Gizzard Inspection Table</a></li>
																							</ul>
																							<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href="#" class="fly">Further Processing<!--[if IE 7]><!--></a><!--<![endif]-->
																																<!--[if lte IE 6]><table><tr><td><![endif]-->
																																<ul>
														<li><a href="/eqhs/">Halving Saw</a></li>
														<li><a href="/eqss/">Saddle Saw</a></li>
														<li><a href="/eqcs/">Cut-up Saw</a></li>
														<li><a href="/eqocs/">OSHA Cut-up Saw</a></li>
														<li><a href="/eqbchs/">Breast Cart. Harvest Sys.</a></li>

<li><a href="#" class="fly">Cone Deboning Line<!--[if IE 7]><!--></a><!--<![endif]-->
	<!--[if lte IE 6]><table><tr><td><![endif]-->
		<ul>
														<li><a href="/eqcd2/">B-CD-2</a></li>
														<li><a href="/eqcd3/">B-CD-3</a></li>
		</ul>
	<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
														<li><a href="/eqcc/">Carcass Crusher</a></li>
														<li><a href="/eqtd/">Tub Dumper</a></li>
														<li><a href="/eqwm/">Wing Machine</a></li>
														<li><a href="/eqcdl/">Front Half Deboning Line</a></li>
																																</ul>
																																<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href="#" class="fly">Conveyor & Mat. Handling<!--[if IE 7]><!--></a><!--<![endif]-->
																																<!--[if lte IE 6]><table><tr><td><![endif]-->
																																<ul>
														<li><a href="/eqfbcc/">Full Box Comp. Conveyor</a></li>
														<li><a href="/eqfc/">Conveyors</a></li>
														<li><a href="/eqtcs/">Traffic Cop Spur</a></li>
																																</ul>
																																<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href="#" class="fly">Miscellaneous<!--[if IE 7]><!--></a><!--<![endif]-->
																																<!--[if lte IE 6]><table><tr><td><![endif]-->
																																<ul>
					<li><a href="/eqhpu/">Hydraulic Power Unit</a></li>
					<li><a href="/eqsw/">Stands & Walkovers</a></li>
																																</ul>
																																<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
					<li><a href="/eqtr/">Turbo Rinser</a></li>


				</ul>
				<!--[if lte IE 6]></td></tr></table></a><![endif]-->
			</li>

			<li class="top p3"><a href="/featured_pro/" id="featured" class="top_link"><span>Featured Products</span></a></li>

			<li class="top p4"><a href="#" id="information" class="top_link"><span>Information</span><!--[if IE 7]><!--></a><!--<![endif]-->
				<!--[if lte IE 6]><table><tr><td><![endif]-->
				<ul class="sub">
					<li><a href="/drafting/">Drafting</a></li>
				</ul>
				<!--[if lte IE 6]></td></tr></table></a><![endif]-->
			</li>

			<li class="top p5"><a href="/accounthome/" id="myaccount" class="top_link"><span>My Account</span><!--[if IE 7]><!--></a><!--<![endif]-->
				<?php
				if (isset($_SESSION[id])){
				echo "<!--[if lte IE 6]><table><tr><td><![endif]-->
								<ul class=\"sub\">
									<li><a href=\"/cart/\">Shopping Cart</a></li>
									<li><a href=\"#\" class=\"fly\">Order Parts<!--[if IE 7]><!--></a><!--<![endif]-->
										<!--[if lte IE 6]><table><tr><td><![endif]-->
										<ul>
										<li><a href=\"/order/ph/\">Paw Harvester</a></li>
										$prsmenu
										<li><a href=\"/order/bfu/\">Back-up Foot Unloader</a></li>
										<li><a href=\"/order/rc/\">Reject Chute</a></li>
										<li><a href=\"/order/fp3/\">Foot Picker 3</a></li>
										</ul>
										<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href=\"/find/\">Parts Search</a></li>
									<li><a href=\"#\" class=\"fly\">Manuals<!--[if IE 7]><!--></a><!--<![endif]-->
										<!--[if lte IE 6]><table><tr><td><![endif]-->
										<ul>
										<li><a href=\"/safety/\">Safety Precautions</a></li>
										<li><a href=\"/tmph/\">Paw Harvester</a></li>
										<li><a href=\"/tmbfu/\">Back-up Foot Unloader</a></li>
										<li><a href=\"/tos/#warranty\">Berry Warranty</a></li>
										</ul>
										<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href=\"#\" class=\"fly\">Videos<!--[if IE 7]><!--></a><!--<![endif]-->
										<!--[if lte IE 6]><table><tr><td><![endif]-->
										<ul>
										<li><a href=\"/eqfps348/#video\">Foot Pad Scrubber</a></li>
										<li><a href=\"/eqbs4/#video\">Bird Scrubber</a></li>
										<li><a href=\"/eqbchs/#video\">Breast Cart. Harvest Sys.</a></li>
										</ul>
										<!--[if lte IE 6]></td></tr></table></a><![endif]-->
									</li>
									<li><a href=\"/history/\">Order History</a></li>
									<li><a href=\"/changepw/\">Change Password</a></li>
									<li><a href=\"/logout/\">Logout</a></li>
								</ul>
				<!--[if lte IE 6]></td></tr></table></a><![endif]-->";
				} else {
				echo "
			<!--[if lte IE 6]><table><tr><td><![endif]-->
							<ul class=\"sub\">
								<li><a href=\"/login/\">Login</a></li>
							</ul>
				<!--[if lte IE 6]></td></tr></table></a><![endif]-->";
				}
				?>
			</li>

			<li class="top p6"><a href="/contact/" id="contact" class="top_link"><span>Contact</span></a></li>

		</ul>

</div>

		</div>

		<div id="body">
			<div id="bodyspace">
<?php
echo "$content";
if (isset($error)){
echo "<div id=\"error\"><img src=\"/images/error.jpg\" />$error</div>";
}
if (!isset($content)){
echo "error";
}
?>
			</div>
		</div>

		<div id="footer">
		<!-- BEGIN DigiCert Site Seal Code --><div id="digicertsitesealcode" style="width: 65px; margin: 5px auto 0px auto;" align="center"><script language="javascript" type="text/javascript" src="https://www.digicert.com/custsupport/sealtable.php?order_id=00125859&amp;seal_type=c&amp;seal_size=small&amp;seal_color=blue&amp;new=1&amp;newsmall=1"></script><a href="http://www.digicert.com/welcome/customer-praise.htm">SSL Certificates</a><script language="javascript" type="text/javascript">coderz();</script></div><!-- END DigiCert Site Seal Code -->
		&copy; 2008 - Berry Plumbing & Equipment

		</div>
	</div>


</div>





<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3613339-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</body>
</html>

There is an area of the mind that could be called unsane, beyond sanity, and yet
not insane. Think of a circle with a fine split in it. At one end there's
insanity. You go around the circle to sanity, and on the other end of the
circle, close to insanity, but not insanity, is unsanity.


#2 aebstract

aebstract

    Advanced Member

  • Members
  • PipPipPip
  • 1,099 posts

Posted 28 April 2008 - 03:21 PM

Update to issue, Checked the problem in firefox and it says:

a1 has no properties
Line: 253

There is an area of the mind that could be called unsane, beyond sanity, and yet
not insane. Think of a circle with a fine split in it. At one end there's
insanity. You go around the circle to sanity, and on the other end of the
circle, close to insanity, but not insanity, is unsanity.


#3 rhodesa

rhodesa

    Advanced Member

  • Staff Alumni
  • 5,252 posts
  • LocationBoston, MA

Posted 28 April 2008 - 03:23 PM

You have the following code:
                var a1=document.getElementById('a1');
                // shows note1 element when mouse is over
                a1.onmouseover=showNote;
                // hides note1 element when mouse is out
                a1.onmouseout=hideNote;
But there are no elements on the page with and ID attribute of 'a1'
Aaron Rhodes
Lead Developer
Posted Image

#4 aebstract

aebstract

    Advanced Member

  • Members
  • PipPipPip
  • 1,099 posts

Posted 28 April 2008 - 03:27 PM

I found that bit after seeing the firefox error, and I removed the whole script:

    <script language="javascript">

    createNotes=function(){

                showNote=function(){
                            // gets note1 element
                            var note1=document.getElementById('note1');
                            // shows note1 element
                            note1.style.visibility='visible';
                }

                hideNote=function(){
                            // gets note1 element
                            var note1=document.getElementById('note1');
                            // hides note1 element
                            note1.style.visibility='hidden';
                }
                var a1=document.getElementById('a1');
                // shows note1 element when mouse is over
                a1.onmouseover=showNote;
                // hides note1 element when mouse is out
                a1.onmouseout=hideNote;
    }
    // execute code once page is loaded
    window.onload=createNotes;
    </script>

Which removed the one thing I was using it for, but I think I'll be better just starting over on that one than trying to "debug" this issue. Thanks for the response.

There is an area of the mind that could be called unsane, beyond sanity, and yet
not insane. Think of a circle with a fine split in it. At one end there's
insanity. You go around the circle to sanity, and on the other end of the
circle, close to insanity, but not insanity, is unsanity.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com