홈페이지에 항상있는 오른쪽 퀵 정보
JavaScript 홈페이지에 항상있는 오른쪽 퀵본문
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<SCRIPT LANGUAGE="JavaScript">
<!--
function center(){
if(document.body.clientWidth>930){
document.all.korea.style.left=document.body.clientWidth/2+200;
}
}
center();
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<SCRIPT LANGUAGE="JavaScript">
<!--
function center(){
if(document.body.clientWidth>930){
document.all.korea.style.left=document.body.clientWidth/2+200;
}
}
center();
//-->
</SCRIPT>
</head>
</SCRIPT>
</head>
<body onload="alert(document.body.clientWidth);" onresize="center()">
<table id="korea" style="position:absolute; width:69px; z-index:1; left: 923px; top:140px;">
<tr>
<td>퀵</td>
</tr>
</table>
</body>
</html>
<table id="korea" style="position:absolute; width:69px; z-index:1; left: 923px; top:140px;">
<tr>
<td>퀵</td>
</tr>
</table>
</body>
</html>
추천
2
2
댓글 1개
이게 필요하긴 한디 어떻게 사용하는지,,, 나원 ㅠㅠ