'2008/02'에 해당되는 글 999건

  1. 2008.02.02 html문서 없이 이미지 새창띄우기
  2. 2008.02.02 접속 할 때마다 램덤으로 다른 이미지 띄우기
  3. 2008.02.02 이미지 갤러리 만들기 <2>
  4. 2008.02.02 이미지 갤러리 만들기 <1> - 작은 그림을 클릭해보면 왼쪽으로 원본 이미지가 뜬다.
  5. 2008.02.02 이미지 슬라이드
  6. 2008.02.02 이미지 슬라이드
  7. 2008.02.02 이미지 슬라이드
  8. 2008.02.02 은은하게 변하는 롤오버 이미지
  9. 2008.02.01 같은 글자 반복해서 나타내기
  10. 2008.02.01 마우스 오버시 툴팁 - 풍선 도움말
  11. 2008.02.01 E-mail :: 이메일 추출기에 걸리지 않게 E-mail 링크하기 2
  12. 2008.02.01 테이블 순서 바꾸기
  13. 2008.02.01 무단링크 방지
  14. 2008.02.01 iframe 리로드 시키기
  15. 2008.02.01 날아 다니는 이미지
  16. 2008.02.01 레이어 셀렉트 박스 최상위에...
  17. 2008.02.01 콤보박스(셀렉트박스다운) 메뉴 미 선택시 컬러 바뀌게...
  18. 2008.02.01 자바 스크립트로 md4, md5, hex 변환하기
  19. 2008.02.01 새창 가운데 띄우기
  20. 2008.02.01 지정 시간 후 재생 시작되는 스크립트
  21. 2008.02.01 포커스 하일라이트 주기
  22. 2008.02.01 페이지 확대 / 페이지 축소
  23. 2008.02.01 한글만 되게 하기
  24. 2008.02.01 방문자 OS보여주기
  25. 2008.02.01 대문이나 기타 문서에 사용하면...;;
  26. 2008.02.01 로봇의 이메일 추출을 방지하는 자바소스
  27. 2008.02.01 마우스의 휠 버튼 사용 금지 소스
  28. 2008.02.01 크롬리스 비슷한 윈도창 띄우기
  29. 2008.02.01 링크 점선 테두리 없애는 스크립트
  30. 2008.02.01 마우스 좌표 값 하단 상태바에 표시
<html>
<head>

<script language="JavaScript">
<!--
var win1Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15))
}

function winClose(){
if(win1Open != null) win1Open.close()
}

function doNothing(){}
//-->
</script>

<script language="JavaScript1.1">
<!--

function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>- 갤러리 -</title></head>"
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=닫기></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
}
if(winHandle != null) winHandle.focus()
return winHandle
}
//-->
</script>

</head>
<body>
<a href="javascript:doNothing()" onClick="win1Open=displayImage('img/img1.gif', 'popWin1', '242', '297')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="img/img1.gif" border="1" width="87" height="107"></a>

<a href="javascript:doNothing()" onClick="win1Open=displayImage('img/img2.gif', 'popWin1', '242', '297')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="img/img2.gif" border="1" width="87" height="107"></a>

<a href="javascript:doNothing()" onClick="win1Open=displayImage('img/img3.gif', 'popWin1', '242', '297')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="img/img3.gif" border="1" width="87" height="107"></a>

<a href="javascript:doNothing()" onClick="win1Open=displayImage('img/img4.gif', 'popWin1', '242', '297')" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="img/img4.gif" border="1" width="87" height="107"></a>

</body>
</html>




<head>와 </haed>사이에 위와 같이 소스를 넣는다
- 안젤리나 졸리 - 라고 써있는 부분이 새창 타이틀바에 써질 부분이다 수정하세여 ^^

<body>와 </body>사이에 그림이 보여질곳에 아래 소스를 넣는다

<a href="javascript:doNothing()" onClick="win1Open=displayImage('이미지주소", 'popWin1', '원본이미지 가로크기', '원본이미지 세로크기")" onMouseOver="window.status='Click to display picture'; return true;" onMouseOut="window.status=''"><img src="이미지주소" border="테두리두께" width="가로크기" height="세로크기"></a>
Posted by 알 수 없는 사용자
,
<img src="이미지주소" name="ranimage" border="0">

<script language="JavaScript1.1">
<!--
document.ranimage.src="이미지가 들어있는 폴더"+Math.round(Math.random()*3+.4)+".gif";
// -->
</script>




<body>와 </body> 사이에 위의 소스를 넣는다
빨강색 부분만 수정한다.
이미지 주소 는 보여질 이미지들 중에 아무 주소나 넣는다
이미지 폴더 - 이미지가 들어잇는 폴더<이미지는 모두 같은 폴더 안에 넣어야 한다
3+.4 - 3은 보여질 이미지 갯수에서 1을 뺀 숫자이다 지금 4개의 이미지를 사용했으니까 4-1=3
4 - 사용된 이미지 갯수

사용할 이미지는 1.gif, 2.gif, 3.gif... 이런식으로 1,2,3,4 이런 이름으로 만들어서 사용해야 한다.
Posted by 알 수 없는 사용자
,
그림이 새창으로 뜨면 위에 하얀 부분을 클릭한 채로 드래그 하면 움직임
<html>

<head>

<title>이미지 갤러리 만들기 <2></title>

<script language="JavaScript">
<!--
var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function enlarge(which,e){

if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (crossobj.style.visibility=="hidden"){
crossobj.style.left=ns6? pageXOffset+e.clientX : document.body.scrollLeft+event.clientX
crossobj.style.top=ns6? pageYOffset+e.clientY : document.body.scrollTop+event.clientY

crossobj.innerHTML='<div id=drag align=right style=background:#FFFFFF><img onClick=closepreview() src=img/close.gif style=cursor:hand></div><img src="'+which+'">'

crossobj.style.visibility="visible"
}
else
crossobj.style.visibility="hidden"
return false
}

