<script type="text/javascript">
// insert code copied from link above here
var urls = ['http://link1', 'http://link2', 'http://link3'];
function open_link() {
var index = parseInt(getCookie('link_index'), 10);
if (!index || index >= urls.length)
index = 0;
setCookie('link_index', index + 1, 7);
document.location.href = urls[index];
}</script>
<p><a href="javascript:open_link();">open a silly link</a></p>
I want to make a link on my webpage and when you click it, it sends you to website1 on my list. At that point it would change it so that website2 on my list is what that link points to. So you click the link again and it sends you to website2, rotating to the next website on my list.
I'll try to make this a little clearer. This is supposed to be a link that says "Something to do if you are bored" or something like that. It would pull an address from a list I make of all my favorite websites for when I am bored and send you there. Never sending you to the same place twice in a row.
I'm pretty sure I'll need something more advanced than HTML to do this, so if anybody knows how to do it, keep in mind that I will need to walked through it like a child. If it's possible with HTML, I should be able to follow it easier and you don't need to treat me like a child.
Thanks in advance for any advice I can get.