TinyPortal

Development => Block Codes => Topic started by: Lesmond on February 11, 2007, 12:23:48 AM

Title: Rolling Dice block
Post by: Lesmond on February 11, 2007, 12:23:48 AM
Found a nice little script here (http://eposic.org/samples/dice/part1.php) for rolling dice with images ;)

Download the file below unzip and place the folder in your forum root, add the code below to a script block.
I have made the dice images for this one, but you can also download them from the above site

<center><script type='text/javascript' src='/dice/d6.js'></script>
<script type='text/javascript'>
D6.setBaseUrl("/dice/");
D6.dice(2);
</script>
</center>

You can change (D6.dice(2)) the 2 show how many dice you want to show
Thanks To Mike for helping me with the script ;)

Demo here (http://www.forum.lesmonds.com/index.php) in the right block