MyBB Community Forums

Full Version: Made a cool script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I made a signature image scroller that has a different link URL for each image. Big Grin
That's awesome, can I have teh code? Toungue
Thats easy lol, just use this:

<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'link'><img src='image link'></a>";
images[1] = "<a href = 'link'><img src='image link'></a>";
images[2] = "<a href = 'link'><img src='image link'></a>";
images[3] = "<a href = 'link'><img src='image link'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
So, a Banner rotator?
Yes that would work
Awesome, great job!
(2011-01-25, 09:01 PM)Janota Wrote: [ -> ]Thats easy lol, just use this:

<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'link'><img src='image link'></a>";
images[1] = "<a href = 'link'><img src='image link'></a>";
images[2] = "<a href = 'link'><img src='image link'></a>";
images[3] = "<a href = 'link'><img src='image link'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>

But that doesn't work for MyCode.
EDIT: I forgot to mention it's for signatures.
But you can't use that in most forums?
(2011-01-25, 09:51 PM)Zack Magee Wrote: [ -> ]
(2011-01-25, 09:01 PM)Janota Wrote: [ -> ]Thats easy lol, just use this:

<script language="JavaScript">
images = new Array(4);
images[0] = "<a href = 'link'><img src='image link'></a>";
images[1] = "<a href = 'link'><img src='image link'></a>";
images[2] = "<a href = 'link'><img src='image link'></a>";
images[3] = "<a href = 'link'><img src='image link'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>

But that doesn't work for MyCode.
EDIT: I forgot to mention it's for signatures.

I dont you why you post boasting about your new script lol
Why dont you post and share it lol ?
I had it up, but someone said it was too big :O

And yes I can use it on most forums? It almost works like a captcha. the Image is randomized, and the associated URL is set to a cookie. The image is linked to a page that checks the cookie and redirects to it.
Pages: 1 2 3 4 5