ȨÀ¸·Î | ¹«·áȸ¿ø°¡ÀÔ | ¾ÆÀ̵ð/ºñ¹øÃ£±â
ÃßõÀ½¾Ç¹æ¼Û
´õºíŬ¸¯ À̵¿ ÀÚ¹Ù½ºÅ©¸³Æ® ¼Ò½º 3°¡Áö
11³â Àü
¡á1. ´õºíŬ¸¯ ½ºÅ©¸³Æ®
<script type="text/javascript"><!--
function totopbottom() {
if (document.body.scrollTop == 0) {
window.scrollTo(0,document.body.scrollHeight);
} else {
window.scrollTo(0,0);
}
}
function topbottom() {
document.body.ondblclick = totopbottom;
}
//--></script>

À§ ½ºÅ©¸³Æ®¸¦ html ÆäÀÌÁö <head> ¿Í </head>»çÀÌ¿¡ ³Ö°í html ÆäÀÌÁö ¸Ç ¸¶Áö¸·¿¡ ´ÙÀ½ ¼Ò½º¸¦ ³Ö´Â´Ù.

<script>topbottom()</script>


¡á2. Å×Å©³ëÆ® PHP ´õºíŬ¸¯ ÀÚ¹Ù½ºÅ©¸³Æ® ¼Ò½º
<!--´õºíŬ¸¯ ½ºÅ©·Ñ ½ºÅ©¸³Æ®-->
<script type="text/javascript" language="JavaScript">
function back_top() // »ó´ÜÀ¸·Î ºÎµå·´°Ô À̵¿
{
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
        step = 2;
        while ((x != 0) || (y != 0)) {
                scroll (x, y);
                step += (step * step / 200);
                x -= step;
                y -= step;
                if (x < 0) x = 0;
                if (y < 0) y = 0;
        }
        scroll (0, 0);
}
function back_bottom() // ÇÏ´ÜÀ¸·Î ºÎµå·´°Ô À̵¿
{
        endx = document.body.scrollWidth;
        endy = document.body.scrollHeight;
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
        step = 2;
        while ((x != endx) || (y != endy)) {
                scroll (x, y);
                step += (step * step / 200);
                x += step;
                y += step;
                if (x > endx) x = endx;
                if (y > endy) y = endy;
        }
        scroll (endx, endy);
}
document.ondblclick = function () {
if (document.body.scrollTop<=(document.body.offsetHeight/2))
{
  back_bottom();
} else {
  back_top();
}
}
</script>
<!--´õºíŬ¸¯ ½ºÅ©·Ñ ½ºÅ©¸³Æ®-->


¡á3.´õºíŬ¸¯ À̵¿ ÀÚ¹Ù½ºÅ©¸³Æ® ¼Ò½º
<script language=javascript>
<!--
toggle=0;
function dblclick() {
    if (toggle==0) {
        var sc=99999; toggle=1;
    } else {
        var sc=0; toggle=0;
    }
    window.scrollTo(0,sc);
}
if (document.layers) {
    document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
    if (IE) { // grab the x-y pos.s if browser is IE
        tempX = event.clientX + document.body.scrollLeft;
        tempY = event.clientY + document.body.scrollTop;
    } else { // grab the x-y pos.s if browser is NS
        tempX = e.pageX;
        tempY = e.pageY;
    }
    if (tempX < 0){tempX = 0;}
    if (tempY < 0){tempY = 0;}
    return true;
}
// -->
</script>
ÃßõÃßõ : 421 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
3,030
 Á¦ÀÌÄõ¸® ±âº» ¸í·É¾î
3,029
 À¥ÆäÀÌÁö °¡·Î ¸ðµå¼¼·Î ¸ðµå ÀνÄÇϱâ
3,028
 ¸ð¹ÙÀÏ À¥ È­¸é °­Á¦ ȸÀü(°¡·Î¸ðµå °íÁ¤)
3,027
 [HTML5]¿¡¼­ frameset ´ëü ¹æ¹ý°ú iframe ¼Ó¼º
3,026
 HTML <Audio> »ç¿ë¹ý
3,025
 À©µµ¿ì10 ½Ã½ºÅÛÆÄÀÏ ¼Õ»ó (Ãʰ£´Ü ¿À·ù º¹±¸¹æ¹ý!!)
3,024
 PHP ÆÄÀÏ Á¸Àç ¿©ºÎ ÆÄ¾ÇÇϱâ(·ÎÄà ÆÄÀÏ Á¸Àç ¹× ¿ø°ÝÁö ÆÄÀÏ Á¸Àç)
3,023
 [CSS] ¹Ú½º ¼¼·Î °¡¿îµ¥ Áß¾Ó Á¤·Ä 6°¡Áö
3,022
 CSS Layout ¼öÆò & ¼öÁ÷ Á¤·Ä
3,021
 ¿©·¯ µµ¸ÞÀÎµé °£ ÄíŰ °øÀ¯Çϱâ
3,020
 ÅÂ±× »çÀÌ¿¡ ÀÖ´Â ÅØ½ºÆ®¸¦ ÃßÃâ
3,019
 [JQuery] textbox focus on offÀ϶§ ¼ýÀÚ ÄÞ¸¶ º¸¿©ÁÖ±â
3,018
 ÄíŰ »ý¼º,°¡Á®¿À±â,»èÁ¦
3,017
 »ç¿ëÀÚ ÇÔ¼ö ¸ðÀ½
3,016
 ¸¶¿ì½º,Űº¸µå Á¦ÇÑ ( ¿À¸¥ÂÊŬ¸¯,µå·¡±×,¿µ¿ª¼±Åõî..)
3,015
 [HTML5] <video> - DOMÀ¸·Î Á¦¾îÇϱâ
3,014
 HTML5 video ű׿¡¼­ ¿µ»ó Á¿ì¹ÝÀü
3,013
 PHP - ƯÁ¤ ÅÂ±× ¹× ¹®ÀÚ¿­ ÃßÃâ, Á¦°Å
3,012
 [PHP] define°ú definedÀÇ Â÷ÀÌ
3,011
 ¿ìŬ¸¯ ¿Ïº®Â÷´Ü ½ºÅ©¸³Æ®
3,010
 iframe ³ôÀÌ 100% ¸ÂÃß±â
3,009
 curl ÇÔ¼ö¸¦ ÀÌ¿ëÇÑ HTTP REFERER º¯°æ
3,008
 À©µµ¿ì10 ½Ã½ºÅÛ ÆÄÀÏ ¹× Dism °Ë»ç
3,007
 ÅؽºÆ® ÁٹٲÞ, ±ÛÀÚÀÚ¸£±â CSS
3,006
 jQuery Mobile¿¡¼­ À¯¿ëÇÑ ÄÚµå 10°¡Áö.
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
Copyright (C) musictrot All rights reserved.