else if (document.layers){
if (document.showimage.visibility=="hide"){
document.showimage.document.write('<a href="#" onMouseover="drag_dropns(showimage)"><img src="'+which+'" border=0></a>')
document.showimage.document.close()
document.showimage.left=e.x
document.showimage.top=e.y
document.showimage.visibility="show"
}
else
document.showimage.visibility="hide"
return false
}

else
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

//-->
</script>

<script language="JavaScript1.2">
<!--

var nsx,nsy,nstemp

function drag_dropns(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
function stopns(){

temp.releaseEvents(Event.MOUSEMOVE)
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="drag"||ns6&&e.target.id=="drag"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")
//-->
</script>

</head>

<body>

<table align="center" cellpadding="0" cellspacing="0" width="520"><tr>

<td width="130" align="center" valign="middle">    

<span onClick="return enlarge('img/img1.gif',event)" style="cursor:hand"><img src="img/img1.gif" width="120" height="146"></span>        

<td width="130" align="center" valign="middle">          

<span onClick="return enlarge('img/img2.gif',event)" style="cursor:hand"><img src="img/img2.gif" width="120" height="146"></span>        

<td width="130" align="center" valign="middle">          

<span onClick="return enlarge('img/img3.gif',event)" style="cursor:hand"><img src="img/img3.gif" width="120" height="146"></span>        

<td width="130" align="center" valign="middle">          

<span onClick="return enlarge('img/img4.gif',event)" style="cursor:hand"><img src="img/img4.gif" width="120" height="146"></span>

</tr></table>

<div id="showimage" style="position:absolute; visibility:hidden; border:1 solid #000000"></div>
</body>
</html>

─ 설명 ─

<head>와 </head>사이에
왼쪽 소스보기에 자바스크립트 소스를 집어 넣는다.

자바스크립트 소스 중에 초록색르로 된

crossobj.innerHTML='<div id=drag align=right style=background:#FFFFFF><img onClick=closepreview() src=img/close.gif style=cursor:hand></div><img src="'+which+'">

부분에서
align=right은 닫기 버튼을 정열을 시키는 부분
style=background:#FFFFFF 은 닫기 보튼 왼쪽에 있는
부분으로 드래그하면 이미지가 움직일 수 있도록 하는 부분이다
src=img/close.gif  닫기 버튼 이미지<body>와 </body>사이에 이미지가 들어갈 부분에
아래의 소스를 넣는다

<span onClick="return enlarge('img/img1.gif',event)" style="cursor:hand"><img src="이미지주소" width="가로크기" height="세로크기"></span>



<body>와 </body>사이에 아무곳에나
아래의 소스를 넣는다.

<div id="showimage" style="position:absolute; visibility:hidden; border:1 solid #000000"></div>

border:1 solid #000000" - 원본이미지를 보여줄 때 테두리 두께와 색
Posted by 알 수 없는 사용자
,
<html>

<head>

<title>이미지 갤러리 만들기<1></title>

<script language="JavaScript">

<!--

function transimg(place) {

if (place==1) dare.src="img/img1.gif";

if (place==2) dare.src="img/img2.gif";

if (place==3) dare.src="img/img3.gif";

if (place==4) dare.src="img/img4.gif";

}

// -->

</script>

</head>

<body>

<table align="center" cellpadding="0" cellspacing="0" width="500" height="302">

<tr>

<td width="126" height="151" align="center" valign="middle">

<span style="cursor:hand" onClick="transimg(1)"><img src="img/img1.gif" width="120" height="146"></span>

</td>

<td width="126" height="151" align="center" valign="middle">

<span style="cursor:hand" onClick="transimg(2)"><img src="img/img2.gif" width="120" height="146"></span>

</td>

<td width="247" height="302" align="center" valign="middle" rowspan="2">

<img src="img/img1.gif" name="dare" border=1>

</td></tr><tr>

<td width="126" height="151" align="center" valign="middle">

<span style="cursor:hand" onClick="transimg(3)"><img src="img/img3.gif" width="120" height="146"></span>

</td>

<td width="126" height="151" align="center" valign="middle">

<span style="cursor:hand" onClick="transimg(4)"><img src="img/img4.gif" width="120" height="146"></span>

</td></tr></table>

</body>

</html>
Posted by 알 수 없는 사용자
,
<html>
<head>
<title>슬라이딩 이미지</title>

<script language="JavaScript1.1">
<!--

var img1 = new Image();
img1.src = "img/img1.gif";

var img2 = new Image();
img2.src = "img/img2.gif";

var img3 = new Image();
img3.src = "img/img3.gif";

var img4 = new Image();
img3.src = "img/img4.gif";

//-->
</script>


</head>

<body onLoad="init();">



<img src="img/img1.gif" name="blendtrjs" border="0" style="filter: blendTrans(duration=2)">



<script language="JavaScript">
<!--
var maxLoops = 3;
var bInterval = 2;
var count = 2;
function init() {
blendtrjs.filters.blendTrans.apply();
document.images.blendtrjs.src = eval("img"+count+".src");
blendtrjs.filters.blendTrans.play();
if (count < maxLoops) {
count++;
}
else {
count = 1;
}
setTimeout("init()", bInterval*700+2000);
}

//-->
</script>

</body>

</html>




<head>와 </head>사이에 아래의 소스를 넣는다

<script language="JavaScript1.1">
<!--

var img1 = new Image();
img1.src = "img/img1.gif";

var img2 = new Image();
img2.src = "img/img2.gif";

var img3 = new Image();
img3.src = "img/img3.gif";

var img4 = new Image();
img3.src = "img/img4.gif";

//-->
</script>

위에 소스에서 초록색으로 된 부분을 수정해 준다 이미지 주소를 넣어야겠죠? ^^
이미지를 더 많이 넣고 싶으면 img3.src 이부분에 숫자를 늘려주면 되어 ^^


<body>와 <.body>사이에 아무곳에나 아래의 소스를 넣는다
<script language="JavaScript">
<!--
var maxLoops = 3;
var bInterval = 2;
var count = 2;
function init() {
blendtrjs.filters.blendTrans.apply();
document.images.blendtrjs.src = eval("img"+count+".src");
blendtrjs.filters.blendTrans.play();
if (count < maxLoops) {
count++;
}
else {
count = 1;
}
setTimeout("init()", bInterval*700+2000);
}

//-->
</script>


<body>와 </body> 사이에 이미지가 보여 질곳에 아래의 소스를 넣는다
<img src="이미지주소" name="blendtrjs" border="0" style="filter: blendTrans(duration=2)">

duration=2 에서 2는 트랜지션의 변환속도 (낮을수록 빠름, 1 미만의 소수도 가능)
Posted by 알 수 없는 사용자
,
<html>
<head>
<style type="text/css">
<!--
.spanstyle {position:absolute;left:-5000px}
-->
</style>
<script language="JavaScript">
<!--

var imgwidth=242

var imgheight=297

var imgurl=new Array()
imgurl[0]="img/img1.gif"
imgurl[1]="img/img2.gif"
imgurl[2]="img/img3.gif"
imgurl[3]="img/img4.gif"

var imgpreload=new Array()
for (i=0;i<=imgurl.length-1;i++) {
imgpreload[i]=new Image()
imgpreload[i].src=imgurl[i]
}

var x_finalpos=250

var y_finalpos=50

var x_slices=7

var y_slices=10

var pause=1

var screenwidth=100
var screenheight=100

var x_step=new Array()
var y_step=new Array()
var x_randompos=0
var y_randompos=0
var i_loop=0
var max_loop=20
var i_image=0
var width_slice=Math.floor(imgwidth/x_slices)
var height_slice=Math.floor(imgheight/y_slices)
var cliptop=0
var clipbottom=height_slice
var clipleft=0
var clipright=width_slice
var spancounter=0

function initiate() {
cliptop=0
clipbottom=height_slice
clipleft=0
clipright=width_slice
i_loop=0
spancounter=0
if (document.all) {
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
x_randompos=Math.ceil(screenwidth*Math.random())
y_randompos=Math.ceil(screenheight*Math.random())
thisspan.posLeft=x_randompos
thisspan.posTop=y_randompos
thisspan.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
clipleft+=width_slice
clipright+=width_slice
spancounter++
}
clipleft=0
clipright=width_slice
cliptop+=height_slice
clipbottom+=height_slice
}
}
explode_IE()
}

