...

View Full Version : Trouble in Opera!



Crash1hd
06-12-2003, 07:30 PM
The Following code works fine in IE and Netscape but I get errors in Opera



<%@Language=VBScript%>
<!--#INCLUDE Virtual="/Include/Header.asp"-->
<html><head><title>New Page 1</title>
<%
'***************************** DIMENSION VARIABLES

' These variables are being dimmed now since they may be used many places.
' Some others, such as database queries, will be dimmed in the
' subroutine in which they are used.
' Connection variables

Dim submitnumber
Dim backcheck
Dim dcheck

Dim FSDoFMonth
Dim FSDoFDay
Dim FSDoFYear

'******************************* REQUEST VARIABLES

Select Case Request.ServerVariables("REQUEST_METHOD")
Case "POST"
submitnumber = Request.Form("submitnumber")
backcheck = Request.Form("backcheck")
dcheck = Request.Form("dcheck")

End Select

'********************** INITIALIZE OTHER VARIABLES

If submitnumber = 0 Then
backcheck = 0
End If
If backcheck = 1 Then
submitnumber = 0
Else
submitnumber = submitnumber + 1
End If
dcheck = dcheck + 1
'************************************ MAIN PROGRAM

Select Case Int(Request.QueryString("dbshow"))
Case 1
ConfirmObit()
Case Else
InputObit()
End Select

'******************************** End MAIN PROGRAM
%>
<%Sub InputObit() '''''''''''''''''''''''''''''''''''%>
<SCRIPT language="JavaScript">
//Unable to put this in JS file as it has ASP in it!
//function to set options to today
<%
FSDoFMonth = Request.Form("DoFMonthField")
FSDoFDay = Request.Form("DoFDayField")
FSDoFYear = Request.Form("DoFYearField")
%>

function SetToToday(Which)
{
<%If dcheck = 1 Then%>
DaysObject = eval("document.Form1." + Which + "Day");
MonthObject = eval("document.Form1." + Which + "Month");
YearObject = eval("document.Form1." + Which + "Year");

YearObject[1].selected = true;
MonthObject[NowMonth].selected = true;

ChangeOptionDays(Which);

DaysObject[NowDay-1].selected = true;
<%End If%>
}

function WriteDoFOptions(DaysAhead)
{
line = "";

for (i=0; i<DaysAhead; i++)
{
<%If dcheck = 1 Then FSDoFDay=0%>
<%If FSDoFDay="" Then FSDoFDay=0%>
if (i==<%=FSDoFDay%>-1) <%if FSDoFDay <> "" Then response.write("line += ""<OPTION Value=" & FSDoFDay & " SELECTED>"";")%>
else <%if FSDoFDay <> "" Then response.write("line += ""<OPTION>"";")%>
if (i==0 || i==1 || i==2 || i==3 || i==4 || i==5 || i==6 || i==7 || i==8) line += "0";
line += (NowDay - NowDay + 1) + i;
line += "</OPTION>";
}
return line;
}

function WriteDoFYearOptions(YearsAhead)
{
line = "";

for (i=0; i<YearsAhead; i++)
{
<%If dcheck = 1 Then FSDoFYear=0%>
<%If FSDoFYear="" Then FSDoFYear=0%>
if (i==(NowYear + 1) -<%=FSDoFYear%>) <%if FSDoFYear <> "" Then response.write("line += ""<OPTION Value=" & FSDoFYear & " SELECTED>"";")%>
else <%if FSDoFYear <> "" Then response.write("line += ""<OPTION>"";")%>
line += (NowYear + 1) - i;
line += "</OPTION>";
}
return line;
}
</SCRIPT>
</head>

<body onload = "SetToToday('FSDoF');">

<FORM name="Form1" action="Drop%20Down%20Calander.asp?dbshow=1" method="post">
<input type="hidden" name="submitnumber" value="<% = submitnumber %>" />
<input type="hidden" name="dcheck" value="<% = dcheck %>" />
<table cellspacing="2" cellpadding="5" border="0" align="center">
<tr>
<td align="right">
<font color="red">* Date of Funeral: </font>
</td>
<td>
<SELECT name="FSDoFMonth" onchange="ChangeOptionDays('FSDoF')">
<option value="01"<%If FSDoFMonth = "01" Then Response.Write("selected")%>>January</option>
<option value="02"<%If FSDoFMonth = "02" Then Response.Write("selected")%>>February</option>
<option value="03"<%If FSDoFMonth = "03" Then Response.Write("selected")%>>March</option>
<option value="04"<%If FSDoFMonth = "04" Then Response.Write("selected")%>>April</option>
<option value="05"<%If FSDoFMonth = "05" Then Response.Write("selected")%>>May</option>
<option value="06"<%If FSDoFMonth = "06" Then Response.Write("selected")%>>June</option>
<option value="07"<%If FSDoFMonth = "07" Then Response.Write("selected")%>>July</option>
<option value="08"<%If FSDoFMonth = "08" Then Response.Write("selected")%>>August</option>
<option value="09"<%If FSDoFMonth = "09" Then Response.Write("selected")%>>September</option>
<option value="10"<%If FSDoFMonth = "10" Then Response.Write("selected")%>>October</option>
<option value="11"<%If FSDoFMonth = "11" Then Response.Write("selected")%>>November</option>
<option value="12"<%If FSDoFMonth = "12" Then Response.Write("selected")%>>December</option>
</SELECT>
<SELECT name="FSDoFDay">
<SCRIPT language="JavaScript">
document.write(WriteDoFOptions(31));
</SCRIPT>
</SELECT>
<SELECT name="FSDoFYear" onchange="ChangeOptionDays('FSDoF')">
<SCRIPT language="JavaScript">
document.write(WriteDoFYearOptions(200));
</SCRIPT>
</SELECT>
</td>
</tr>
<tr>
<td>
<input type="Submit" value="Submit">
</td>
</tr>
</table>
</FORM>

</body>
<%End Sub '''''''''''''''''''''''''''''''''''''''''''%>

<%Sub ConfirmObit() '''''''''''''''''''''''''''''''''''%>

