Vous êtes sur la page 1sur 2

<!

--pubpopup-->
<HTML>
<script language="javascript">
<!-function dopopup() { window.open('/heberg/pubp.htm?Time=981139711&Url=/duendedel
eyenda/&Nom=duendedeleyenda&POP=1', 'pub', 'height=140,width=468'); }
setTimeout('dopopup()', 1500);
//-->
</script>
</html>
<html>
<script>
function dopopup() {
}
</script>
<HEAD>
<TITLE>JavaScript</TITLE>
</HEAD>
<BODY bgcolor='d6feff' background='difu.jpg' bgproperties='fixed'>
<SCRIPT LANGUAGE="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
window.open("que.htm" , "DisplayWindow","toolbar=no,directories=no,menubar=no,s
crollbars=no");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</SCRIPT>
<font face='verdana' color='235521'>
<center><br><br>
<H2>Boton animado</H2>
<SCRIPT LANGUAGE=JavaScript>
var timerID = null
var timerRunning = false
var charNo = 0
var charMax = 0
var lineNo = 0
var lineMax = 4
var lineArr = new Array(lineMax)
var urlArr = new Array(lineMax)
lineArr[1] = "Duendedeleyenda"
urlArr[1] = "http://www.iespana.es/duendedeyenda"
lineArr[2] = "Mayororeja.com"
urlArr[2] = "http://www.mayororeja.com"
lineArr[3] = "Google"
urlArr[3] = "http://www.google.com"
lineArr[4] = "Webprize"
urlArr[5] = "http://www.iespana.es/webprize"

var lineText = lineArr[1]


function StartShow() {
StopShow()
ShowLine()
timerRunning = true
}
function FillSpaces() {
for (var i = 1; i <= lineWidth; i++) {
spaces += " "
}
}
function StopShow() {
if (timerRunning) {
clearTimeout(timerID)
timerRunning = false
}
}
function ShowLine() {
if (charNo == 0) { // Next line
if (lineNo < lineMax) {
lineNo++
}
else {
lineNo = 1
}
lineText = lineArr[lineNo]
charMax = lineText.length
}
if (charNo <= charMax) { // Next char
document.formDisplay.buttonFace.value = lineText.substring(0, ch
arNo)
charNo++
timerID = setTimeout("ShowLine()", 100)
}
else {
charNo = 0
timerID = setTimeout("ShowLine()", 3000)
}
}
function GotoUrl(url)
{
top.location.href = url
}
document.write("<FORM NAME=\"formDisplay\">");
document.write("<INPUT TYPE=\"BUTTON\" NAME=\"buttonFace\" VALUE=\"&{lineText}\"
SIZE=\"18\" onClick=\"GotoUrl(urlArr[lineNo])\">");
document.write("</FORM>");
StartShow();
</SCRIPT>
<br><br>
<center><a href='nivel3.htm'><img src='vuelve.gif' border='0'></a>
</BODY>
</HTML>