function changeimage() {
spancounter=0
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
thisspan.posLeft=-5000
thisspan.posTop=-5000
spancounter++
}
}
spancounter=0
if (i_image>imgurl.length-1) {i_image=0}
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisinnerspan=eval("span"+spancounter)
thisinnerspan.innerHTML="<img src='"+imgurl[i_image]+"'>"
spancounter++
}
}
i_image++
initiate()
}


function explode_IE() {
spancounter=0
if (i_loop<=max_loop-1) {
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
x_step[spancounter]=(x_finalpos-thisspan.posLeft)/(max_loop-i_loop)
y_step[spancounter]=(y_finalpos-thisspan.posTop)/(max_loop-i_loop)
thisspan.posLeft+=x_step[spancounter]
thisspan.posTop+=y_step[spancounter]
spancounter++
}
}
i_loop++
var timer=setTimeout("explode_IE()",pause)
}
else {
spancounter=0
clearTimeout(timer)
var timer=setTimeout("changeimage()",2000)
}
}

//-->
</script>

</head>
<body onLoad="changeimage();">

<script language="JavaScript">
<!--
if (document.all) {
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
document.write("<span id='span"+spancounter+"' class='spanstyle'></span>")
spancounter++
}
}
spancounter=0
}
//-->
</script>

</body></html>

- 설명 -

위의 소스보기에서 처럼 빨간색으로 된 부분을 넣고 초록색으로 된 부분을 수정한다.

var imgwidth=242

var imgheight=297

이미지의 가로 크가와 세로 크기이다

imgurl[0]="img/img1.gif"
imgurl[1]="img/img2.gif"
imgurl[2]="img/img3.gif"
imgurl[3]="img/img4.gif"

이미지 주소 여러장을 쓸려면 번호를 늘려가며 계속 추가해준다

var x_finalpos=250

var y_finalpos=50

그림이 보여질 곳의 X좌표, Y좌표 그림이 보여질 위치를 지정해 주는거다

var x_slices=7

var y_slices=10

그림이 잘려질 개수 여기서는 가로로 7개 세로로 10개가 잘려졌다

var pause=1

그림이 모이는 속도 숫자가 커질수록 느려진다

var screenwidth=100
var screenheight=100

그림이 모이는 소스가 적용되는 범위 조각난 그림이 여기서는 가로 100 세로 100 범위에서 출발하여 모이게 된다.
Posted by 알 수 없는 사용자
,
<html>

<head>

<title>─이미지슬라이드<1>─</title>

<script type="text/javascript">

<!-- Original: Mike McGrath (mike_mcgrath@lineone.net) -->

<!-- Web Site: http://website.lineone.net/~mike_mcgrath -->

<!--

var img=new Array();

img[0]=new Image(); img[0].src="http://oxtag.com/html/img/banner3.gif";

img[1]=new Image(); img[1].src="http://oxtag.com/html/img/banner4.gif";

img[2]=new Image(); img[2].src="http://oxtag.com/html/img/banner/jjin_tagpia.gif";



var interval=1500;

var n=0;

var imgs = new Array("http://oxtag.com/html/img/banner3.gif","http://oxtag.com/html/img/banner4.gif","http://oxtag.com/html/img/banner/jjin_tagpia.gif");

function rotate()

{

if(navigator.appName=="Netscape" && document.getElementById)

{

document.getElementById("slide").src=imgs[n];

}

else document.images.slide.src=imgs[n];

(n==(imgs.length-1))?n=0:n++;

setTimeout("rotate()",interval);

}

// -->

</script>



</head>

<body onload="rotate();">

<img src="http://oxtag.com/html/img/banner3.gif" id="slide">

</body>

</html>


─ 설명 ─

<head>와 </head>사이에 왼쪽 쏘스에 있는 자바 스크립트 소스를 넣는다

img[0]=new Image(); img[0].src="img/img2.gif";

