Encontre este codigo de java:
<html>
<head>
<title>Secuencia</title>
<script language="javascript">
var SecuenciaEjecutandose = false
var SecuenciaID = null
var imagen = 4
var duracion = 1000
if ( CompruebaVersion() ) {
imagenes = new CreaArray( 4 )
imagenes[1].src = "imagen1.jpg"
imagenes[2].src = "imagen2.jpg"
imagenes[3].src = "imagen3.jpg"
imagenes[4].src = "imagen4.jpg"
}
function CompruebaVersion() {
if (navigator.appVersion.charAt(0) >= 3 && document.images) return true
else return false
}
function CreaArray(n) {
this.length = n
for (var i = 1; i<=n; i ) {
this[i] = new Image()
}
return this
}
function DetenerSecuencia () {
if( SecuenciaEjecutandose )
clearTimeout(SecuenciaID)
SecuenciaEjecutandose = false
imagen = 0
}
function MostrarSecuencia () {
if (CompruebaVersion()) {
document.images["secuencia"].src = imagenes[imagen].src
imagen
if ( imagen == 5 )
imagen = 1
}
SecuenciaID = setTimeout(" MostrarSecuencia() ", duracion)
SecuenciaEjecutandose = true
}
function IniciarSecuencia () {
DetenerSecuencia()
imagen = 1
MostrarSecuencia()
}
</script>
</head>
<body onLoad="IniciarSecuencia()">
<img src="imagen1.jpg" width="100" height="100" alt="Secuencia" name="secuencia">
</body>
</html>
Pero no se donde colocarlo nunca e usado java.Se supone que debe ir:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>paginaosca</title>
<meta name="generator" content="Bluefish 1.0.7">
<meta name="author" content="root">
<meta name="date" content="2010-02-10T00:47:17 0100">
<meta name="copyright" content="">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="expires" content="0">
<meta http-equiv="refresh" content="5; URL=http://">
<link href="paginaoscar5.css" rel="stylesheet" type="text/css" />
<link rel="stylessheet" type="text/css" href="paginaoscar5.css">
------------------------------------------------------------AQUI-------------------------------------------------
</head>
<body>
NO????Pero como???'