Post by nina on Feb 9, 2010 19:35:56 GMT -8
Board URL: pirateship5.proboards.com
Problem:
Okay I tried the poker code where you can have a poker game in certain boards? Yeah...I goofed it up and I'm not sure how. Can you show me what's wrong with my code?
Here's what I put:
Problem:
Okay I tried the poker code where you can have a poker game in certain boards? Yeah...I goofed it up and I'm not sure how. Can you show me what's wrong with my code?
Here's what I put:
<script type="text/javascript">
<!--
/*
Poker Hand
by Todge
Copyright © 2009
Please keep this header intact
*/
// Edit Below....
var dealButton = 'http://i683./vv200/moe031608/Pirates/deal-UBBC-icon.png';
var theDeck = new Array('http://i683./vv200/moe031608/Pirates/9-1.gif
http://i683./vv200/moe031608/Pirates/8-1.gif
http://i683./vv200/moe031608/Pirates/7-1.gif
http://i683./vv200/moe031608/Pirates/6-1.gif
http://i683./vv200/moe031608/Pirates/52.gif
http://i683./vv200/moe031608/Pirates/51.gif
http://i683./vv200/moe031608/Pirates/50.gif
http://i683./vv200/moe031608/Pirates/5-5.gif
http://i683./vv200/moe031608/Pirates/49.gif
http://i683./vv200/moe031608/Pirates/48.gif
http://i683./vv200/moe031608/Pirates/47.gif
http://i683./vv200/moe031608/Pirates/47.gif
http://i683./vv200/moe031608/Pirates/45.gif
http://i683./vv200/moe031608/Pirates/44.gif
http://i683./vv200/moe031608/Pirates/43.gif
http://i683./vv200/moe031608/Pirates/42.gif
http://i683./vv200/moe031608/Pirates/41.gif
http://i683./vv200/moe031608/Pirates/41.gif
http://i683./vv200/moe031608/Pirates/4-5.gif
http://i683./vv200/moe031608/Pirates/39.gif
http://i683./vv200/moe031608/Pirates/38.gif
http://i683./vv200/moe031608/Pirates/37.gif
http://i683./vv200/moe031608/Pirates/36.gif
http://i683./vv200/moe031608/Pirates/36.gif
http://i683./vv200/moe031608/Pirates/34.gif
http://i683./vv200/moe031608/Pirates/33.gif
http://i683./vv200/moe031608/Pirates/32.gif
http://i683./vv200/moe031608/Pirates/31.gif
http://i683./vv200/moe031608/Pirates/30.gif
http://i683./vv200/moe031608/Pirates/30.gif
http://i683./vv200/moe031608/Pirates/29.gif
http://i683./vv200/moe031608/Pirates/28.gif
http://i683./vv200/moe031608/Pirates/27.gif
http://i683./vv200/moe031608/Pirates/26.gif
http://i683./vv200/moe031608/Pirates/25.gif
http://i683./vv200/moe031608/Pirates/24.gif
http://i683./vv200/moe031608/Pirates/23.gif
http://i683./vv200/moe031608/Pirates/22.gif
http://i683./vv200/moe031608/Pirates/21.gif
http://i683./vv200/moe031608/Pirates/20.gif
http://i683./vv200/moe031608/Pirates/2-5.gif
http://i683./vv200/moe031608/Pirates/19.gif
http://i683./vv200/moe031608/Pirates/18.gif
http://i683./vv200/moe031608/Pirates/17.gif
http://i683./vv200/moe031608/Pirates/16.gif
http://i683./vv200/moe031608/Pirates/15.gif
http://i683./vv200/moe031608/Pirates/14.gif
http://i683./vv200/moe031608/Pirates/13.gif
http://i683./vv200/moe031608/Pirates/12.gif
http://i683./vv200/moe031608/Pirates/11.gif
http://i683./vv200/moe031608/Pirates/10.gif
http://i683./vv200/moe031608/Pirates/1-5.gif');
// Edit Above....
function dealCards()
{
var card = new Array('[c0]','[c0]','[c0]','[c0]','[c0]');
for(c=0; c<5; c++)
{
card[c] = '[c'+Math.floor ( Math.random ( ) * 52 + 1 )+']';
if(card.join('').split(card[c]).length != 2)
{
c--;
}}
var hand = '[hand]'+card.join('')+'[/hand]';
document.postForm.onsubmit = function(){document.postForm.message.value = hand + document.postForm.message.value;}
deal.style.display = 'none';
return;
}
if(document.postForm)
{
var deck = new Array();
var deal = document.createElement('a');
var dButton = new Image();
dButton.src = dealButton;
dButton.border = '0';
deal.onclick = function(){ dealCards(); }
deal.appendChild(dButton);
document.postForm.color.parentNode.appendChild(deal);
var posted = document.postForm.message.value;
var hand = posted.substring(0,6);
if(hand == '[hand]')
{
hand = posted.split('[/hand]')[0]+'[/hand]';
posted = posted.replace(hand,'');
document.postForm.message.value = posted;
deal.style.display = 'none';
document.postForm.onsubmit = function(){ document.postForm.message.value = hand+document.postForm.message.value; }
}}
if(location.href.match(/action=display/) || document.title.match(/- Preview/))
{
var del = document.images;
for(d=0; d<del.length; d++)
{
if(del[d].alt == '[Delete]')
{
del[d].style.display = 'none';
}}
var posts = document.getElementsByTagName('font');
for(p=0; p<posts.length; p++)
{
if(posts
<!--
/*
Poker Hand
by Todge
Copyright © 2009
Please keep this header intact
*/
// Edit Below....
var dealButton = 'http://i683./vv200/moe031608/Pirates/deal-UBBC-icon.png';
var theDeck = new Array('http://i683./vv200/moe031608/Pirates/9-1.gif
http://i683./vv200/moe031608/Pirates/8-1.gif
http://i683./vv200/moe031608/Pirates/7-1.gif
http://i683./vv200/moe031608/Pirates/6-1.gif
http://i683./vv200/moe031608/Pirates/52.gif
http://i683./vv200/moe031608/Pirates/51.gif
http://i683./vv200/moe031608/Pirates/50.gif
http://i683./vv200/moe031608/Pirates/5-5.gif
http://i683./vv200/moe031608/Pirates/49.gif
http://i683./vv200/moe031608/Pirates/48.gif
http://i683./vv200/moe031608/Pirates/47.gif
http://i683./vv200/moe031608/Pirates/47.gif
http://i683./vv200/moe031608/Pirates/45.gif
http://i683./vv200/moe031608/Pirates/44.gif
http://i683./vv200/moe031608/Pirates/43.gif
http://i683./vv200/moe031608/Pirates/42.gif
http://i683./vv200/moe031608/Pirates/41.gif
http://i683./vv200/moe031608/Pirates/41.gif
http://i683./vv200/moe031608/Pirates/4-5.gif
http://i683./vv200/moe031608/Pirates/39.gif
http://i683./vv200/moe031608/Pirates/38.gif
http://i683./vv200/moe031608/Pirates/37.gif
http://i683./vv200/moe031608/Pirates/36.gif
http://i683./vv200/moe031608/Pirates/36.gif
http://i683./vv200/moe031608/Pirates/34.gif
http://i683./vv200/moe031608/Pirates/33.gif
http://i683./vv200/moe031608/Pirates/32.gif
http://i683./vv200/moe031608/Pirates/31.gif
http://i683./vv200/moe031608/Pirates/30.gif
http://i683./vv200/moe031608/Pirates/30.gif
http://i683./vv200/moe031608/Pirates/29.gif
http://i683./vv200/moe031608/Pirates/28.gif
http://i683./vv200/moe031608/Pirates/27.gif
http://i683./vv200/moe031608/Pirates/26.gif
http://i683./vv200/moe031608/Pirates/25.gif
http://i683./vv200/moe031608/Pirates/24.gif
http://i683./vv200/moe031608/Pirates/23.gif
http://i683./vv200/moe031608/Pirates/22.gif
http://i683./vv200/moe031608/Pirates/21.gif
http://i683./vv200/moe031608/Pirates/20.gif
http://i683./vv200/moe031608/Pirates/2-5.gif
http://i683./vv200/moe031608/Pirates/19.gif
http://i683./vv200/moe031608/Pirates/18.gif
http://i683./vv200/moe031608/Pirates/17.gif
http://i683./vv200/moe031608/Pirates/16.gif
http://i683./vv200/moe031608/Pirates/15.gif
http://i683./vv200/moe031608/Pirates/14.gif
http://i683./vv200/moe031608/Pirates/13.gif
http://i683./vv200/moe031608/Pirates/12.gif
http://i683./vv200/moe031608/Pirates/11.gif
http://i683./vv200/moe031608/Pirates/10.gif
http://i683./vv200/moe031608/Pirates/1-5.gif');
// Edit Above....
function dealCards()
{
var card = new Array('[c0]','[c0]','[c0]','[c0]','[c0]');
for(c=0; c<5; c++)
{
card[c] = '[c'+Math.floor ( Math.random ( ) * 52 + 1 )+']';
if(card.join('').split(card[c]).length != 2)
{
c--;
}}
var hand = '[hand]'+card.join('')+'[/hand]';
document.postForm.onsubmit = function(){document.postForm.message.value = hand + document.postForm.message.value;}
deal.style.display = 'none';
return;
}
if(document.postForm)
{
var deck = new Array();
var deal = document.createElement('a');
var dButton = new Image();
dButton.src = dealButton;
dButton.border = '0';
deal.onclick = function(){ dealCards(); }
deal.appendChild(dButton);
document.postForm.color.parentNode.appendChild(deal);
var posted = document.postForm.message.value;
var hand = posted.substring(0,6);
if(hand == '[hand]')
{
hand = posted.split('[/hand]')[0]+'[/hand]';
posted = posted.replace(hand,'');
document.postForm.message.value = posted;
deal.style.display = 'none';
document.postForm.onsubmit = function(){ document.postForm.message.value = hand+document.postForm.message.value; }
}}
if(location.href.match(/action=display/) || document.title.match(/- Preview/))
{
var del = document.images;
for(d=0; d<del.length; d++)
{
if(del[d].alt == '[Delete]')
{
del[d].style.display = 'none';
}}
var posts = document.getElementsByTagName('font');
for(p=0; p<posts.length; p++)
{
if(posts
.innerHTML.match(/\[\/hand\]/) && posts
.innerHTML.match(/google_ad_section_start/))
{
posts
.innerHTML = posts
.innerHTML.replace(/\[hand\]/g,'<center>');
posts
.innerHTML = posts
.innerHTML.replace(/\[\/hand\]/g,'</center>');
for(c=1; c<53; c++)
{
posts
.innerHTML = posts
.innerHTML.replace(RegExp('\\[c'+c+'\\]','g'),'<img src="'+theDeck[0]+c+theDeck[1]+'">');
}
}}}
// -->
</script>