Cool, it works well
You can see what I did with it on my homepage, for the "Anime Capture" thingy.
Basically in a template where you want the image to precisely show, insert this piece of code:
Code:
<script language="javascript" src="randscreen.php"></script>
I just named the file "randscreen.php," ofcourse.
Though, you need to change one line in that script of yours to function with the Javascript.
Change:
PHP Code:
echo "<img src=\"$view\">";
To:
PHP Code:
echo("document.write('<img src=\"$view\"></a>');");
And it should work.
Thanks for posting this also Ultimate.