Благодарим за выбор нашего сервиса!
Тестовое сообщение
Сообщений 1 страница 11 из 11
Поделиться22017-08-26 19:53:15
<!--Кубики-->
<script type="text/javascript">
if(form=document.getElementById("form-buttons"))
{
var buttonCell = form.getElementsByTagName("tr")[0].insertCell(20);
buttonCell.id = "button-dice";
buttonCell.title = "Кубики";
buttonCell.innerHTML='<img onclick="dice();" src="/i/blank.gif">';
}
</script>
<script type="text/javascript">
function dice()
{
var FoundErrors = '';
var diceRes=""
var CountCube = prompt("Количество кубиков", "1");
var SideCube = prompt("Сколько граней у кубика?", "100");
if(CountCube>1){
alert("Нельзя бросать столько кубиков");
return false;}
if(SideCube>100){
alert("Не бывает таких кубиков");
return false;}
if (!CountCube)
{return false;}
if (!SideCube)
{return false;}
for(i=0; i<CountCube;i++){
var dice = (Math.round(Math.random()*SideCube))
if(dice==0) dice=1;
diceRes += dice*1936+"-"
}
smile('[dice='+diceRes+CountCube+SideCube+']')
}
</script>
<script>
function addDice(str,from,internal){
var pos=0,pos2=0,newpos=0
if((pos=str.indexOf("[dice=",from))==-1) return str;
if((pos2=str.indexOf("]"),pos+6)==-1) return str;
newpos=str.indexOf("]",pos+6)
if(newpos<pos2 && newpos!=-1) str=addDice(str,pos+6,true)
if((pos2=str.indexOf("]",pos+6))==-1) return str;
str=str.substring(0,pos)+makeDice(str.substring(pos+6,pos2))+str.substring(pos2+1,str.length)
if( str.indexOf("[dice=")!=-1 && internal==false) str=addDice(str,0,false)
return str}
function makeDice(dice){
diceMass = dice.split("-")
diceC = dice.substring(dice.length-2, dice.length-1)
diceS = dice.substring(dice.length-1, dice.length)
var diceR=0, diceRu="";
for(i=0;i<diceMass.length-1;i++){diceR+=diceMass[i]/1936;}
for(i=0;i<diceMass.length-1;i++){if(diceMass[i]==diceMass[diceMass.length-2]){diceRu+=diceMass[i]/1936;}else{diceRu+=parseInt(diceMass[i]/1936)+"+";}}
txt="<div class=\"quote-box\"><blockquote><p><b>Исходный бросок</b>: "+diceC+"d"+diceS+"<br /><br /><b>Результаты броска</b>: ("+diceRu+")="+diceR+"</p></blockquote></div>"
return txt}
if(document.URL.indexOf("viewtopic.php")!=-1){
elm=document.getElementById("pun-main").getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content"){
var post=elm[x]
post.innerHTML=addDice(post.innerHTML,0,false)}}
</script>
<!--Конец кубиков-->В стили style_cs.css в самый конец:
#button-dice {
background-image:url(http://upforme.ru/uploads/0005/6e/de/20529-1.gif);
}Поделиться32017-08-26 19:54:43
[dice=61952-1100]
Поделиться42017-08-28 22:40:33
ля ля ля
[NIC]какой-то ник[/NIC]
[STA]какой-то статус[/STA]
[AVA]http://funkyimg.com/i/2wPG4.png[/AVA]
[SGN]какая-то подпись[/SGN]
Поделиться62017-08-30 20:52:13
цвета:
d9d7d7 на aca7a2
554e4d на 161515
3b4238 на aca7a2
bda879 на 161515
Поделиться92017-09-24 19:50:49
<center><img src="http://funkyimg.com/i/2xDsJ.png"><br>
<a href="http://omerta.rusff.me/profile.php?id=2"><img src="http://funkyimg.com/i/2xDJL.png"></a>
<a href="http://omerta.rusff.me/profile.php?id=2"><img src="http://funkyimg.com/i/2xDJL.png"></a></center>
</center>
Поделиться102017-09-24 21:30:36
<a href="http://omerta.rusff.me/profile.php?id=2"><img src='http://funkyimg.com/i/2xDsJ.png'
onmouseover="this.src='http://funkyimg.com/i/2xDK6.png'"
onmouseout="this.src='http://funkyimg.com/i/2xDsJ.png'" border=0>
Поделиться112017-09-26 22:45:53

<a href="http://epicfailage.forumrpg.ru/" target="_blank"><img src="http://funkyimg.com/i/2xHzd.png"></a>

<a href="http://epicfailage.forumrpg.ru/" target="_blank"><img src="http://funkyimg.com/i/2xHzx.png"></a>




24 сентября 2017