img[1]=new Image(); img[1].src="img/img3.gif";

img[2]=new Image(); img[2].src="img/img4.gif";

에는 두 번째부터 보여질 이미지를 넣는다
이미지를 더 많이 넣고 싶으면 img[2] 부분에 숫자를 늘려주면서 추가하면 되고 이미지를 적게 사용하려면 지우면 된다 ^^

var interval=1500;
그림에 멈춰있는 시간
1000=1초

var imgs = new Array("img/img1.gif","img/img2.gif","img/img3.gif","img/img4.gif");보여질 이미지를 순서대로 써준다.

<body onload="rotate();">
바디 안에onload="rotate();"소스를 넣는다

<body>와 </body>사이에 아래의 소스를 넣는다.

<img src="이미지주소" id="slide">
가장 먼저 보여질 그림의 경로
Posted by 알 수 없는 사용자
,
이미지 위에 마우스 커서를 올려보세여
- <head>와 </head> 사이에 넣어주세여 -  
<script language=javascript>
function bt(id,after)
{
eval(id+'.filters.blendTrans.stop();');
eval(id+'.filters.blendTrans.Apply();');
eval(id+'.src="'+after+'";');
eval(id+'.filters.blendTrans.Play();');
}
</script>

- <body>와 </body>사이에 넣어주세여 -

<a href=링크주소 onfocus='this.blur()' onMouseOver='bt("menu1","마우스오버 전 보여질 이미지")' onMouseOut='bt("마우스오버시 보여질 이미지주소")'><img
ID=menu1 src="마우스오버시 보여질 이미지주소" border=0 "filter:blendTrans(duration=0.5)"></a>
Posted by 알 수 없는 사용자
,

- 같은 글자 반복해서 나타내기 -
- 소스 - 

<script language="JavaScript">
<!--
document.write("<font style='font-size:11px;font-family:맑은 고딕, Dotum;'>");
var x;
for(x=1; x<=4000; x++) {
 document.write("사랑해 ");
}
document.write("</font>");
//-->
</script> 

4000 - 사랑해란 글자를 4000번 나타내게 한다 (원하는 만큼 나타낼 숫자를 쓴다)
사랑해 - 반복되어 보여질 글자

Posted by 알 수 없는 사용자
,
<script>
/* 마우스 이동 이벤트 등록*/
document.onmousemove = mouse_move
/**************************/

//사용 예시 : onMouseOver=\"visible_tooltip('하하히하하');\" onMouseOut=\"hidden_tooltip();\"

var mouse_x;
var mouse_y;
var tooltip_visible_flag;
var tooltip_text;

document.write("<div id=tooltip_layer style='position:absolute; visibility: hidden; left:0px; top:0px; z-index:1'>");
document.write("<table border=0 cellspacing=0 cellpadding=0 align=center style='border:1px #999999 solid' bgcolor=FFFFFF>");
document.write("<tr><td colspan=3></td></tr>");
document.write("<tr height=20><td width=10></td><td bgcolor=FFFFFF><font size=2 id=tooltip_text></font></td><td width=10></td></tr>");
document.write("<tr><td colspan=3></td></tr>");
document.write("</table>");
document.write("</div>");


/*
document.write("<table border=0 cellspacing=0 cellpadding=0 align=center>");
document.write("<tr height=9><td valign=bottom><img src=http://inc-image.muz.co.kr/tool_tip/left_top.gif></td><td background=http://inc-image.muz.co.kr/tool_tip/center_top.gif></td><td width=14 background=http://inc-image.muz.co.kr/tool_tip/center_top.gif></td><td valign=bottom><img src=http://inc-image.muz.co.kr/tool_tip/right_top.gif></td></tr>");
document.write("<tr height=2><td background=http://inc-image.muz.co.kr/tool_tip/left_left.gif></td><td bgcolor=FFFFFF></td><td width=14 bgcolor=FFFFFF></td><td background=http://inc-image.muz.co.kr/tool_tip/right_right.gif></td></tr>");
document.write("<tr height=20><td background=http://inc-image.muz.co.kr/tool_tip/left_left.gif></td><td bgcolor=FFFFFF><font size=2 id=tooltip_text></font></td><td width=14 bgcolor=FFFFFF></td><td background=http://inc-image.muz.co.kr/tool_tip/right_right.gif></td></tr>");
document.write("<tr height=9><td><img src=http://inc-image.muz.co.kr/tool_tip/left_bottom.gif></td><td background=http://inc-image.muz.co.kr/tool_tip/center_bottom.gif></td><td width=14 background=http://inc-image.muz.co.kr/tool_tip/center_bottom.gif></td><td valign=top><img src=http://inc-image.muz.co.kr/tool_tip/right_bottom.gif></td></tr>");
document.write("</table>");*/


function move_tooltip()
{
        document.all.tooltip_layer.style.left = mouse_x-14;
        document.all.tooltip_layer.style.top = mouse_y-35;        
}

function visible_tooltip(str,mode)
{
        if(mode=='chart')        return;
       
        move_tooltip();
               
        document.all.tooltip_text.innerHTML=str;        
        document.all.tooltip_layer.style.visibility='visible';        
       
        tooltip_visible_flag=1;
        tooltip_text=str;
}

function hidden_tooltip()
{
        document.all.tooltip_layer.style.visibility='hidden';
       
        tooltip_visible_flag=0;
}

function mouse_move(E)
{        
        mouse_x=event.x+document.body.scrollLeft;
        mouse_y=event.y+document.body.scrollTop;        
        //if(tooltip_visible_flag) move_tooltip();
}
</script>


<img src=http://www.muz.co.kr/inc/images/music_button07_30s.gif width=18 height=18 border=0 onMouseOver="visible_tooltip('30초 듣기');" onMouseOut="hidden_tooltip();">
Posted by 알 수 없는 사용자
,
스팸 메일이 오게 되는 경우는 대부분
웹사이트에 적혀있는 이메일 주소를 추출하는 경우가 대부분이며..
현재 판매되고 있는 대부분의 로봇 프로그램이 사용하는 방식입니다.

