$(function(){ document.getElementById('com837').innerHTML+='
iconkakko18:25のままiconkakko2
';document.getElementById('com837').innerHTML+='
iconkakko1千葉の贈り物 8:25iconkakko2
';document.getElementById('com861').innerHTML+='
iconkakko1プライムサンデー!iconkakko2
';document.getElementById('com837').innerHTML+='
iconkakko1元気iconkakko2
';document.getElementById('com838').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com566').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com781').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com566').innerHTML+='
iconkakko1異世界食堂2期の方が良かったiconkakko2
';document.getElementById('com731').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com772').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com849').innerHTML+='
iconkakko1ホ○の波動を感じるiconkakko2
';document.getElementById('com843').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com754').innerHTML+='
iconkakko1ココアとモカiconkakko2
';document.getElementById('com745').innerHTML+='
iconkakko1にこと鞠理iconkakko2
';document.getElementById('com64').innerHTML+='
iconkakko1キュアムーンライトとキュアアムールiconkakko2
';document.getElementById('com869').innerHTML+='
iconkakko1キュアマーチとキュアルージュiconkakko2
';document.getElementById('com858').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com785').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com862').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com810').innerHTML+='
iconkakko1iconkakko2
';document.getElementById('com810').innerHTML+='
iconkakko1iconkakko2
';}); $(function(){ $(".subm").click(function(){ var zi=16; var sss=$(this).attr("id"); //ボタンID var ttt=$("#"+sss+"i").val(); //テキスト内容 var uuu=sss.match(/txt(\d{2,4})/); //作品番号 //document.getElementById(sss).value=uuu[1]; $.ajax({ url: "http://tarotools.net/allanime/submit.php" ,type: "post" ,data: { 'val1' : uuu[1], 'val2' : ttt, 'val3' : zi } ,success: function(data) { document.getElementById("com"+uuu[1]).innerHTML="
iconkakko1"+ttt+"iconkakko2
"; document.getElementById(sss+"i").value="書き込み完了φ(..)"; document.getElementById(sss).style.display="none"; } ,error: function(XMLHttpRequest, textStatus, errorThrown){ document.getElementById("com"+uuu[1]).innerHTML='エラー…もう一度お試し下さい'; } }); }); $(".kininaru").click(function(){ var xxx=$(this).attr("id"); //ボタンID var yyy=xxx.match(/(\D{4})(\d{2,4})/); //作品番号 //alert('現在メンテナンス中です'+yyy[2]+'、'+yyy[1]+'…'); //クッキー確認 var cookies = document.cookie.split('; '); for(var i = 0; i < cookies.length; i++){ var c = cookies[i].split('='); if(c[0] == xxx){ var cc = 'dame';} } if(cc == 'dame'){ document.getElementById(xxx).innerHTML='既に投票済み'; }else{ $.ajax({ url: "http://tarotools.net/allanime/submitbtn.php" ,type: "post" ,data: { 'val1' : yyy[2], 'val2' : yyy[1] } ,success: function(data) { document.getElementById(xxx).innerHTML='次回更新時に反映'; var date = new Date(); date.setDate( date.getDate() + 1 ); document.cookie=xxx+'=10; expires='+date.toGMTString(); } ,error: function(XMLHttpRequest, textStatus, errorThrown){ document.getElementById("com"+uuu[1]).innerHTML='エラー…'; } }); } }); });