<form name="Form2" action="#" method="post">

<table border="0" width="80%">
<tr>
<td align="right" width="25%">
<font color="red">Date Of Funeral: </font>
</td>
<td>
<%
If Request.Form("FSDoFMonth")<>"" Then
If Request.Form("FSDoFMonth") = "01" Then Response.Write "January"
If Request.Form("FSDoFMonth") = "02" Then Response.Write "February"
If Request.Form("FSDoFMonth") = "03" Then Response.Write "March"
If Request.Form("FSDoFMonth") = "04" Then Response.Write "April"
If Request.Form("FSDoFMonth") = "05" Then Response.Write "May"
If Request.Form("FSDoFMonth") = "06" Then Response.Write "June"
If Request.Form("FSDoFMonth") = "07" Then Response.Write "July"
If Request.Form("FSDoFMonth") = "08" Then Response.Write "Augest"
If Request.Form("FSDoFMonth") = "09" Then Response.Write "September"
If Request.Form("FSDoFMonth") = "10" Then Response.Write "October"
If Request.Form("FSDoFMonth") = "11" Then Response.Write "November"
If Request.Form("FSDoFMonth") = "12" Then Response.Write "December"
Response.Write (" ")
Response.Write Request.Form("FSDoFDay")
Response.Write (", ")
Response.Write Request.Form("FSDoFYear")
End If
%>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<b>If The Information Is Not Correct Please Click The Back Button To Correct Any Mistakes</b><br />
</td>
</tr>
<tr>
<td align="center" colspan="2">

<input type="hidden" name="dcheck" value="<%=dcheck%>">
<input type="hidden" name="FSDoFMonth" value="<%=FSDoFMonth%>">
<input type="hidden" name="FSDoFDay" value="<%=FSDoFDay%>">
<input type="hidden" name="FSDoFYear" value="<%=FSDoFYear%>">