그러나 다음과 같은 방법을 이용하면 기존과 똑같이 이메일 링크를 걸 수 있으나,
로봇은 해당 이메일을 알 수 없게 됩니다.

스팸 방지 연합회에서 권고하는 TIP입니다.

<a href=mailto:abc@domain.com>이메일을 보내주세요</a> 와 같은 형태로
태그가 들어가 있는 경우를 자동으로 긁어 옵니다.

이제 스패머들로부터 해방 되시려면 아래의 방법으로 이메일 주소를 링크 시켜 보세요.


<!-- 메모장 등으로 아래의 방법으로 이메일 주소가 들어갈 곳에 붙여 넣으세요 -->
<SCRIPT LANGUAGE="Javascript">
<!--
mailname="webmaster" // 아이디를 입력 합니다. 이메일 주소가 abc@domain.com 인 경우 abc
at="@" // 그냥 둡니다
maildomain="domain.com" // 도메인이름
document.write("<A HREF=`mailto:"+mailname+""+at+""+maildomain+"`>"+mailname+""+at+""+maildomain+"</a>")
//-->
</script>

'인터넷관련' 카테고리의 다른 글

이미지 슬라이드  (0) 2008.02.02
은은하게 변하는 롤오버 이미지  (0) 2008.02.02
같은 글자 반복해서 나타내기  (0) 2008.02.01
마우스 오버시 툴팁 - 풍선 도움말  (0) 2008.02.01
테이블 순서 바꾸기  (0) 2008.02.01
무단링크 방지  (0) 2008.02.01
iframe 리로드 시키기  (0) 2008.02.01
날아 다니는 이미지  (0) 2008.02.01
Posted by 알 수 없는 사용자
,
테이블 줄 순서 바꾸기

에.. 그러니깐

<tr></tr>이 이동 되는거랄까요??


<script>

var prev = null;

function getRowIndexFromId(obj)
{
for (i=0;i<oTable.rows.length;i++) if (oTable.rows[i].id==obj) return i;
}

function selectCell(obj)
{
obj = getRowIndexFromId(obj);
if (prev!=null) oTable.rows[prev].style.backgroundColor = "";
prev = obj;
oTable.rows[prev].style.backgroundColor = "#f7f7f7";
}

function moveCell(direc)
{
var next = prev + direc;
if (next==oTable.rows.length) next = 0;
else if (next==-1) next = oTable.rows.length - 1;
oTable.moveRow(prev,next);
prev = next;
}

</script>

<table width=100 id=oTable border=1>
<tr id=tr_0 onclick="selectCell(this.id)"><td>바나나</td></tr>
<tr id=tr_1 onclick="selectCell(this.id)"><td>사과</td></tr>
<tr id=tr_2 onclick="selectCell(this.id)"><td>딸기</td></tr>
</table>

<a href="javascript:void(0)" onClick="moveCell(-1)">위로</a><br>
<a href="javascript:void(0)" onClick="moveCell(1)">아래로</a>
Posted by 알 수 없는 사용자
,
<SCRIPT LANGUAGE="JavaScript">
var home="http://자신의도메인/copyright.htm"; //이곳이 복귀할 주소 (무단 링크되었을 경우 돌아올  URL)
var link1="http://허락.com"; //링크가 허락된 주소 (링크를 허용할 URL 계속추가가능)
var link2="http://허락하는.co.kr"; //링크가 허락된 주소 (링크를 허용할 URL 계속추가가능)
var link3="http://허락하는2.co.kr"; //링크가 허락된 주소 (링크를 허용할 URL 계속추가가능)

if (document.referrer.indexOf(home)==-1 && document.referrer.indexOf(link1)==-1 && document.referrer.indexOf(link2)==-1 && document.referrer.indexOf(link3)==-1)
{
        if (document.referrer)
        {
                alert("무단링크된 주소로 연결을 시도하였습니다.");
                window.location=home;
        }
        else
        {
        alert("반드시 홈페이지를 통해서 연결되어야 합니다.");
        window.location=home;
        }
}

</script>
Posted by 알 수 없는 사용자
,
iframe 리로드 시키기

<a href='javascript:void(0);' onclick=parent.iframe_name.location.reload()>새로고침 합니다</a><br>

<iframe src='/html/marquee.html' name='iframe_name'></iframe>




















Posted by 알 수 없는 사용자
,

http://oxtag.com/html/ex/ex/ex112/ex1234.html


<script language="JavaScript" SRC="./moveobj.js"> </script>

<script>
<!--

var chip1;
var chip2;
var chip3;
//add or delete more variables, depending on how many images you're using

function pagestart()
{checkbrOK();
 chip1=new Chip("chip1",60,80);
 chip2=new Chip("chip2",60,80);
 chip3=new Chip("chip3",60,80);
 //add or delete more of the above, depending on how many images you're using
 if(brOK)
   { movechip("chip1");
     movechip("chip2");
     movechip("chip3");
     //add or delete more of the above, depending on how many images you're using
   }
}

//-->
</script>

<DIV ID="chip1" STYLE="position:absolute; width:47; height:68;">
<IMG SRC="animal1.gif" BORDER=0>
</DIV>

<DIV ID="chip2" STYLE="position:absolute; width:47; height:68;">
<IMG SRC="animal2.gif" BORDER=0>
</DIV>

<DIV ID="chip3" STYLE="position:absolute; width:47; height:68;">
<IMG SRC="animal3.gif" BORDER=0>
</DIV>


<script>
 pagestart();
</script>

Posted by 알 수 없는 사용자
,
<script language='javascript'>
function test(){
var _obj = document.all.ch.style;
var obj = document.all.pa.style;

if(obj.display == 'none'){
obj.display = '';
_obj.clip = 'rect(0,70,22,50)';
}else{
obj.display = 'none';
_obj.clip = 'rect(0,70,22,0)';
}
}
</script>
<div id='pa' style='position:absolute;width:100px;height:100px;background-color:#333333;left:100px;top:120px;z-index;1;display:none'>
<font color='#ffffff'>레이어 살리기라우</font>
</div>
<div id='ch' style='position:absolute;width:70px;height:22px;background-color:#333333;left:150px;top:150px;'>
<select style='width:70px'>
<option>a</option>
</select>
</div>
<a href='javascript:test()'>이거 어때요?</a>
Posted by 알 수 없는 사용자
,

