TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 695
  • Total: 695

Rolling Dice block

Started by lesmond, February 11, 2007, 12:23:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lesmond

Found a nice little script here 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 in the right block

This website is proudly hosted on Crocweb Cloud Website Hosting.