mrongey- use php include to insert the script into your html file. Take the php code that Dave provided and place it in its own file named something like rotatorscript.php: then place this in your php page with the html: <?php include("rotatorscript.php"); ?>