http://oxtag.com/zboard/zboard.php?id=js&no=439

<form name="qform">
<select name="qsel" onfocus="stop_roll();" onmouseover="stop_roll();" onclick="flag_expand = 'Y';" onblur="flag_expand = 'N'; start_roll();" onmouseout="start_roll();" onchange="eval(this.value); this.blur();">
<option>-선 택-</option>
<option value="window.open('http://www.empas.com/');">엠파스</option>
<option value="window.open('http://www.naver.com/');">네이버</option>
<option value="window.open('http://www.daum.net/');">다음</option>
<option value="alert('My name is Camelot. ^-^ㆀ'); alert('Nice to meet you!');">Who are you?</option>
<option value="document.body.style.background = '#AAAAAA';">배경색 바꾸기</option>
<option value="document.body.style.background = '';">배경색 원래대로</option>
</select>
</form>

<script language="javascript">
<!--
var obj = document.qform.qsel, flag_expand = 'N', cnt = 1, timer;

function start_roll(){
var color_=new Array('#ff9900','#33CC00');
if(flag_expand == 'N'){
if(cnt >= obj.length) cnt = 1;
obj.options[cnt].selected = true;
obj.options[cnt].style.color= cnt% 2 == 0 ? color_[0] : color_[1];
cnt++;
timer=setTimeout('start_roll()', 1000);
}
}

function stop_roll(){
obj.options[0].selected = true;
clearTimeout(timer);
}

start_roll();
//-->
</script>


Posted by 알 수 없는 사용자
,

http://oxtag.com/html/ex/ex/md5/md5.html

<script src="md4.js" type="text/javascript"></script>
<script src="md5.js" type="text/javascript"></script>
<script src="sha1.js" type="text/javascript"></script>

<form>

<table class="indented">
  <tr><th>Input</th><td><input type="text" name="input" size="40"></td></tr>
  <tr><th>Calculate</th>
  <td style="text-align:center"><input type="button" onclick="hash.value = hex_md4(input.value)" value="MD4">
  <input type="button" value="MD5" onclick="hash.value = hex_md5(input.value)">
  <input type="button" value="SHA-1" onclick="hash.value = hex_sha1(input.value)"></td></tr>
  <tr><th>Result</th><td><input type="text" name="hash" size="40"></td></tr>
</table>

</form>

Posted by 알 수 없는 사용자
,
<Script Language=javascript>
pw = (screen.availWidth - window.document.body.clientWidth) /2;
ph = (screen.availHeight - window.document.body.clientHeight) /2;
window.moveTo(pw,ph);
</Script>

위 소스를 문서 </body> 바로 위에 넣으세요.
Posted by 알 수 없는 사용자
,
<html>
<head>
<title>지정 시간 후 재생 시작되는 스크립트</title>
<script>
function delay_play()   {
   document.player1.Play();
   }
</script>
</head>
<body onload="setTimeout('delay_play()',5000)">
<embed src=http://oxtag.com/html/music/wma/adrine.wma autostart=false hidden=false name=player1>
</body>
</html>

1000 = 1초
Posted by 알 수 없는 사용자
,
<span id=layer_username1>이름</span>
<input type=textbox name=username1 style="font-size:12px;" maxlength=12 size=12 onfocus="layer_username1.style.color='#FF0000'" onblur="layer_username1.style.color='#000000'">

<span id=layer_username2>이름</span>
<input type=textbox name=username1 style="font-size:12px;" maxlength=12 size=12 onfocus="layer_username2.style.color='#FF0000'" onblur="layer_username2.style.color='#000000'">

실행화면 : 이름 아이디
Posted by 알 수 없는 사용자
,
<table>
<TR>
<TD STYLE="cursor:hand;border:1pt solid #CCCCCC;font-size:8pt;" ID="i2" ONMOUSEOVER="document.all.i2.style.background=\'#F6F6F6\';document.all.i2.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i2.style.background=\'#FFFFFF\';document.all.i2.style.border=\'1pt solid #CCCCCC\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=1.6; else window.parent.document.body.style.zoom=1.6;">
 페이지확대
</TD>
</TR>
<TR>
<TD STYLE="cursor:hand;border:1pt solid #CCCCCC;font-size:8pt;" ID="i3" ONMOUSEOVER="document.all.i3.style.background=\'#F6F6F6\';document.all.i3.style.border=\'1pt solid #737B92\';" ONMOUSEOUT="document.all.i3.style.background=\'#FFFFFF\';document.all.i3.style.border=\'1pt solid #CCCCCC\';" ONCLICK="if(window.parent.document.body.style.zoom!=0) window.parent.document.body.style.zoom*=0.625; else window.parent.document.body.style.zoom=0.625;">
 페이지축소
</TD>
</TR>
</table>
Posted by 알 수 없는 사용자
,
한글을 쓰려면 먼저 한/영 전환 키를 누른 후...
기본 설정이 영어로 되어 있기 때문에...

<script language='javascript'>
function hangul()
{
if((event.keyCode < 12592) || (event.keyCode > 12687))
event.returnValue = false
}
</script>

<input type="text" name="Name" size="10" maxlength="15" class=ad onKeyPress="hangul();">

이거 하면 한글만 적힙니다.
- 붙혀넣기, 한문등은 됨..-_-;
Posted by 알 수 없는 사용자
,
<SCRIPT LANGUAGE="JavaScript">
document.write("당신의 브라우저는 : "+navigator.appVersion+"입니다.");
</script>


















Posted by 알 수 없는 사용자
,
http://oxtag.com/html/ex/reveal/reveal.html


<script language="JavaScript" src="http://oxtag.com/html/ex/reveal/reveal.js"></script>

<script language="JavaScript">
//////////////////////////////////
//        Customise Reveal        //
//////////////////////////////////

