Import Anime Forums

Full Version: Random image HTML or script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How does import-anime.com's main page load a random image on the top left? Soldats.net used to have something like that, and I was first curious when they did. Is it possible to make a signature image do that? I won't do it in this forum, but you can bet I'll make my many sigs cycle through other forums : )
Quote:Originally posted by Mailorder
How does import-anime.com's main page load a random image on the top left? Soldats.net used to have something like that, and I was first curious when they did. Is it possible to make a signature image do that? I won't do it in this forum, but you can bet I'll make my many sigs cycle through other forums : )


most likely javascript. Doing a quick google seach for "javascript random image" produced this link:

http://www.javascript-page.com/ranimage.html

which is most likely everything you'd need to learn. As for sigs, most of these boards don't allow you to use Jscript in them and only let you use certain HTML commands (which usually aren't HTML at all, but rather, special commands that are then transcoded into HTML, ie [img] rather than <img>).
Actually i don't use any javascript or anything to do the random image.. I have a set of default numbers that i can go through and when the page is "rendered" on the server i get a random # and i just place that number in the image name to get one fo the images..
if you gonna screw with javascript know some VB cause Java is a pain for those with no experience in coding computer progs.