300 ){$('#BackTop').fadeIn(222);} else {$('#BackTop').stop().fadeOut(222);}}).scroll();});$(function(){$(window).scroll(function() {if ( $(this).scrollTop() > 300 ){$('#MenuFollw').fadeIn(222);} else {$('#MenuFollw').stop().fadeOut(222);}}).scroll();});$(document).ready(function(){$returntrue=cartnumber();setInterval(function(){cartnumber();}, 600000);function cartnumber(){$.ajax({url: '/checktrace.php',type: 'POST',data: { id: '1'},success: function(response) {responsearray=response.split("_");followicon=responsearray[0];bookcaseicon=responsearray[1];gbookicon=responsearray[2];tracemsg=responsearray[3];if (followicon == 1) {$('#followicons').html(tracemsg);}if (gbookicon == 1) {$('#gbookicons').html(tracemsg);}if (bookcaseicon == 1) {$('#bookcaseicons').html(tracemsg);}if ((followicon == 1) || (gbookicon == 1) || (bookcaseicon == 1)) {$('#menubutton').html(tracemsg);}},error: function() {}})} return true; });function spapergbook(papergbookmode,papergbookpage) {var result;var papergbookmode;var papergbookpage;document.getElementById('showpapergbook').innerHTML=' 加載中...';$.ajax({url: '/papergbooklist.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,papergbookmode: papergbookmode ,papergbookpage: papergbookpage},error: function (xhr) {result = false;},success: function (papergbookresp) {$('#showpapergbook').html(papergbookresp);$('#papergbookmode').value=papergbookmode;//result = true;}});document.getElementById('papergbookmode').value=papergbookmode;//return result;}function spapergbookmesgid(mesgid) {//var result;var mesgid;document.getElementById('showpapergbook').innerHTML=' 加載中...';$.ajax({url: '/papergbooklist.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,mesgid: mesgid},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#showpapergbook').html(papergbookresp);//result = true;}});//return result;}function giftcantsel() {alert('海棠幣不足,請更換其他禮物,謝謝您');}function giftsel(giftid,giftmoney,gifturl,giftname) {var giftid;var giftmoney;var gifturl;var giftname;if (( !isNaN( giftid)) && (giftid != '0')){document.getElementById('papergbookgiftidtxt').value=giftid;document.getElementById('papergbookgiftidsel').innerHTML=' ' + giftname + ' ' + giftmoney + '海棠幣';}else {document.getElementById('papergbookgiftidtxt').value='0';document.getElementById('papergbookgiftidsel').innerHTML='尚未選擇禮物';}}function papergbookgiftsel(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('papergbookgiftidsel').innerHTML=' 加載禮物中...';$.ajax({url: '/papergbookgiftsel.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#papergbookgiftidsel').html(papergbookresp);//$('#papergbookmode').value=papergbookmode;//result = true;}});//return result;}function sendpostpapergbook(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('postrepapergbook'+repapergbookid).innerHTML=' 加載中...';var repostmsgtxt = document.getElementById('repostmsgtxt'+repapergbookid).value;var postmode = document.getElementById('postmodesavepost'+repapergbookid).value;var giftid= document.getElementById('papergbookgiftidtxt').value;if (repostmsgtxt == '') {document.getElementById('postrepapergbook'+repapergbookid).innerHTML='留言失敗,請輸入留言內容';return false;}$.ajax({url: '/papergbookresave.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage,repostmsgtxt: repostmsgtxt,postmode: postmode,giftid: giftid},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#repapergbook'+repapergbookid).html(papergbookresp);//$('#papergbookmode').value=papergbookmode;//result = true;}});//return result;}function closepostpapergbook(repapergbookid) {var ebookid;document.getElementById('repapergbook'+repapergbookid).innerHTML='';}function repapergbookbox(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('repapergbook'+repapergbookid).innerHTML=' 加載中...';$.ajax({url: '/papergbookre.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#repapergbook'+repapergbookid).html(papergbookresp);}});//return result;}function gospapergbookpage(runmode) {var runmode;var nowmesgid= document.getElementById('nowmesgid').value;var papergbookmode= document.getElementById('papergbookmode').value;var papergbookpage = document.getElementById('gotopapergbookpage').value;var papergbookpagecount = parseInt(document.getElementById('papergbookpagecount').value);if ((nowmesgid != '') && (nowmesgid != '0')) {spapergbookmesgid('');}else {if (runmode == 'downpage') {if (papergbookpage >= papergbookpagecount) {papergbookpage=papergbookpagecount;}else {papergbookpage++;}}else if (runmode == 'uppage') {if (papergbookpage = papergbookpagecount) {papergbookpage=papergbookpagecount;}if (papergbookpage "> 300 ){$('#BackTop').fadeIn(222);} else {$('#BackTop').stop().fadeOut(222);}}).scroll();});$(function(){$(window).scroll(function() {if ( $(this).scrollTop() > 300 ){$('#MenuFollw').fadeIn(222);} else {$('#MenuFollw').stop().fadeOut(222);}}).scroll();});$(document).ready(function(){$returntrue=cartnumber();setInterval(function(){cartnumber();}, 600000);function cartnumber(){$.ajax({url: '/checktrace.php',type: 'POST',data: { id: '1'},success: function(response) {responsearray=response.split("_");followicon=responsearray[0];bookcaseicon=responsearray[1];gbookicon=responsearray[2];tracemsg=responsearray[3];if (followicon == 1) {$('#followicons').html(tracemsg);}if (gbookicon == 1) {$('#gbookicons').html(tracemsg);}if (bookcaseicon == 1) {$('#bookcaseicons').html(tracemsg);}if ((followicon == 1) || (gbookicon == 1) || (bookcaseicon == 1)) {$('#menubutton').html(tracemsg);}},error: function() {}})} return true; });function spapergbook(papergbookmode,papergbookpage) {var result;var papergbookmode;var papergbookpage;document.getElementById('showpapergbook').innerHTML=' 加載中...';$.ajax({url: '/papergbooklist.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,papergbookmode: papergbookmode ,papergbookpage: papergbookpage},error: function (xhr) {result = false;},success: function (papergbookresp) {$('#showpapergbook').html(papergbookresp);$('#papergbookmode').value=papergbookmode;//result = true;}});document.getElementById('papergbookmode').value=papergbookmode;//return result;}function spapergbookmesgid(mesgid) {//var result;var mesgid;document.getElementById('showpapergbook').innerHTML=' 加載中...';$.ajax({url: '/papergbooklist.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,mesgid: mesgid},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#showpapergbook').html(papergbookresp);//result = true;}});//return result;}function giftcantsel() {alert('海棠幣不足,請更換其他禮物,謝謝您');}function giftsel(giftid,giftmoney,gifturl,giftname) {var giftid;var giftmoney;var gifturl;var giftname;if (( !isNaN( giftid)) && (giftid != '0')){document.getElementById('papergbookgiftidtxt').value=giftid;document.getElementById('papergbookgiftidsel').innerHTML=' ' + giftname + ' ' + giftmoney + '海棠幣';}else {document.getElementById('papergbookgiftidtxt').value='0';document.getElementById('papergbookgiftidsel').innerHTML='尚未選擇禮物';}}function papergbookgiftsel(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('papergbookgiftidsel').innerHTML=' 加載禮物中...';$.ajax({url: '/papergbookgiftsel.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#papergbookgiftidsel').html(papergbookresp);//$('#papergbookmode').value=papergbookmode;//result = true;}});//return result;}function sendpostpapergbook(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('postrepapergbook'+repapergbookid).innerHTML=' 加載中...';var repostmsgtxt = document.getElementById('repostmsgtxt'+repapergbookid).value;var postmode = document.getElementById('postmodesavepost'+repapergbookid).value;var giftid= document.getElementById('papergbookgiftidtxt').value;if (repostmsgtxt == '') {document.getElementById('postrepapergbook'+repapergbookid).innerHTML='留言失敗,請輸入留言內容';return false;}$.ajax({url: '/papergbookresave.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage,repostmsgtxt: repostmsgtxt,postmode: postmode,giftid: giftid},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#repapergbook'+repapergbookid).html(papergbookresp);//$('#papergbookmode').value=papergbookmode;//result = true;}});//return result;}function closepostpapergbook(repapergbookid) {var ebookid;document.getElementById('repapergbook'+repapergbookid).innerHTML='';}function repapergbookbox(repapergbookid,papergbookpage) {//var result;var repapergbookid;var papergbookpage;document.getElementById('repapergbook'+repapergbookid).innerHTML=' 加載中...';$.ajax({url: '/papergbookre.php',type: 'POST',data: { paperid: '' ,bookwritercode: 'EB20230212124319692641' ,bookid: '171312' ,repapergbookid: repapergbookid,papergbookpage: papergbookpage},error: function (xhr) {//result = false;},success: function (papergbookresp) {$('#repapergbook'+repapergbookid).html(papergbookresp);}});//return result;}function gospapergbookpage(runmode) {var runmode;var nowmesgid= document.getElementById('nowmesgid').value;var papergbookmode= document.getElementById('papergbookmode').value;var papergbookpage = document.getElementById('gotopapergbookpage').value;var papergbookpagecount = parseInt(document.getElementById('papergbookpagecount').value);if ((nowmesgid != '') && (nowmesgid != '0')) {spapergbookmesgid('');}else {if (runmode == 'downpage') {if (papergbookpage >= papergbookpagecount) {papergbookpage=papergbookpagecount;}else {papergbookpage++;}}else if (runmode == 'uppage') {if (papergbookpage = papergbookpagecount) {papergbookpage=papergbookpagecount;}if (papergbookpage ">