24/02/2009, 10:44
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 137
Antigüedad: 17 años, 1 mes Puntos: 2 | |
Problemas para redireccionar dependiendo resolucion Hola
Quiero redireccionar la web dependiendo de 2 resoluciones, pero lamentablemente no me resulta, me podrian decir porfavor donde me equivoco
gracias =)
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" " />
<title></title>
<meta name="verify-v1" content="=" />
<meta name="title" content=""/>
<meta name="author" content=""/>
<meta name="copyright" content="" />
<meta name="subject" content=""/>
<meta name="description" content="" />
<meta name="keywords" content="">
<meta name="generator" content="" />
<meta name="language" content="" />
<meta name="Revisit" content="1 day" />
<meta name="distribution" content="Global" />
<meta name="robots" content="ALL" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="js/lightwindow/css/default.css" />
<link rel="stylesheet" type="text/css" href="js/lightwindow/css/lightwindow.css" />
<!-- JavaScript -->
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/lightwindow/javascript/prototype.js"></script>
<script type="text/javascript" src="js/lightwindow/javascript/effects.js"></script>
<script type="text/javascript" src="js/lightwindow/javascript/lightwindow.js"></script>
<style type="text/css">
body {
background-color: #004C36;
}
.Estilo1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #990000;
}
.Estilo3 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #666666;
font-size: 14px;
}
a {
text-decoration:none;
color: #990000;
}
.Estilo4 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 14px;
}
</style>
<script language="JavaScript">
function redireccionar() {
var url800x600 = "http://www.google.com";
var url1024x768 = "http://www.google.cl";
var nWdt = screen.width;
var nHgh = screen.height;
if ((nWdt == 800) && (nHgh == 600)) window.location.href= url800x600;
else if ((((nWdt == 1024) && (nHgh == 768)) window.location.href= url1024x768; ;
else window.location.href= url800x600;
}
</script>
</head>
<body onLoad="redireccionar()">
</body>
<body>
<div align="center" style="margin-top:5px;"></div>
<div align="center" style="margin-top:5px;">
<div id="flashcontent"></div>
<script type="text/javascript">
var so = new SWFObject("inicio.swf", "main", "816.3", "630", "8");
so.addParam("wmode", "transparent");
so.addParam("allowScriptAccess", "always");
so.addParam("scale", "noscale");
so.write("flashcontent");
</script>
</div>
<div align="center" style="margin-top:30px;">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-2467320-3";
urchinTracker();
</script>
</body>
</html>
|