C
CAFxX
i wrote this code that is meant to check if the client browser generates an
error when executing the blendtrans statement.
unfortunately it's not working as i wished.
this page is called check.asp and the site main page is called index.asp
all the site's pages will use the JS cookie to decide what script will have
to be used, the one using the blendtrans method or another one that simply
shows/hides the obj.
it's a mix of JS and ASP.
thanks to everyone for your help.
<% if request("js") = false or request.cookies("js") = false then %>
<% response.cookies("js") = false %>
<html>
<head>
<script language=javascript>
function go_on() {
redirect = eval(self.location="index.asp");
return true;
}
</script>
</head>
<body onLoad="go_on()">
</body>
</html>
<% else %>
<html>
<head>
<title="N-Side - Checking browser">
<link href="Gatherer.css" rel="stylesheet" type="text/css">
<script language=javascript>
function fadein(obj) {
myObj = eval(obj);
window.onError = noJS();
myObj.filters.blendTrans.apply();
myObj.style.visibility = "visible";
myObj.filters.blendTrans.play();
redirect = eval(self.location='index.asp');
return true;
}
function noJS() {
redirect = eval(self.location='check.asp?js=false'>;
return true;
}
</script>
</head>
<body onLoad="fadein(test)" onError="noJS()">
<div id="test" style="visibility: hidden;">
</body>
<% end if %>
error when executing the blendtrans statement.
unfortunately it's not working as i wished.
this page is called check.asp and the site main page is called index.asp
all the site's pages will use the JS cookie to decide what script will have
to be used, the one using the blendtrans method or another one that simply
shows/hides the obj.
it's a mix of JS and ASP.
thanks to everyone for your help.
<% if request("js") = false or request.cookies("js") = false then %>
<% response.cookies("js") = false %>
<html>
<head>
<script language=javascript>
function go_on() {
redirect = eval(self.location="index.asp");
return true;
}
</script>
</head>
<body onLoad="go_on()">
</body>
</html>
<% else %>
<html>
<head>
<title="N-Side - Checking browser">
<link href="Gatherer.css" rel="stylesheet" type="text/css">
<script language=javascript>
function fadein(obj) {
myObj = eval(obj);
window.onError = noJS();
myObj.filters.blendTrans.apply();
myObj.style.visibility = "visible";
myObj.filters.blendTrans.play();
redirect = eval(self.location='index.asp');
return true;
}
function noJS() {
redirect = eval(self.location='check.asp?js=false'>;
return true;
}
</script>
</head>
<body onLoad="fadein(test)" onError="noJS()">
<div id="test" style="visibility: hidden;">
</body>
<% end if %>