Click to See Complete Forum and Search --> : Choosing random Links and displaying them
aoeguy
07-27-2003, 05:45 AM
Ok, ive got a site that you can add your site to and want to add a script that chooses a random Link from a list i type in the code.
Like this:
Page A (href="")
Page B (href="")
Page C (href="")
it chooses one of them and displays it in a table or something like that.
:D Hope you have got a script.
xataku_nakusute
07-27-2003, 04:10 PM
do you want the different link to display completely randomly, or according to the date, time, etc?
::you may want to look into javascript for this::
David Harrison
07-27-2003, 05:09 PM
You mean like this:
aoeguy
07-28-2003, 06:47 AM
Thanks Lavalamp,
It works well, but how could i change the document.write code to add the link into a table? Would i just add a table onto the page and move the JS Code?
Aoeguy
David Harrison
07-30-2003, 01:29 PM
Simple, wherever you want the link, instead of putting a link, just put this:
<script type="text/javascript"><!--
create_random_link();
//--></script>