/*
The following is required only if you
want the user to click to reveal the page
*/
var clickw=150;                // 버튼 가로크기
var clickh=20;                // 버튼 세로크기
var clickb=2;                // 테두리 두께
var clickc="#000000";        // 버튼 테두리 색상
var clickbg="#000000";        // 버튼 배경색
var clickt="들어가기";        // 처음 클릭하는 버튼 글자
var clickFont="font-family:돋움,verdana,arial,helvetica; font-size:10pt; font-weight:bold; color:#FFFFFF";                // 글자 글꼴 크기 두께 색상 등 조절

/*
Following is required to initialise Reveal
The function is called in the following manner :
        initReveal(type,div1bg,div2bg,div1bw,div2bw,div1bc,div2bc,step,timeOut,click)
        Parameter description :
        type        ->        0 for vertical | 1 for horizantal
        div1bg        ->        Background color of first layer                (eg. '#CCCCCC')
        div2bg        ->        Background color of second layer        (eg. '#CCCCCC')        
        div1bw        ->        Border width of first layer                (eg. 1)
        div2bw        ->        Border width of second layer                (eg. 1)
        div1bc        ->        Border color of first layer                (eg. '#000000')
        div2bc        ->        Border color of second layer                (eg. '#000000')
        step        ->        The amount revealed every interval        (eg. 5)
        timeOut        ->        The delay in milliseconds
        click        ->        true if user has to click to reveal | false for auto reveal
        See below for an example of how to call the function.
*/

new initReveal(0,'#c2c2c2','#CCCCCC',1,1,'#000000','#000000',3,10,true);
// 차례대로 상단-하단 배경색상, 상단-하단 경계선 색상
</script>
Posted by 알 수 없는 사용자
,
<script>
function mailto(id,address)
{
location.href='mailto:'+id+'@'+address;
}
</script>

<a href="javascript:mailto('webmaster','wi.co.kr');">운영자에게 메일보내기</a>
Posted by 알 수 없는 사용자
,
<SCRIPT LANGUAGE="Javascript">
<!--
ie = (document.all) ? 1 : 0

function noRight(e) {
   if(ie) {

      if (event.button == 4)
     alert("휠 버튼은 사용할 수 없습니다.")
   }
   else {
      if(e.which == 4) {
          alert("휠 버튼은 사용할 수 없습니다.")
          return false
       }
   }
}
document.onmousedown = noRight
if(!ie) document.captureEvents(Event.MOUSEDOWN)
//-->
</SCRIPT>
Posted by 알 수 없는 사용자
,
미리보기 http://oxtag.com/html/ex/popup/win/win2.html


<script>
//Windows In JavaScript (Test Ver / Modifed)
//This source is created by Zective (http://zective.com) and modified by TheMics
//Div 태그와 Table 태그 그리고 JavaScript 를 이용하여 윈도우 구조 비슷하게 나타내기 위한 스크립트

D_curX = D_curY = 0;
D_now = null;
D_prev = null;
D_1stmv = 1;
lrs = null;
dtm = null;
stm = null;
w_size = 1;

document.onmouseup = FinishDrag;

function FinishDrag() {
        if(document.onmousemove == OnDragMove) {
                if(D_now.style.pixelLeft < 0) D_now.style.pixelLeft = 1;
                //else if(D_now.style.pixelLeft + w_width > document.body.clientWidth) D_now.style.pixelLeft = document.body.clientWidth - w_width;
                if(D_now.style.pixelTop < 0) D_now.style.pixelTop = 1;
                //else if(D_now.style.pixelTop + w_height > document.body.clientHeight) D_now.style.pixelTop = document.body.clientHeight - w_height;
        }

        if(document.onmousemove == OnResizeMove) lrs.Finish();
        if(D_now) D_now.style.filter = "";
        if(D_now && w_size == 1) ResizeForMove("2");
        document.onmousemove = null;
        D_now = null;
}

function BeginDragging(lyr) {
        D_now = lyr;
        D_1stmv = 1;
        D_now.style.filter = "alpha(opacity:60)";
        if(w_size == 1) ResizeForMove("1");
        document.onmousemove = OnDragMove;
}

function OnDragMove() {
        if(D_now == null) return true;
        if(D_1stmv) {
                D_curX = event.clientX;
                D_curY = event.clientY;
                D_1stmv = 0;
                if(D_prev != D_now) D_now.style.zIndex = D_now.style.zIndex + 1;
                D_prev = D_now;
                return false;
        }
        D_now.style.pixelLeft += (event.clientX - D_curX);
        D_now.style.pixelTop += (event.clientY - D_curY);
        D_curX = event.clientX;
        D_curY = event.clientY;
        event.returnValue = false;
}

function diOnMouseDown(i) {
        if(event.button == 1) BeginDragging(i);
        event.returnValue = false;
}

function OnResizeMove() {
        if(D_1stmv) {
                D_curX = event.clientX;
                D_curY = event.clientY;
                D_1stmv = 0;
                return false;
        }
        lrs.AddSize(event.clientX - D_curX, event.clientY - D_curY);
        D_curX = event.clientX;
        D_curY = event.clientY;
        event.returnValue = false;
}

function DoExit(_obj,_order) {
        dele = eval("document.all."+_obj+".style");
        if(_order == 0) {
                dele.display = "block";
        } else {
                dele.display = "none";
                i_frame.location.href = "about:blank";
        }
}

function ChangeFrame(name,title,width,height) {
        w_width = width;
        w_height = height;
        if(w_size == 0) Resize();
        document.all.i_window.style.width = width;
        document.all.i_window.style.height = height;
        document.all.i_frame.style.width = width - 2;
        document.all.i_frame.style.height = height - 18;
        //if(document.all.i_window.pixelLeft + width > document.body.clientWidth) document.all.i_window.pixelLeft = document.body.clientWidth - width;
        //if(document.all.i_window.pixelTop + height > document.body.clientHeight) document.all.i_window.pixelTop = document.body.clientHeight - height;
        i_title.innerHTML = title;

        if(name.substr(0,4) == "http") {
                i_frame.location.href = name;
                // reload.innerHTML = "";
        }
/*
         else {
                if(name == "search") i_frame.location.href = "http://oxtag.com/zboard/search.php";
                else if(name == "search2")i_frame.location.href = "http://oxtag.com/zboard/search.php";
                else if(name == "game")i_frame.location.href = "http://oxtag.com/html/ex/game/game.html";
                else i_frame.location.href = "http://oxtag.com/html/"+name+".html";
                reload.innerHTML = "R";
        }
*/
        DoExit("i_window",0);
}

