Al cambiar el estilo de visualización del botón, se logra el deslizamiento de botones dinámicos
La copia del código es la siguiente:
<! DocType html public "-// w3c // dtd xhtml 1.0 Transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transicional.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<Evista>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<title> un documento titulado </title>
</ablo>
<estilo>
.Search {Background:#008800; Color: #fff; borde: ninguno; Altura: 26px; Línea de altura: 20px; Ancho: 63x;}
.SearchHover {fondo:#000099; Color: #fff; borde: ninguno; Altura: 26px; Línea de altura: 20px; Ancho: 63px; }
</style>
</ablo>
<Body onload = "js ()">
<input type = "botón" id = "btn" name = "btn" value = "login"/>
<input type = "botón" id = "btn2" name = "btn" value = "logrout"/>
<script type = "text/javaScript">
función js ()
{
// hacer que el botón IE6 admite el atributo Hover OBJ, la entidad que quiere admitir el volante es el estilo de BTN: Hover e Init es el estilo inicial
obj = "btn";
alerta (navigator.appname);
if (navigator.appname == "Microsoft Internet Explorer" && parsefloat (navigator.appversion) == 4) {// juicio IE6
var o = document.getElementsByName (obj);
para (var i = 0; i <o.length; i ++) {
if (o [i] .type == "botón") {
//o[ifont>.classname = "búsqueda";
o [i] .onmouseover = function () {this.classname = "SearchHover"}
o [i] .onmouseOut = function () {this.classname = "búsqueda"};
}
}
}
}
</script>
</body>
</html>