<input type="submit" value="Go Back" onClick="this.form.action='Drop%20Down%20Calander.asp';">
</td>
</tr>
</table>
</form>
<%End Sub '''''''''''''''''''''''''''''''''''''''''''%>
</html>

Crash1hd
06-12-2003, 07:31 PM
The source of the input page is here



<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<LINK href="/Scripts/style.css" rel="stylesheet" type="text/css">
<noscript>
<p align="center">
<a href="http://www.Alwaysremember.ca" name="Top"><img alt="Title" src="/Images/title.gif" border="0" name="Title" width="432" height="108"></a>
<br>
<a href="/About.asp"><img alt="About" src="/Images/Text/about.jpg" border="0" name="About" width="67" height="36"></a>
<a href="/Affiliate.asp"><img alt="Affiliate" src="/Images/Text/affiliate.jpg" border="0" name="Affiliate" width="70" height="36"></a>
<a href="/Memorials.asp"><img alt="Memorials" src="/Images/Text/memorials.jpg" border="0" name="Memorials" width="85" height="36"></a>
<a href="/Obituarys.asp"><img alt="Obituarys" src="/Images/Text/obituarys.jpg" border="0" name="Obituarys" width="86" height="36"></a>
<a href="/Pets.asp"><img alt="Pets" src="/Images/Text/pets.jpg" border="0" name="Pets" width="44" height="36"></a>
<a href="/Weddings.asp"><img alt="Weddings" src="/Images/Text/weddings.jpg" border="0" name="Weddings" width="85" height="36"></a>
<a href="/Prices.asp"><img alt="Prices" src="/Images/Text/prices.jpg" border="0" name="Prices" width="55" height="36"></a>
<a href="/Login.asp"><img alt="Login" src="/Images/Text/login.jpg" border="0" name="Login" width="65" height="36"></a>
</p></noscript>
<script language="JavaScript" src="/Scripts/BrowserSniffer.js"></script>
<script language="JavaScript" src="/Scripts/Check.js"></script>
<script language="JavaScript" src="/Scripts/Count_Words.js"></script>
<script language="JavaScript" src="/Scripts/DropDowns.js"></script>
<script language="JavaScript">
if(ns){origWidth=innerWidth;origHeight=innerHeight;onresize=function(){if(innerWidth!=origWidth||inn erHeight!=origHeight)location.reload()}}

//==================================================================================================== ====

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
echeck = newImage("/Images/echeck_192x26.gif");
titlep_down = newImage("/Images/titlepet.gif");
titlew_down = newImage("/Images/titleweddings.gif");
about_down = newImage("/Images/Text/aboutdown.jpg");
affiliate_down = newImage("/Images/Text/affiliatedown.jpg");
memorials_down = newImage("/Images/Text/memorialsdown.jpg");
obituarys_down = newImage("/Images/Text/obituarysdown.jpg");
pets_down = newImage("/Images/Text/petsdown.jpg");
weddings_down = newImage("/Images/Text/weddingsdown.jpg");
prices_down = newImage("/Images/Text/pricesdown.jpg");
login_down = newImage("/Images/Text/logindown.jpg");

preloadFlag = true;
}
}

preloadImages();

var HTML =

'<p align="center">' +
'<a name="Top" href="http://www.Alwaysremember.ca">' +
'<img name="Title" src="/Images/title.gif" alt="Title" border="0"></a>' +
'<br>' +

'<a href="/About.asp" ' +
'onmouseover="changeImages(\'About\',\'/Images/Text/aboutdown.jpg\');return true" ' +
'onmouseout="changeImages(\'About\', \'/Images/Text/about.jpg\');return true">' +
'<img name="About" src="/Images/Text/about.jpg" Alt="About" border="0" /></a> ' +

'<a href="/Affiliate.asp" ' +
'onmouseover="changeImages(\'Affiliate\',\'/Images/Text/affiliatedown.jpg\');return true" ' +
'onmouseout="changeImages(\'Affiliate\',\'/Images/Text/affiliate.jpg\');return true">' +
'<img name="Affiliate" src="/Images/Text/affiliate.jpg" alt="Affiliate" border="0" /></a> ' +