function Resize() {
        if(w_size == 1) {
                w_size = 0;
                w_width = document.all.i_window.style.width.substr(0,3);
                w_height = document.all.i_window.style.height.substr(0,3);
                document.all.i_window.style.width = 200;
                document.all.i_window.style.height = 18;
                document.all.i_frame.style.display = "none";
        } else {
                w_size = 1;
                document.all.i_window.style.width = w_width;
                document.all.i_window.style.height = w_height;
                //if(document.all.i_window.style.pixelLeft + w_width > document.body.clientWidth) document.all.i_window.style.pixelLeft = document.body.clientWidth - w_width;
                //if(document.all.i_window.style.pixelTop + w_height > document.body.clientHeight) document.all.i_window.style.pixelTop = document.body.clientHeight - w_height;
                document.all.i_frame.style.display = "block";
        }
}

function ResizeForMove(type) {
        if(type == "1") {
                document.all.i_window.style.height = 18;
                document.all.i_frame.style.display = "none";
        } else {
                document.all.i_window.style.height = w_height;
                document.all.i_frame.style.display = "block";
        }
}
</script>

</head>
<body>

<!--윈도우 레이어-->
<div id='i_window' style='left:170;top:70;width:600;height:400;position:absolute;z-index:99'>
<table cellspacing='1' cellpadding='0' border='0' width='100%' height='100%' bgcolor='#C7B4A5'>
        <tr bgcolor='#B9A08B'>
                <td oncontextmenu='return false' onmousedown='diOnMouseDown(i_window)'>
<table cellspacing='0' cellpadding='0' border='0' width='100%' height='15'>
        <tr style='cursor:move'>
                <td class='th8'> <span id='i_title' style='font-weight:bold'></span></td>
                <td align='right' class='th8'>
<!-- <span onclick='i_frame.location.reload()' id='reload' style='cursor:hand;color:#715B52'>R</span> -->
<span onclick='Resize()' style='cursor:hand;color:#715B52'>M</span>
<span onclick='DoExit("i_window",1)' style='cursor:hand;color:#715B52'><b>X</b></span>
                </td>
        </tr>
</table>
                </td>
        </tr>
        <tr>
                <td bgcolor='white'><iframe id='i_frame' src='about:blank' frameborder='0' width='598' height='392' marginwidth='10' marginheight='10' scrolling='auto'></iframe></td>
        </tr>
</table>
</div>

** <span onclick='ChangeFrame("http://oxtag.com/zboard/search.php","title 1 - 게시판 통합검색",640,330)' style='cursor:hand'>BBS Search</span> <br>
** <span onclick='ChangeFrame("http://oxtag.com/html/ex/game/game.html","title 3 - 게임",500,330)' style='cursor:hand'>Game</span> <br>
** <span onclick='ChangeFrame("http://oxtag.com/html/ex/banner.html","title 4 - 태그피아 배너",500,330)' style='cursor:hand'>TagPia BanNer</span> <br>
** <span onclick='ChangeFrame("http://oxtag.com/html/marquee.html","title 5 - 마퀴",750,420)' style='cursor:hand'>Marquee</span> <br>
** <span ondblclick='ChangeFrame("http://oxtag.com/html/about/ctpersonal/","Administrator Page",580,420)'>admin</span><br><br>

<script>
ChangeFrame("http://oxtag.com/html/ex/game/game.html","OnLoad 시 띄우기",650,400)
</script>
Posted by 알 수 없는 사용자
,
<script>
<!--
function linkblur(){  // 링크에 점선 없애기
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=linkblur;
document.write('<body>');
//-->
</script>

<a href=#none>aaa</a>




다른거..

자동 onfocus=blur()
<script>
function autoblur() {
        if(event.srcElement.tagName == "A") document.body.focus();
}
document.onfocusin = autoblur;
</script>



또.. 다른거..

function autoblur()
{ if(event.srcElement.tagName=="INPUT" || event.srcElement.tagName=="TEXTAREA" || event.srcElement.tagName=="SELECT" || event.srcElement.tagName=="OBJECT" ){ document.onfocusin = tempautoblur; return ; }
if(event.srcElement.tagName=="EMBED")return ;
if(event.srcElement.tagName!="BODY" && typeof(document.body)=='object') { document.body.focus(); event.returnValue=false; } }

function OnLoad(){ document.onfocusin=autoblur; } window.onload = OnLoad;
Posted by 알 수 없는 사용자
,
..
<script language="Javascript">
<!--
var x=0; y=0; cX=0; cY=0
var tM
var running=false
if (document.layers){
    document.captureEvents(Event.MOUSEMOVE)
}
function FindXY(loc) {
    x = (document.layers) ? loc.pageX : event.clientX;
    y = (document.layers) ? loc.pageY : event.clientY;
    window.status = 'x : ' + x + ' / ' + cX + '  y : ' + y + ' / ' + cY;
    orMove();
}
document.onmousemove = FindXY;
// -->
</script>

<body>

<script>
<!--
cX = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerWidth  : document.body.clientWidth;
cY = (navigator.appName.indexOf('Netscape', 0) != -1) ? innerHeight : document.body.clientHeight;
function orMove(){
    if (y > 50&&(cY - y) > 50) {
            if (running) {
            clearTimeout(tM)
            running = false
        }
    }
    else {
        if (y < 50) {
            scrollBy(0,-1)
        }
        else {
            scrollBy(0,1)
        }
        running = true
        tM = setTimeout('orMove()',20)
    }
}
// -->
</script>
Posted by 알 수 없는 사용자
,