This is a Netscape specific page that is crashing the browser in
about a third of those tested. It works on the Mac version though. If
I comment out the area indicated below is does not crash, but
obviously doesn't do the job either.
Can you see anything that looks like it would make Netscape crash in
that section?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Log Your Colorful Choices</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="Javascript">
var startMonth = <%=DatePart("m", session("sdate"))%>
var startDay = <%=DatePart("d", session("sdate"))%>
var startYear = <%=DatePart("yyyy", session("sdate"))%>
</script>
<script language="Javascript" src="js/blenderNS.js"></script>
<script language="Javascript">
//////////////////////
// If i comment out this whole block it works starting here
//////////////////////
if (document.images) {
imgs = new Array(); //preload color group images
imgs[0] = new Image();
imgs[0].src = 'img_blender/spin0_ns.gif';
imgs[1] = new Image();
imgs[1].src = 'img_blender/spin_ns.gif';
imgs[2]= new Image();
imgs[2.]src = 'img_blender/blender_yellow.gif';
imgs[3] = new Image();
imgs[3].src = 'img_blender/blender_green.gif';
imgs[4] = new Image();
imgs[4].src = 'img_blender/blender_blue.gif';
imgs[5] = new Image();
imgs[5].src = 'img_blender/blender_orange.gif';
imgs[6] = new Image();
imgs[6].src = 'img_blender/blender_red.gif';
imgs[7] = new Image();
imgs[7].src = 'img_blender/spin0_ns.gif';
}
function showImg(color) {
var ev = eval("document.f." + color);
var val = parseInt(ev.value);
tr = val + 1;
ev.value = tr;
tX = (parseInt(document.f.red.value) +
parseInt(document.f.yellow.value) + parseInt(document.f.orange.value)
+ parseInt(document.f.green.value) + parseInt(document.f.blue.value));
if (tX <= 10) {
document['cc' + tX]. document.images['dimg' + tX
].src='img_blender/blender_' + color + '.gif';
document.f.txtTTotal.value = tX;
//alert("You added 1 " + color + " selection\nfor a total of " + tX +
" selections.");
}
else {
alert("You may enter up to 10 selections per day.\nYou now
have " + tX + " selections.");
}
}
///////////////////
//End here
///////////////////
</script>
<script language="Javascript" src="js/validateNS.js"></script>
<script language="Javascript" src="js/ccfuncs.js"></script>
<link rel=StyleSheet href="css/cc.css" type="text/css" media=screen>
<style>
BODY {color: #000; background : #fff
url(img_blender/blender_popup.gif) no-repeat; margin: 0; padding: 0;}
#cc1 {position:absolute; left:217px; top:28px; z-index: 1}
#cc2 {position:absolute; left:284px; top:45px; z-index: 2}
#cc3 {position:absolute; left:307px; top:92px; z-index: 3}
#cc4 {position:absolute; left:309px; top:147px; z-index: 4}
#cc5 {position:absolute; left:284px; top:200px; z-index: 5}
#cc6 {position:absolute; left:217px; top:222px; z-index: 6}
#cc7 {position:absolute; left:156px; top:179px; z-index: 7}
#cc8 {position:absolute; left:149px; top:119px; z-index: 8}
#cc9 {position:absolute; left:162px; top:59px; z-index: 9}
#cc10 {position:absolute; left:227px; top:162px; z-index: 10}
</style>
</head>
<body>
<!-- Div containing ASP error messages -->
<div id="errors" style="position:absolute; left:10px; top:10px;
width:165px; height:83px; z-index:11; visibility: visible">
<table width="165" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<%
dim varState
varState=request.querystring("state")
varqdate=request.querystring("date")
varqtotal=request.querystring("total")
varqremaining=10-varqtotal
Select Case varState
Case 1
response.write "<br><font color='red'><b>You already have
entered "&varqtotal&" colorful choices for "&varqdate&". You can only
enter up to "&varqremaining&" more choices for
"&varqdate&".</b></font>"
End Select
%>
</td>
</tr>
</table>
</div>
<table cellspacing="0" cellpadding="0" boeder="0">
<tr>
<td>
<form name="f" action="process_blender.asp" method="post">
<img src="img_blender/spacer.gif" width="155" height="410">
<input id="inpt" type="text" name="txtMonth" maxlength="2" size="2">
<input id="inpt" type="text" name="txtDay" size="2"
maxlength="2">
<input id="inpt" type="text" name="txtYear"
maxlength="4" size="4" onFocus="yearBlur()"
value="<%=DatePart("yyyy", Date())%>">
<select id="inpt" name="sltCourse">
<option value=" ">pick one</option>
<option value="breakfast">breakfast</option>
<option value="lunch">lunch</option>
<option value="dinner">dinner</option>
<option value="snack">snack</option>
</select><br>
<img src="img_blender/spacer.gif" width="190" height="1">
<input id="inpt" type="text" name="txtTTotal"
size="2" maxlength="2" onFocus="blur()">
<img src="img_blender/spacer.gif" width="70" height="1">
<input id="inpt" type="text" name="txtRTotal"
size="2" maxlength="3" onFocus="blur()"
value="<%=session("gtotal")%>">
<br>
<img src="img_blender/spacer.gif" width="200" height="1">
<input type="text" id="inpt" name="txtNotes"
size="13" value="type notes here" onFocus="clearfield()">
<input type="hidden" name="red" value="0">
<input type="hidden" name="orange" value="0">
<input type="hidden" name="yellow" value="0">
<input type="hidden" name="green" value="0">
<input type="hidden" name="blue" value="0">
</form>
</td>
</tr>
</table>
<!-- Close Window Button -->
<div id="close2" style="position:absolute; left:205px; top:510px;
height:19px; z-index:23">
<a href="javascript:;" onClick="goTo()"> <img
src="img_blender/close_win.gif" width="134" height="35"
border="0"></a>
</div>
<!-- Control buttons on blender face -->
<div style="position:absolute; left:173px; top:356px">
<a href="javascript:;" onClick="showImg('red')">
<img src="img_blender/button_red.gif" border="0" width="15"
height="15" name="redBut"></a></div>
<div style="position:absolute; left:207px; top:356px">
<a href="javascript:;" onClick="showImg('orange')">
<img src="img_blender/button_orange.gif" border="0" width="15"
height="15" name="orgBut"></a></div>
<div style="position:absolute; left:243px; top:356px">
<a href="javascript:;" onClick="showImg('yellow')">
<img src="img_blender/button_yellow.gif" border="0" width="15"
height="15" name="yelBut"></a></div>
<div style="position:absolute; left:278px; top:356px">
<a href="javascript:;" onClick="showImg('green')">
<img src="img_blender/button_green.gif" border="0" width="15"
height="15" name="greBut"></a></div>
<div style="position:absolute; left:311px; top:356px">
<a href="javascript:;" onClick="showImg('blue')">
<img src="img_blender/button_blue.gif" border="0" width="15"
height="15" name="bluBut"></a></div>
<div style="position:absolute; left:346px; top:356px">
<a href="javascript:;" onClick="clearAll()">
<img src="img_blender/button_clear.gif" border="0" width="15"
height="15"></a></div>
<!-- Color button labels on blender face -->
<div style="position:absolute; left:165px; top:376px">
<img src="img_blender/r.gif" width="30" height="17"></div>
<div style="position:absolute; left:199px; top:376px">
<img src="img_blender/o.gif" width="30" height="17"></div>
<div style="position:absolute; left:238px; top:376px">
<img src="img_blender/y_w.gif" width="30" height="17"></div>
<div style="position:absolute; left:271px; top:375px">
<img src="img_blender/g.gif" width="30" height="17"></div>
<div style="position:absolute; left:304px; top:376px">
<img src="img_blender/b_v.gif" width="30" height="17"></div>
<div style="position:absolute; left:339px; top:376px">
<img src="img_blender/c_a.gif" width="30" height="17"></div>
<!--
///////////////////////////////////////////////////////////////
//Begin hidden spinner div
///////////////////////////////////////////////////////////////
-->
<div id="anispin" style="position:absolute; left:142px; top:25px;
width:253px; height:258px; z-index:21; visibility: hidden">
<img src="img_blender/spin0_ns.gif" width="255" height="258" name="t"></div>
<!--
///////////////////////////////////////////////////////////////
//DIVs containing fruit images
///////////////////////////////////////////////////////////////
-->
<div id="cc1">
<img name="dimg1" src="img_blender/blender_trans.gif" border="0"
width="85" height="65">
</div>
<div id="cc2">
<img name="dimg2" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc3">
<img name="dimg3" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc4">
<img name="dimg4" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc5">
<img name="dimg5" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc6">
<img name="dimg6" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc7">
<img name="dimg7" src="img_blender/blender_trans.gif" border="0"
width="85" height="65">
</div>
<div id="cc8">
<img name="dimg8" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc9">
<img name="dimg9" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<div id="cc10">
<img name="dimg10" src="img_blender/blender_trans.gif" border="0"
width="85" height="65" >
</div>
<!--
//////////////////////////////////////////////////////////////////
//Blender face form labels
//////////////////////////////////////////////////////////////////
-->
<div style="position: absolute; left: 143px; top: 405px">
<img src="img_blender/date.gif" width="28" height="8">
</div>
<div style="position: absolute; left: 153px; top: 430px">
<img src="img_blender/stotal.gif" width="51" height="15">
</div>
<div style="position: absolute; left: 238px; top: 430px">
<img src="img_blender/ptotal.gif" width="72" height="11">
</div>
<div style="position: absolute; left: 363px; top: 440px">
<a href="javascript:;" onClick="dateCheck();">
<img src="img_blender/button_go.gif" width="32" height="32" border="0"></a>
</div>
|
</body>
</html>