타이머(시계) 스크립트 질문인데요. 정보
타이머(시계) 스크립트 질문인데요.본문
<script>
var clientms=new Date();
var runTime = new Date();
function runClock(){
var clientnow=new Date();
runTime.setTime(runTime.getTime()+(clientnow.getTime()-clientms.getTime()));
clientms.setTime(clientnow.getTime());
if (!document.layers && !document.all) return;
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
if (minutes <= 9){
minutes = "0" + minutes;
}
if (seconds <= 9){
seconds = "0" + seconds;
}
// 타이머에 보여질 내용들
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + "</b>";
// 레이어에 타이머를 써넣습니다
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("runClock()", 999);
}
runClock();
</script>
현재 시각을 초단위로 보여주는 시계인데
스톱워치 식으로 00:00:00부터 시작됐으면 좋겠거든요.
꼭 좀 부탁드립니다~
var clientms=new Date();
var runTime = new Date();
function runClock(){
var clientnow=new Date();
runTime.setTime(runTime.getTime()+(clientnow.getTime()-clientms.getTime()));
clientms.setTime(clientnow.getTime());
if (!document.layers && !document.all) return;
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
if (minutes <= 9){
minutes = "0" + minutes;
}
if (seconds <= 9){
seconds = "0" + seconds;
}
// 타이머에 보여질 내용들
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + "</b>";
// 레이어에 타이머를 써넣습니다
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("runClock()", 999);
}
runClock();
</script>
현재 시각을 초단위로 보여주는 시계인데
스톱워치 식으로 00:00:00부터 시작됐으면 좋겠거든요.
꼭 좀 부탁드립니다~
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '258954' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php