
load balancing HTML link ?
Hi
Something like this perhaps:
<script type="text/JavaScript">
function goThere(){
var a = new Array( "Server1", "Server2" );
location.href = a[ Math.floor( Math.random() * a.length ) ];
Quote:
}
</script>
<a href="JavaScript:goThere()">bla</a>
--
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet, Client, SDK MVP
==============================
http://www.icysoft.com
http://www.dna.is
==============================
No matter where you go there you are
--
Quote:
> I have two websites and trying to balance the load with the link that
leads
> to those two sites.
> currently I have two links listed on main page but people ususally click
the
> first one.. is there a way to create a link(cgi, java, VBscript, etc) to
> create a link that will point to one server and for next user, points to
> second server link?
> it doesn't need to work perfectly 50/50 just spreading load around will
do.
> thanks!