'<a href="/Memorials.asp" ' +
'onmouseover="changeImages(\'Memorials\',\'/Images/Text/memorialsdown.jpg\',\'Title\',\'/Images/titlem.gif\');return true" ' +
'onmouseout="changeImages(\'Memorials\',\'/Images/Text/memorials.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Memorials" src="/Images/Text/memorials.jpg" alt="Memorials" border="0" /></a> ' +

'<a href="/Obituarys.asp" ' +
'onmouseover="changeImages(\'Obituarys\',\'/Images/Text/obituarysdown.jpg\',\'Title\',\'/Images/titleobituarys.gif\');return true" ' +
'onmouseout="changeImages(\'Obituarys\',\'/Images/Text/obituarys.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Obituarys" src="/Images/Text/obituarys.jpg" alt="Obituarys" border="0" /></a> ' +

'<a href="/Pets.asp" ' +
'onmouseover="changeImages(\'Pets\',\'/Images/Text/petsdown.jpg\',\'Title\',\'/Images/titlepets.gif\');return true" ' +
'onmouseout="changeImages(\'Pets\',\'/Images/Text/pets.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Pets" src="/Images/Text/pets.jpg" alt="Pets" border="0" /></a> ' +

'<a href="/Weddings.asp" ' +
'onmouseover="changeImages(\'Weddings\',\'/Images/Text/weddingsdown.jpg\',\'Title\',\'/Images/titleweddings.gif\');return true" ' +
'onmouseout="changeImages(\'Weddings\',\'/Images/Text/weddings.jpg\',\'Title\',\'/Images/title.gif\');return true"> ' +
'<img name="Weddings" src="/Images/Text/weddings.jpg" alt="Weddings" border="0" /></a> ' +

'<a href="/Prices.asp" ' +
'onmouseover="changeImages(\'Prices\',\'/Images/Text/pricesdown.jpg\');return true" ' +
'onmouseout="changeImages(\'Prices\',\'/Images/Text/prices.jpg\');return true">' +
'<img name="Prices" src="/Images/Text/prices.jpg" alt="Prices" border="0" /></a> ' +

'<a href="/Login.asp" ' +
'onmouseover="changeImages(\'Login\',\'/Images/Text/logindown.jpg\');return true" ' +
'onmouseout="changeImages(\'Login\',\'/Images/Text/login.jpg\');return true">' +
'<img name="Login" src="/Images/Text/login.jpg" alt="Login" border="0" /></a> ' +
'</p>';

var whichpage = document.URL.substring(29, document.URL.lastIndexOf('.'));
var oRegExp = new RegExp('/Images\/Text\/' + whichpage + '.jpg', 'gi');
HTML = HTML.replace(oRegExp, '/Images/Text/' + whichpage + 'down.jpg');

var whichp = 'title';
var pet = 'Pets';
var wed = 'Weddings';
var obit = 'Obituarys';
var oRegExp = new RegExp('/Images\/' + whichp + '.gif', 'gi');
if (whichpage == pet|whichpage == wed|whichpage == obit){
HTML = HTML.replace(oRegExp, '/Images/title' + whichpage + '.gif');}

document.write(HTML);

//==================================================================================================== ====
</script>

<script>
//This stops people useing mozzila from back clicking to a members only page after logging out!

function w3backblock() {
if(w3) {location.reload();}
else {}
}
</script>

<P align="center"><a href=/include/utility.asp?method=abandon onClick=w3backblock()>Crash1hd You are curently logged in click here to log out </a></p><Div style='position:absolute; top:0; left:0%; z-index: 1'><font color=red>9 1</font></div>
<html><head><title>New Page 1</title>

<SCRIPT language="JavaScript">
//Unable to put this in JS file as it has ASP in it!
//function to set options to today


function SetToToday(Which)
{

}

