Anyone know HTML?

<p>I have a few flash files that I want to add to a website. How can I make it so that everytime someone visits the site, a different flash animation appears?</p>

<p>(I’m a total newb at HTML/flash so step-by-step instructions on how to write the HTML code would be very helpful)</p>

<p>you can probably find step by step instructions searching on google.</p>

<p>umm… i know basic html… i dont think u can do that… i could be wrong tho… try checking google for C++ … its much hardwer tho, or so my friend tells me</p>

<p>You would either have to embed each flash file into a single flash file and use actionscript to determine which one to play, use javascript to determine which HTML code to display, or use a server-side programming language such as PHP or Perl to determine which one to play.</p>

<p>you can do this with php by creating a txt file in which every line is the html code to include the different flash files. for example, the txt file could be</p>

<p>



<embed src="1.swf">
<embed src="2.swf">
<embed src="3.swf">


edited according to wherever the flash files are, of course.

then put this wherever you want the random flash files to appear



<?php 
$textfile ="name of txt file here"; </p>

<p>$items = file("$textfile"); 
$item = rand(0, sizeof($items)-1); 
echo $items[$item]; 
?> 

</p>

<p>make sure that whatever page you add this to has the extension .php, and that your host supports php (which pretty much every non ****ty host does).</p>

<p>i’m kind of a php & html newb myself so if this doesn’t work you’d have to ask someone more intelligent than i. :P</p>

<p>What crates said might work. If not, get use a script to randomly display files on your site. Search google for “flash random script” or something to that nature. There are plenty of them out there.</p>