![]() |
| Welcome to AnimeOnline.net, your personal Anime Community! | Anime Online Rulez! |
| |||||||
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Untouchable Join Date: Oct 2004 Location: Pennsylvania, US.
Posts: 765
Thanks: 0
Thanked 1 Time in 1 Post
![]() ![]() Credits: 390 | Random image display alright, after a bit of trial and error I wrote up a working Javascript that allows me to display a random image on a standard HTML-based website. It refreshes to a different image when you view it on the website. Now that I've made that, I'm wondering how, if even possible, I can use this script and the images it's rotating and put it on a forum using standard BBcode. Anyone got some suggestions or able to tell me straight up if it's possible or not?
__________________ |
| Status: Offline
|
| | #2 (permalink) |
M A S T E R Join Date: Oct 2004 Location: A Vastly Superior Place
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
![]() ![]() Credits: 261 | In theory it's possible, but the forum would have to either a)allow Javascript (huge security risk) or b) have a routine written into the parser file to run Javascript code (huge security risk). For forum use, your best best is to use a rotation routine written in PHP. Here's a link to an image rotation code written in PHP: http://www.alistapart.com/d/randomizer/rotate.txt Save it as something like "rotate.php" and then call it with the IMG tags. My signature is now set up using the rotation script. I just put the randomizer script i nto a folder called "sigs" in the images folder of my site. The address of the file is http://masterquan.com/images/sigs/rotate.php. I didn't change any of the scripts. In the same folder ("sigs") as the the rotation script I put the images I wanted to rotate. Then I just called the script with [*img]http://http://masterquan.com/images/sigs/rotate.php[*/img] (without the *'s of course) and now with each refresh, the image should rotate to the next picture. Send me a PM if you have any problems.
__________________ Clan? What Clan? I'm the Master. I need no Clan. |
| Status: Offline
|
| | #3 (permalink) |
Shining Star Join Date: Oct 2004 Location: North Carolina
Posts: 2,520
Thanks: 0
Thanked 1 Time in 1 Post
![]() ![]() Credits: 1,234 | Yeah I would have to agree with Zui PHP is better because you can add what images you want and it will add them in no problem
__________________ |
| Status: Offline
|