function WriteDoFOptions(DaysAhead)
{
line = "";

for (i=0; i<DaysAhead; i++)
{

if (i==0-1) line += "<OPTION Value=0 SELECTED>";
else line += "<OPTION>";
if (i==0 || i==1 || i==2 || i==3 || i==4 || i==5 || i==6 || i==7 || i==8) line += "0";
line += (NowDay - NowDay + 1) + i;
line += "</OPTION>";
}
return line;
}

function WriteDoFYearOptions(YearsAhead)
{
line = "";

for (i=0; i<YearsAhead; i++)
{

if (i==(NowYear + 1) -0) line += "<OPTION Value=0 SELECTED>";
else line += "<OPTION>";
line += (NowYear + 1) - i;
line += "</OPTION>";
}
return line;
}
</SCRIPT>
</head>

<body onload = "SetToToday('FSDoF');">

<FORM name="Form1" action="Drop%20Down%20Calander.asp?dbshow=1" method="post">
<input type="hidden" name="submitnumber" value="1" />
<input type="hidden" name="dcheck" value="13" />
<table cellspacing="2" cellpadding="5" border="0" align="center">
<tr>
<td align="right">
<font color="red">* Date of Funeral: </font>
</td>
<td>
<SELECT name="FSDoFMonth" onchange="ChangeOptionDays('FSDoF')">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</SELECT>
<SELECT name="FSDoFDay">
<SCRIPT language="JavaScript">
document.write(WriteDoFOptions(31));
</SCRIPT>
</SELECT>
<SELECT name="FSDoFYear" onchange="ChangeOptionDays('FSDoF')">
<SCRIPT language="JavaScript">
document.write(WriteDoFYearOptions(200));
</SCRIPT>
</SELECT>
</td>
</tr>
<tr>
<td>
<input type="Submit" value="Submit">
</td>
</tr>
</table>
</FORM>

</body>

</html>

and the source of the output page is here



<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<LINK href="/Scripts/style.css" rel="stylesheet" type="text/css">
<noscript>
<p align="center">
<a href="http://www.Alwaysremember.ca" name="Top"><img alt="Title" src="/Images/title.gif" border="0" name="Title" width="432" height="108"></a>
<br>
<a href="/About.asp"><img alt="About" src="/Images/Text/about.jpg" border="0" name="About" width="67" height="36"></a>
<a href="/Affiliate.asp"><img alt="Affiliate" src="/Images/Text/affiliate.jpg" border="0" name="Affiliate" width="70" height="36"></a>
<a href="/Memorials.asp"><img alt="Memorials" src="/Images/Text/memorials.jpg" border="0" name="Memorials" width="85" height="36"></a>
<a href="/Obituarys.asp"><img alt="Obituarys" src="/Images/Text/obituarys.jpg" border="0" name="Obituarys" width="86" height="36"></a>
<a href="/Pets.asp"><img alt="Pets" src="/Images/Text/pets.jpg" border="0" name="Pets" width="44" height="36"></a>
<a href="/Weddings.asp"><img alt="Weddings" src="/Images/Text/weddings.jpg" border="0" name="Weddings" width="85" height="36"></a>
<a href="/Prices.asp"><img alt="Prices" src="/Images/Text/prices.jpg" border="0" name="Prices" width="55" height="36"></a>
<a href="/Login.asp"><img alt="Login" src="/Images/Text/login.jpg" border="0" name="Login" width="65" height="36"></a>
</p></noscript>
<script language="JavaScript" src="/Scripts/BrowserSniffer.js"></script>
<script language="JavaScript" src="/Scripts/Check.js"></script>
<script language="JavaScript" src="/Scripts/Count_Words.js"></script>
<script language="JavaScript" src="/Scripts/DropDowns.js"></script>
<script language="JavaScript">
if(ns){origWidth=innerWidth;origHeight=innerHeight;onresize=function(){if(innerWidth!=origWidth||inn erHeight!=origHeight)location.reload()}}

