Is there any possible html code where you can make a banner on your site change every time you refresh or visit the page?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
<script language="JavaScript"><!--
//store the quotations in arrays
images = new Array(33);
images[0] = "<a href = ''><img src='http://2img.net/i/fa/fdf_en3/logo.jpg' width='700' height='150' alt='' border='0'></a>";
images[1] = "<a href = ''><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='500' height='500' alt=' ='0'></a>";
images[2] = "<a href = 'LINK HERE'><img src='http://blazingwolf.com/drupal6/files/random%20flame.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[3] = "<a href = ''><img src='http://3.bp.blogspot.com/_IY7CmWJmPL4/R8K5bFaKXpI/AAAAAAAABO0/fH7E6kPibuM/S1600-R/random.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[4] = "<a href = 'LINK HERE'><img src='v' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[5] = "<a href = ''><img src='http://blog.searchenginewatch.com/blog/img/google-beta.jpg' width='150' height='150' alt='' border='0'></a>";
images[6] = "<a href = ''><img src='http://blogs.nyu.edu/blogs/bmg258/berniestakeonthead/google_adwords_machine.png' width='150' height='150' alt='' border='0'></a>";
images[7] = "<a href = ''><img src='http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs020.ash2/34373_1235023534546_1797943956_457223_409050_n.jpg' width='150' height='150' alt='' border='0'></a>";
images[8] = "<a href = ''><img src='http://i31.servimg.com/u/f31/14/81/45/64/lastsc10.jpg' width='150' height='150' alt='' border='0'></a>";
images[9] = "<a href = ''><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[10] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[11] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[12] = "<a href = 'LINK HERE'><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[13] = "<a href = 'LINK HERE'><img src='http://t2.gstatic.com/images?q=tbn:ANd9GcQswODQsbyCrh7qP5Pss4BYj_fvNObgbpks-tTaF_3sL1nEmgc&t=1&usg=__bqxtcdrrzFiS_tESEswGeDL4IJ4=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[14] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[16] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE border='0'></a>";
images[17] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[18] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='name here' border='0'></a>";
images[19] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[20] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[21] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[22] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[23] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[24] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[25] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[26] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[28] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script>
<body><div align="center">
<br>
<center>
<b></b>
</center>
</div>
Thanks a ton!Skelly Man wrote:Ok its done Here is an example http://anime-underground.all-up.com/chaninjg-banner-h15.htm
Keep refeshing page and poicture will change it may come up "undefined" i dont know wy it does that but it happends like 1 in 8 times or so. the more images you have the less it will say undefined
copy the code D:
- Code:
<script language="JavaScript"><!--
//store the quotations in arrays
images = new Array(33);
images[0] = "<a href = ''><img src='http://2img.net/i/fa/fdf_en3/logo.jpg' width='700' height='150' alt='' border='0'></a>";
images[1] = "<a href = ''><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='500' height='500' alt=' ='0'></a>";
images[2] = "<a href = 'LINK HERE'><img src='http://blazingwolf.com/drupal6/files/random%20flame.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[3] = "<a href = ''><img src='http://3.bp.blogspot.com/_IY7CmWJmPL4/R8K5bFaKXpI/AAAAAAAABO0/fH7E6kPibuM/S1600-R/random.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[4] = "<a href = 'LINK HERE'><img src='v' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[5] = "<a href = ''><img src='http://blog.searchenginewatch.com/blog/img/google-beta.jpg' width='150' height='150' alt='' border='0'></a>";
images[6] = "<a href = ''><img src='http://blogs.nyu.edu/blogs/bmg258/berniestakeonthead/google_adwords_machine.png' width='150' height='150' alt='' border='0'></a>";
images[7] = "<a href = ''><img src='http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs020.ash2/34373_1235023534546_1797943956_457223_409050_n.jpg' width='150' height='150' alt='' border='0'></a>";
images[8] = "<a href = ''><img src='http://i31.servimg.com/u/f31/14/81/45/64/lastsc10.jpg' width='150' height='150' alt='' border='0'></a>";
images[9] = "<a href = ''><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[10] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[11] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[12] = "<a href = 'LINK HERE'><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[13] = "<a href = 'LINK HERE'><img src='http://t2.gstatic.com/images?q=tbn:ANd9GcQswODQsbyCrh7qP5Pss4BYj_fvNObgbpks-tTaF_3sL1nEmgc&t=1&usg=__bqxtcdrrzFiS_tESEswGeDL4IJ4=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[14] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[16] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE border='0'></a>";
images[17] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[18] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='name here' border='0'></a>";
images[19] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[20] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[21] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[22] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[23] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[24] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[25] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[26] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[28] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script>
<body><div align="center">
<br>
<center>
<b></b>
</center>
</div>
Edit: i added more slots for images id say about 30 images will make undefined never come up. there is 28 slots
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><link REL="SHORTCUT ICON" HREF="http://img10.imageshack.us/img10/5206/animcafefavicon.png">
<script language="JavaScript"><!--
//store the quotations in arrays
images = new Array(33);
images[0] = "<a href = ''><img src='http://2img.net/i/fa/fdf_en3/logo.jpg' width='700' height='150' alt='' border='0'></a>"
images[1] = "<a href = ''><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='500' height='500' alt=' ='0'></a>";
images[2] = "<a href = 'LINK HERE'><img src='http://blazingwolf.com/drupal6/files/random%20flame.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[3] = "<a href = ''><img src='http://3.bp.blogspot.com/_IY7CmWJmPL4/R8K5bFaKXpI/AAAAAAAABO0/fH7E6kPibuM/S1600-R/random.jpg' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[4] = "<a href = 'LINK HERE'><img src='v' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[5] = "<a href = ''><img src='http://blog.searchenginewatch.com/blog/img/google-beta.jpg' width='150' height='150' alt='' border='0'></a>";
images[6] = "<a href = ''><img src='http://blogs.nyu.edu/blogs/bmg258/berniestakeonthead/google_adwords_machine.png' width='150' height='150' alt='' border='0'></a>";
images[7] = "<a href = ''><img src='http://sphotos.ak.fbcdn.net/hphotos-ak-ash2/hs020.ash2/34373_1235023534546_1797943956_457223_409050_n.jpg' width='150' height='150' alt='' border='0'></a>";
images[8] = "<a href = ''><img src='http://i31.servimg.com/u/f31/14/81/45/64/lastsc10.jpg' width='150' height='150' alt='' border='0'></a>";
images[9] = "<a href = ''><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[10] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='' border='0'></a>";
images[11] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='150' height='150' alt='NAME HERE' border='0'></a>";
images[12] = "<a href = 'LINK HERE'><img src='http://t3.gstatic.com/images?q=tbn:ANd9GcRNRVwb49wU8ENvZgetPDIEnDfMlD4SZ1x5XLk6CR24QR640c4&t=1&usg=__1mwTxL8UnCcL_Uy84IYvhCL77q8=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[13] = "<a href = 'LINK HERE'><img src='http://t2.gstatic.com/images?q=tbn:ANd9GcQswODQsbyCrh7qP5Pss4BYj_fvNObgbpks-tTaF_3sL1nEmgc&t=1&usg=__bqxtcdrrzFiS_tESEswGeDL4IJ4=' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[14] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[16] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE border='0'></a>";
images[17] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[18] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='name here' border='0'></a>";
images[19] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[20] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[21] = "<a href = 'LINK HERE'><img src='http://img188.imageshack.us/img188/9182/75992792.png' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[22] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[23] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[24] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[25] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[26] = "<a href = 'LINK HERE'><img src='http://blogs.babson.edu/admission/files/2009/11/random-shots-2.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[27] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
images[28] = "<a href = 'LINK HERE'><img src='http://www.bloodhoundrealty.com/BloodhoundBlog/wp-content/uploads/2007/08/ninja-kitten-defeats-dog-with-google-search-skills-always.jpg' width='700' height='150' alt='NAME HERE' border='0'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// --></script>
<body><div align="center">
<br>
<center>
<b></b>
</center>
</div>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Animcafe theater</title>
<style type="text/css">
a:link
{text-decoration:none; color:#000000;}
a:visited {text-decoration:none; color:#000000;}
a:hover {text-decoration:none; color:#000000;}
a:active {text-decoration:none; color:#000000;}
body {
background-color: #ECE9D8;
}
</style>
</head>
<body><div align="center">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F3EFE9"> </td>
</tr>
</table>
<table width="80%" border="0" cellspacing="2" cellpadding="10">
<tr>
<td colspan="2" bgcolor="#FFFFFF">| <a href="http://animcafe.the-up.com/">Home</a> | <a href="http://animcafe.the-up.com/forum.htm">Forums</a> | <a href="http://animcafe.the-up.com/faq.htm">FAQ</a> |</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E9E3D1"> <div align="center">
<object width="800" height="175">
<embed style=width:800px; height:175px allowScriptAccess=always src=http://filebox.me/files/2qgazwhjn_theater.swf.swf type=application/x-shockwave-flash border=0 width=800px height=175px></embed>
</object>
</embed>
</div></td>
</tr>
<tr>
<td width="20%" align="right" valign="top" bgcolor="#E9E3D1"><center>
<!--Featured animation--><!--Featured animation--><!--Featured animation-->
<p align="left"><strong>Featured animation
</strong></p>
<p align="left"><a href="http://animcafe.the-up.com/Run2-h11.htm"><img src="http://fc08.deviantart.net/fs70/i/2010/156/b/6/Run2_by_WoofAnims.png" width="50" height="50" border="1" alt="RUN2" /><br />
<font face="Arial" size="+2">Run2</font></a> <br />
<i><small>Woof</small></i>
<br/><b>Description</b>
<br/>This sequel to the joint "Run" was put together by Woof. It's jam packed with animations by your favorite animators.</p>
</center></td>
<!--Featured animation2-->
<td width="88%" align="left" valign="top" bgcolor="#F7F3EE"><p align="center"><a href="http://animcafe.the-up.com/Getting-ran-over-by-a-car-h9.htm"><img src="http://filebox.me/files/6mi7dzy27_car.png" width="50" height="50" border="1" alt="ACSC1" /><br />
<font face="Arial" size="+2">Run Over By A Car</font></a>
</center>
<center>
<i><a href="http://animcafe.the-up.com/profile.forum?mode=viewprofile&u=1"><small>gunnzoz</small></a></i></p><br/>
<!--Featured animation3-->
<div align="center"><a href="http://animcafe.the-up.com/Clones-h10.htm"><img src="http://filebox.me/files/dae3rnxav_clone_thumbnail.png" width="50" height="50" border="1" alt="ACSC1" /><br />
<font face="Arial" size="+2">Clones</font></a><br />
<i><a href="http://animcafe.the-up.com/profile.forum?mode=viewprofile&u=1"><small>gunnzoz</small></a></i><br/>
<!--Featured animation4-->
<div align="center"><a href="http://animcafe.the-up.com/Movie-room-h8.htm"><img src="http://img59.imageshack.us/img59/8379/farunimage.jpg" width="50" height="50" border="1" alt="RUN" /><br />
<font face="Arial" size="+2">RUN</font></a> <br />
<i><a href="http://animcafe.the-up.com/profile.forum?mode=viewprofile&u=11"><small>n0 trusting</small></a></i></div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><div align="center">|<a href="http://animcafe.the-up.com/"> Home</a> |<a href="http://animcafe.the-up.com/"> Forums</a> |</div> <div align="center"></div></td>
</tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F3EFE9"> </td>
</tr>
</table><div id="footer"></div>
</div>
</body>
</html>