태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.
페이지를 읽고 있습니다. ( 아쿠아바다's Blog )
분류 전체보기 (769)
쉐어포인트 (24)
Exchange (12)
SQL (121)
XML (36)
WEB (294)
O / S (97)
삶의향기 (162)
기획 (19)
RSS 피드(IE 7.0부터 기본 지원됩니다. 이전 버전 사용자는 접합한 툴을 사용하세요!!)
사이트 설명을 넣으세요^^
사이트 설명을 넣으세요^^
사이트 설명을 넣으세요^^
사이트 설명을 넣으세요^^
사이트 설명을 넣으세요^^



마우스 온하면 스톱하는 부분 수정 필요함..

소스

<STYLE>
.move {
text-align:     center;
color:          #0066FF;
font-family:    굴림;
font-size:      12px;
position:       absolute;
visibility:     hidden;
z-index:        2;
}
.type {
font-family:    굴림;
font-size:      18px;
color:          #333333;
position:       absolute;
top:            0px;
left:           70px;
visibility:     visible;
z-index:        1;
}
.call {
text-align:     center;
font-family:    굴림;
font-size:      12px;
color:          red;
position:       absolute;
top:            170px;
left:           0px;
width:          400px;
visibility:     hidden;
z-index:        0;
}
BODY {
background:     #FFFFFF;
}
A {
color:          #0066FF;
}
A:HOVER {
        color : green;
        text-decoration : none;
}
</STYLE>
<SCRIPT LANGUAGE = "JavaScript">
    /* Show an object */
    function showObject(object) {
        object.visibility = VISIBLE;
    }
    /* Hide an object */
    function hideObject(object) {
        object.visibility = HIDDEN;
    }
    /* Slide the type from top to middle */
    function slidetype(from, to) {
            if (from < to) {
                company.top = (from += 10);
                setTimeout('slidetype(' + from + ',' + to + ')', 50);
            }
            else initObjects();
    }
    /* Rotate selected objects */
    function rotateObjects() {
            for (var i = 0; i < pos.length; i++) {
                pos[i] += inc; objects[i].visibility = 'visible';
                objects[i].left = (r * Math.cos(pos[i])) + xoff
                objects[i].top = (r * Math.sin(pos[i])) + yoff;
            }
        rotateTimer = setTimeout("rotateObjects()", 70);
    }
     /* Initialize selected objects for rotation */
     function initObjects() {
        //메뉴를 추가할 경우 아래의 규칙에 맞게 Array 를 추가하세요
        objects = new Array(move1, move2, move3, move4, move5); 
                           pos = new Array();
        pos[0] = 0;
            for (var i = 1; i < objects.length; i++) {
                pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));
            }
        rotateObjects();
    }
/* Variables for rotating objects */
    var objects;
    var pos;
    var r = 100;        // 원의 반지름
    var xoff = 100;     // 화면 왼쪽으로 부터의 위치
    var yoff = 170;     // 화면 위쪽으로 부터의 위치
    var pi = Math.PI;  
    var inc = pi / 180; // 수치가 낮을수록 회전속도가 빠름
    var objects;       
    var pos;            // position for objects
</SCRIPT>

<!--메뉴 구성 설정 시작-->
<DIV ID = "move1" CLASS = "move">
<A HREF = "" onMouseOver = "showObject(call1)"
onMouseOut = "hideObject(call1)">링크1</A>
</DIV>

<DIV ID = "move2" CLASS = "move">
<A HREF = "" onMouseOver = "showObject(call2)" onMouseOut = "hideObject(call2)">링크2</A>
</DIV>

<DIV ID = "move3" CLASS = "move">
<A HREF = "" onMouseOver = "showObject(call3)"
onMouseOut = "hideObject(call3)">링크3</A>
</DIV>

<DIV ID = "move4" CLASS = "move">
<A HREF = "" onMouseOver = "showObject(call4)"
onMouseOut = "hideObject(call4)">링크4</A>
</DIV>

<DIV ID = "move5" CLASS = "move">
<A HREF = "" onMouseOver = "showObject(call5)"
onMouseOut = "hideObject(call5)">링크5</A>
</DIV>
<!--메뉴 구성 설정 끝-->

<!-- 중앙에 표시되는 문구 설정-->
<DIV ID = "company" CLASS = "type"><b>메인</b></DIV>
<!--각 메뉴의 설명글 설정-->
<DIV ID = "call1" CLASS = "call">
사이트 설명을 넣으세요^^
</DIV>

<DIV ID = "call2" CLASS = "call">
사이트 설명을 넣으세요^^
</DIV>

<DIV ID = "call3" CLASS = "call">
사이트 설명을 넣으세요^^
</DIV>

<DIV ID = "call4" CLASS = "call">
사이트 설명을 넣으세요^^
</DIV>

<DIV ID = "call5" CLASS = "call">
사이트 설명을 넣으세요^^
</DIV>
<!--각 메뉴의 설명글 설정 끝-->

<SCRIPT LANGUAGE = "JavaScript">
    /* Simple version detection */
    var isNS = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >=
5);
/* They can be used in place
       of hidden and visible because on occasion Navigator has problems with the two
*/
    var HIDDEN = (isNS) ? 'hide' : 'hidden';
    var VISIBLE = (isNS) ? 'show' : 'visible';
    /* Create shortcut variables for different absolutely positioned elements */
    var move1 = (isNS) ? document.move1 : document.all.move1.style;
    var move2 = (isNS) ? document.move2 : document.all.move2.style;
    var move3 = (isNS) ? document.move3 : document.all.move3.style;
    var move4 = (isNS) ? document.move4 : document.all.move4.style;
    var move5 = (isNS) ? document.move5 : document.all.move5.style;
    var company = (isNS) ? document.company : document.all.company.style;
    var call1 = (isNS) ? document.call1 : document.all.call1.style;
    var call2 = (isNS) ? document.call2 : document.all.call2.style;
    var call3 = (isNS) ? document.call3 : document.all.call3.style;
    var call4 = (isNS) ? document.call4 : document.all.call4.style;
    var call5 = (isNS) ? document.call5 : document.all.call5.style;
    /* Begin the sliding of the type */
    slidetype(0, 140);
</SCRIPT>

좀더 흥미로운 내용이 많이 있습니다.. HOME > WEB/HTML/Css/Script를 확인하세요
0 Trackback, 0 Comment, :
1  ... 163 164 165 166 167 168 169 170 171  ... 769 
Statistics Graph
Total : 557,403 Today : 33