//==================================================================================================== ====

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
echeck = newImage("/Images/echeck_192x26.gif");
titlep_down = newImage("/Images/titlepet.gif");
titlew_down = newImage("/Images/titleweddings.gif");
about_down = newImage("/Images/Text/aboutdown.jpg");
affiliate_down = newImage("/Images/Text/affiliatedown.jpg");
memorials_down = newImage("/Images/Text/memorialsdown.jpg");
obituarys_down = newImage("/Images/Text/obituarysdown.jpg");
pets_down = newImage("/Images/Text/petsdown.jpg");
weddings_down = newImage("/Images/Text/weddingsdown.jpg");
prices_down = newImage("/Images/Text/pricesdown.jpg");
login_down = newImage("/Images/Text/logindown.jpg");

preloadFlag = true;
}
}

preloadImages();

var HTML =

'<p align="center">' +
'<a name="Top" href="http://www.Alwaysremember.ca">' +
'<img name="Title" src="/Images/title.gif" alt="Title" border="0"></a>' +
'<br>' +

'<a href="/About.asp" ' +
'onmouseover="changeImages(\'About\',\'/Images/Text/aboutdown.jpg\');return true" ' +
'onmouseout="changeImages(\'About\', \'/Images/Text/about.jpg\');return true">' +
'<img name="About" src="/Images/Text/about.jpg" Alt="About" border="0" /></a> ' +

'<a href="/Affiliate.asp" ' +
'onmouseover="changeImages(\'Affiliate\',\'/Images/Text/affiliatedown.jpg\');return true" ' +
'onmouseout="changeImages(\'Affiliate\',\'/Images/Text/affiliate.jpg\');return true">' +
'<img name="Affiliate" src="/Images/Text/affiliate.jpg" alt="Affiliate" border="0" /></a> ' +

'<a href="/Memorials.asp" ' +
'onmouseover="changeImages(\'Memorials\',\'/Images/Text/memorialsdown.jpg\',\'Title\',\'/Images/titlem.gif\');return true" ' +
'onmouseout="changeImages(\'Memorials\',\'/Images/Text/memorials.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Memorials" src="/Images/Text/memorials.jpg" alt="Memorials" border="0" /></a> ' +

'<a href="/Obituarys.asp" ' +
'onmouseover="changeImages(\'Obituarys\',\'/Images/Text/obituarysdown.jpg\',\'Title\',\'/Images/titleobituarys.gif\');return true" ' +
'onmouseout="changeImages(\'Obituarys\',\'/Images/Text/obituarys.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Obituarys" src="/Images/Text/obituarys.jpg" alt="Obituarys" border="0" /></a> ' +

'<a href="/Pets.asp" ' +
'onmouseover="changeImages(\'Pets\',\'/Images/Text/petsdown.jpg\',\'Title\',\'/Images/titlepets.gif\');return true" ' +
'onmouseout="changeImages(\'Pets\',\'/Images/Text/pets.jpg\',\'Title\',\'/Images/title.gif\');return true">' +
'<img name="Pets" src="/Images/Text/pets.jpg" alt="Pets" border="0" /></a> ' +

'<a href="/Weddings.asp" ' +
'onmouseover="changeImages(\'Weddings\',\'/Images/Text/weddingsdown.jpg\',\'Title\',\'/Images/titleweddings.gif\');return true" ' +
'onmouseout="changeImages(\'Weddings\',\'/Images/Text/weddings.jpg\',\'Title\',\'/Images/title.gif\');return true"> ' +
'<img name="Weddings" src="/Images/Text/weddings.jpg" alt="Weddings" border="0" /></a> ' +

'<a href="/Prices.asp" ' +
'onmouseover="changeImages(\'Prices\',\'/Images/Text/pricesdown.jpg\');return true" ' +
'onmouseout="changeImages(\'Prices\',\'/Images/Text/prices.jpg\');return true">' +
'<img name="Prices" src="/Images/Text/prices.jpg" alt="Prices" border="0" /></a> ' +

