OK im guessing you will have the URL to the sites with the jokes on. So you could create a function that generates a number then choses a site.
Code:
<html>
<head>
<script language="javascript">
<!--
function joke()
{
x = Math.random()
x = x * 100
x = Math.round(x)
if (x < 10)
{
window.location = "http://www.myjoke.com"
}
if (x < 20 && x > 10)
{
window.location = "http://www.myjoke2.com"
}
if (x < 30 && x > 20)
{
window.location = "http://www.myjoke3.com"
}
if (x < 40 && x > 30)
{
window.location = "http://www.myjoke4.com"
}
}
</script>
</head>
<body>
<a href="#" onmouseup='joke()'>Previous Jokes</a>
</body>
</html>
althought not the best code at all it works quite well.
Bookmarks