diff --git a/public/home/search.js b/public/home/search.js index 9f823c73d..ac7e201b2 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -692,10 +692,10 @@ function page(current){ function goPage(){ - var inputpage = document.getElementById("inputpage") + var inputpage = document.getElementById("inputpage_div") var left = inputpage.offsetLeft; var top = inputpage.offsetTop; - var goNum = inputpage.value; + var goNum = $('#inputpage').val(); if (goNum<=0){ showTip("请输入大于0的数值。","warning",left+5,top); } @@ -710,8 +710,8 @@ function page(current){ function showTip(tip, type,left,top) { var $tip = $('#tipmsg'); var tipmsg = document.getElementById("tipmsg") - console.log("left:" + left + ";top:" + top + ";position:relative") - tipmsg.style = "left:" + left + ";top:" + top + ";position:relative"; + console.log("top:" + top + "px;left:" + left + "px;position:relative") + tipmsg.style = "top:" + top + "px;left:" + left + "px;position:relative" $tip.stop(true).prop('class', 'alert alert-' + type).html(tip).fadeIn(500).delay(2000).fadeOut(500); } @@ -753,7 +753,7 @@ function page(current){ html += ""; } - html +="