JavaScript

System Info
Clocks
Equalizer
Text in the Form
Background Color
Goodbye Pop-up
MultiLink
Window's Size
MultiLink-II

DHTML


Books

Russian | Main Page


Useful links:







MultiLink | Description

If you want to use any of this examples, please put a link to our site.
Here you can find HTML-code for such link.

<html>
<head>
<title>www.redmount.com - JavaScript - MultiLink</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
var timerID=null;
var n=0;
var butN=null;
var butU=null;

function init()
{
   butN = new Array;
   butU = new Array;
   butN[0]="AltaVista";
   butN[1]="Excite";
   butN[2]="GoTo.com";
   butN[3]="HotBot";
   butN[4]="Lycos";
   butN[5]="Yahoo!";
   butU[0]="http://www.altavista.com";
   butU[1]="http://www.excite.com";
   butU[2]="http://www.goto.com";
   butU[3]="http://www.hotbot.com";
   butU[4]="http://www.lycos.com";
   butU[5]="http://www.yahoo.com";
   showButtonname();
}

function showButtonname()
{
 n= (n == butN.length-1) ? 0 : n + 1;
 document.forms[0].elements[0].value=butN[n];
 timerID=window.setTimeout('showButtonname()',1000);
}

function goToUrl()
{
   this.location=butU[n];
   return (false);
}

//-->
</SCRIPT>
</head>
<body onLoad=init() bgcolor="White" leftmargin=30 marginwidth=30><br>

<FORM>
<INPUT TYPE=button VALUE="Wait..." size=50 style="width: 150px;" NAME=goTo onClick=goToUrl()>
</FORM>

</body>

</html>