Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2011, 22:39
daneco1720
 
Fecha de Ingreso: noviembre-2010
Mensajes: 105
Antigüedad: 13 años, 6 meses
Puntos: 0
No funciona window.onload() con nifty en dreamweaver cs5

busque por todos lados como hacer una capa con esquinas redondeadas y cuando la encontre que es la tipica niftycube, no me funciona si abro un ejemplo de nifty cube si funciona y cuando abro el mio no, no se porque aqui dejo los codigos

EJEMPLO DE NIFTY
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>
<
head>
<
title>Nifty CornersJavascript and CSS rounded corners</title>
<
meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<
meta name="generator" content="HAPedit 3.1">
<
style type="text/css">
body{padding30px 0 0;background:#111;
    
font100.01%/1.3 Verdana,Arial,sans-serif;text-align:center}
div#box{width: 18em;padding: 20px  0;margin:0 auto;
    
background:#42424B;color:#FFF}
h1{fontlighter 200"Trebuchet MS",Arial sans-serif;color#208BE1}
h1,p{margin:0;padding:10px 20px}
</
style>
<
script type="text/javascript">
window.onload=function(){
  
alert("oload catched: now nifty corners are ready to round!");
    }
</script>
<script type="text/javascript" src="niftycube.js"></script>
<script type="text/javascript">
NiftyLoad=function(){
Nifty("div#box","big");
}
</script>
</head>
<body>
<div id="box">
<h1>Nifty Corners Cube&trade;</h1>
<p>One call. Two parameters. Three sizes.</p>
</div>
</body>
</html> 
EJEMPLO DEL MIO QUE NO FUNCIONA Y NO SE PORQUE¡¡¡
Código PHP:
<!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=utf-8" />
<
meta name="generator" content="HAPedit 3.1">
<
style type="text/css">
body{padding30px 0 0;background:#111;
    
font100.01%/1.3 Verdana,Arial,sans-serif;text-align:center}
div#box{width: 18em;padding: 20px  0;margin:0 auto;
    
background:#42424B;color:#FFF}
h1{fontlighter 200"Trebuchet MS",Arial sans-serif;color#208BE1}
h1,p{margin:0;padding:10px 20px}
</
style>
<
script type="text/javascript">
window.onload=function(){
  
alert("oload catched: now nifty corners are ready to round!");
    }
</script>
<script type="text/javascript" src="niftycube.js"></script>
<script type="text/javascript">
NiftyLoad=function(){
Nifty("div#box","big");
}
</script>
</head>
<body>
<div id="box">
<h1>contenido de capa</h1>
<p>no funciona en dream cs5</p>
</div>
</body>
</html>