|
|
|
|
俵ÀÌ / 2001-10-24 / ¿ÀÀü 12:47:36 / 203.255.3.190
Á¶È¸¼ö : 130
|
[Áú¹®] ½ºÅ©¸³Æ® |
> ¾Æ·¡ ºÎºÐ¿¡¼ ¸¶¿ì½º ¿À¸¥ÂÊÅ° üũ¸¦ ÇÏ´Â ºÎºÎÀ» »ðÀÔÇÒ·Á¸é ¾î¶»°Ô ÇؾßÇÏ´ÂÁö.....
> µû·Î »ðÀÔÀ» Çß´õ´Ï ¹ÝÀÀÀÌ ¾ø´õ¶ó±¸¿ä^^
> --------------------------------------------
> <SCRIPT type=text/javascript>
>
> var checkZIndex = true;
>
> var dragobject = null;
> var tx;
> var ty;
>
> var ie5 = document.all != null && document.getElementsByTagName != null;
>
> function getReal(el) {
> temp = el;
>
> while ((temp != null) && (temp.tagName != "BODY")) {
> if ((temp.className == "moveme") || (temp.className == "handle")){
> el = temp;
> return el;
> }
> temp = temp.parentElement;
> }
> return el;
> }
>
>
> function moveme_onmousedown() {
> el = getReal(window.event.srcElement)
>
> if (el.className == "moveme" || el.className == "handle") {
> if (el.className == "handle") {
> tmp = el.getAttribute("handlefor");
> if (tmp == null) {
> dragobject = null;
> return;
> }
> else
> dragobject = document.all[tmp];
> }
> else
> dragobject = el;
>
> if (checkZIndex) makeOnTop(dragobject);
>
> ty = window.event.clientY - getTopPos(dragobject);
> tx = window.event.clientX - getLeftPos(dragobject);
>
> window.event.returnValue = false;
> window.event.cancelBubble = true;
> dragobject.filters.alpha.opacity=77;
> }
> else {
> dragobject = null;
> }
> }
>
> function moveme_onmouseup() {
> if(dragobject) {
> dragobject.filters.alpha.opacity=100;
> dragobject = null;
> }
> }
>
>
> function moveme_onmousemove() {
> if (dragobject) {
> if (window.event.clientX >= 0 && window.event.clientY >= 0) {
> dragobject.style.left = window.event.clientX - tx + "px";
> dragobject.style.top = window.event.clientY - ty + "px";
> dragobject.filters.alpha.opacity=77;
> }
> window.event.returnValue = false;
> }
> }
>
> function getLeftPos(el) {
> if (ie5) {
> if (el.currentStyle.left == "auto")
> return 0;
> else
> return parseInt(el.currentStyle.left);
> }
> else {
> return el.style.pixelLeft;
> }
> }
>
> function getTopPos(el) {
> if (ie5) {
> if (el.currentStyle.top == "auto")
> return 0;
> else
> return parseInt(el.currentStyle.top);
> }
> else {
> return el.style.pixelTop;
> }
> }
>
> function makeOnTop(el) {
> var daiz;
> var max = 0;
> var da = document.all;
>
> for (var i=0; i<da.length; i++) {
> daiz = da[i].style.zIndex;
> if (daiz != "" && daiz > max)
> max = daiz;
> }
>
> el.style.zIndex = max + 1;
> }
>
>
> if (document.all) { //ÀÌ ºÎºÐÀº IE4 ÀÌ»ó ¹öÀü¿¡¼¸¸ ÀÛµ¿
> document.onmousedown = moveme_onmousedown;
> document.onmouseup = moveme_onmouseup;
> document.onmousemove = moveme_onmousemove;
> }
>
> document.write("<style>");
> document.write(".moveme, .handle {cursor: move;}");
> document.write("</style>");
>
>
> </SCRIPT>
-----------------------------------------------------------
´ÙÀ½Àº ÀᲿ´ë ¼Ò½º¿¡¼ ¸¶¿ì½ºÀÇ ¿ÞÂÊ ¹öÅÏÀ» üũÇÏ´Â ºÎºÐÀÔ´Ï´Ù.
function engage(evt) {
if (isNav) {
// ³×½ºÄÉÀÌÇÁ¿¡¼ ¸¶¿ì½ºÀÇ ¿ÞÂÊ ´ÜÃ߸¦ ´©¸£¸é µî·ÏâÀ» ¿ÀÇÂÇÕ´Ï´Ù.
if (evt.which!=1) {
}
}
else {
// ÀͽºÇ÷ξ¼ ¸¶¿ì½ºÀÇ ¿ÞÂÊ ´ÜÃ߸¦ ´©¸£¸é µî·ÏâÀ» ¿ÀÇÂÇÕ´Ï´Ù.
if (event.button!=1) {
}
}
}
¸¶¿ì½ºÀÇ ¿À¸¥ÂÊ ¹öÅÏÀº ¹Ý´ë·Î °ªÀÌ 1ÀÏ°Ì´Ï´Ù.
±×¸®°í ¸¶¿ì½º°¡ ´·¯Áö´Â À̺¥Æ®¸¦ ó¸®Çϱâ À§ÇÑ ºÎºÐÀÌ Ãß°¡ÀûÀ¸·Î µé¾î°¡¾ß µÉ°Ì´Ï´Ù.
ÀᲿ´ë¿¡¼ ¼Ò½ºº¸±âÇϼż Âü°íÇϼ¼¿ä...
±×·³...
|
|
|
|