'<a href="/Login.asp" ' +
'onmouseover="changeImages(\'Login\',\'/Images/Text/logindown.jpg\');return true" ' +
'onmouseout="changeImages(\'Login\',\'/Images/Text/login.jpg\');return true">' +
'<img name="Login" src="/Images/Text/login.jpg" alt="Login" border="0" /></a> ' +
'</p>';

var whichpage = document.URL.substring(29, document.URL.lastIndexOf('.'));
var oRegExp = new RegExp('/Images\/Text\/' + whichpage + '.jpg', 'gi');
HTML = HTML.replace(oRegExp, '/Images/Text/' + whichpage + 'down.jpg');

var whichp = 'title';
var pet = 'Pets';
var wed = 'Weddings';
var obit = 'Obituarys';
var oRegExp = new RegExp('/Images\/' + whichp + '.gif', 'gi');
if (whichpage == pet|whichpage == wed|whichpage == obit){
HTML = HTML.replace(oRegExp, '/Images/title' + whichpage + '.gif');}

document.write(HTML);

//==================================================================================================== ====
</script>

<script>
//This stops people useing mozzila from back clicking to a members only page after logging out!

function w3backblock() {
if(w3) {location.reload();}
else {}
}
</script>

<P align="center"><a href=/include/utility.asp?method=abandon onClick=w3backblock()>Crash1hd You are curently logged in click here to log out </a></p><Div style='position:absolute; top:0; left:0%; z-index: 1'><font color=red>9 1</font></div>
<html><head><title>New Page 1</title>


<form name="Form2" action="#" method="post">

<table border="0" width="80%">
<tr>
<td align="right" width="25%">
<font color="red">Date Of Funeral: </font>
</td>
<td>
January ,
</td>
</tr>
<tr>
<td align="center" colspan="2">
<b>If The Information Is Not Correct Please Click The Back Button To Correct Any Mistakes</b><br />
</td>
</tr>
<tr>
<td align="center" colspan="2">

<input type="hidden" name="dcheck" value="14">
<input type="hidden" name="FSDoFMonth" value="">
<input type="hidden" name="FSDoFDay" value="">
<input type="hidden" name="FSDoFYear" value="">

<input type="submit" value="Go Back" onClick="this.form.action='Drop%20Down%20Calander.asp';">
</td>
</tr>
</table>
</form>

</html>

Crash1hd
06-12-2003, 07:34 PM
as you will notice in the red that it shows January , and thats it if you where to make it February 02 2003 then it would show February 02, 2003 but I had used January 01, 2004 and it doesnt show the 01 and 2004?? for some reason the following code in Opera doesnt show the output of the first values but it works fine in IE


function WriteDoFOptions(DaysAhead)
{
line = "";

for (i=0; i<DaysAhead; i++)
{
<%If dcheck = 1 Then FSDoFDay=0%>
<%If FSDoFDay="" Then FSDoFDay=0%>
if (i==<%=FSDoFDay%>-1) <%if FSDoFDay <> "" Then response.write("line += ""<OPTION Value=" & FSDoFDay & " SELECTED>"";")%>
else <%if FSDoFDay <> "" Then response.write("line += ""<OPTION>"";")%>
if (i==0 || i==1 || i==2 || i==3 || i==4 || i==5 || i==6 || i==7 || i==8) line += "0";
line += (NowDay - NowDay + 1) + i;
line += "</OPTION>";
}
return line;
}

function WriteDoFYearOptions(YearsAhead)
{
line = "";

for (i=0; i<YearsAhead; i++)
{
<%If dcheck = 1 Then FSDoFYear=0%>
<%If FSDoFYear="" Then FSDoFYear=0%>
if (i==(NowYear + 1) -<%=FSDoFYear%>) <%if FSDoFYear <> "" Then response.write("line += ""<OPTION Value=" & FSDoFYear & " SELECTED>"";")%>
else <%if FSDoFYear <> "" Then response.write("line += ""<OPTION>"";")%>
line += (NowYear + 1) - i;
line += "</OPTION>";
}
return line;
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum