do you have a ramdon generator that inserts text?
if so, just have it write the bit of code.
Do you want this to be Javascript?
I would advise against this.... From what little javascript I know, you would have to write out an array, and then onLoad pick one and display it. Problem: if you have a big archive, big download time.
I wrote one of these in javascript once. It was a random quote generator. I have sence re-written it in PHP so it's all server-side. Much better, IMHO.
If you like the server-side idea, let me know what your server type is (*nix or NT), and I'll write one and post it hear for everyone.
Mark Hensler
If there is no answer on Google, then there is no question.
Mark Hensler posted this at 07:20 — 7th December 2000.
I want a random image link,
a random image and a link associated with that image depending on which image that is.
ex: if a yahoo.com logo was randomly picked I want users to be able to go to http://www.yahoo.com by clicking on that image.
How can this be done?
The above example is for 2 banners(image and link rotation) add any amount of image rotation plus link, you should be able to work it out by using the above script.
Hope this helps
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.
Mark Hensler posted this at 07:07 — 7th December 2000.
He has: 4,048 posts
Joined: Aug 2000
huh?
do you have a ramdon generator that inserts text?
if so, just have it write the bit of code.
Do you want this to be Javascript?
I would advise against this.... From what little javascript I know, you would have to write out an array, and then onLoad pick one and display it. Problem: if you have a big archive, big download time.
I wrote one of these in javascript once. It was a random quote generator. I have sence re-written it in PHP so it's all server-side. Much better, IMHO.
If you like the server-side idea, let me know what your server type is (*nix or NT), and I'll write one and post it hear for everyone.
Mark Hensler
If there is no answer on Google, then there is no question.
Mark Hensler posted this at 07:20 — 7th December 2000.
He has: 4,048 posts
Joined: Aug 2000
I just posted a PHP one. If your interested, here it is.
ianrules posted this at 23:05 — 7th December 2000.
They have: 74 posts
Joined: Sep 2000
I want a random image link,
a random image and a link associated with that image depending on which image that is.
ex: if a yahoo.com logo was randomly picked I want users to be able to go to http://www.yahoo.com by clicking on that image.
How can this be done?
hehe
AndyB posted this at 03:07 — 9th December 2000.
They have: 344 posts
Joined: Aug 1999
http://wsabstract.com/script/cut144.shtml
NSS posted this at 09:04 — 9th December 2000.
They have: 488 posts
Joined: Feb 2000
Try this and place it anywhere in your <script></script> tag
<script LANGUAGE="JavaScript">
');
document.write('');
document.write('');
document.write('' + txt + '');
document.write('');
// End -->
</script>
The above example is for 2 banners(image and link rotation) add any amount of image rotation plus link, you should be able to work it out by using the above script.
Hope this helps
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.