태그모음

이미지 도구모음 안보이게하는 메타태그

[CODE]<meta http-equiv=”imagetoolbar” content=”no”>[/CODE]

한번팅겨주는 top 버튼

[CODE]<!– 스크립트 –> <SCRIPT LANGUAGE=”JavaScript”> <!– function GoTop() { window.scrollTo(0,0); } function GoTop_Call() { document.body.ondblclick = Top; } var Xpos = 0; var Ypos = 0; var Ygravity = 0.85; var scrollPos = 0; var oldScrollPos = 0; function FloatMenu() { docWidth = document.body.clientWidth; // Update document width docHeight = document.body.clientHeight; // Update document height oldScrollPos = scrollPos; scrollPos = document.body.scrollTop; // Update scrollbar position Xpos = 685; //Xpos = (docWidth – floater.offsetWidth) – 10; //오른쪽 여백 배너가 오른쪽에 붙을경우 //Xpos = (docWidth / 2) + 410; // 중앙정렬일경우. ” + 410 은 테이블 크기 / 2 ” Yboundary = ((scrollPos + docHeight) – floater.offsetHeight) – 15; //하단여백 if (floater.offsetTop < Yboundary – 1) // Object is behind boundary Ypos += 2; if (floater.offsetTop > Yboundary + 1) // Object is past boundary Ypos -= 1; Ypos *= Ygravity; // Slow object down floater.style.pixelLeft = Xpos; floater.style.pixelTop += Ypos; // Make object bounce } window.setInterval(“FloatMenu()”, 1); //매개변수중 뒷쪽 숫자는 내려오는 속도 //–> </SCRIPT> <!– top버튼 –> <div id=”floater” style=”Z-INDEX: 1; LEFT: 980px; TOP: 470px; POSITION: absolute; visibility: visible;”><a href=”javascript:GoTop();” onFocus=”this.blur()”><img src=”http://theface-dr.co.kr/main_images/top.gif” border=”0″></a></DIV>[/CODE]

한번팅겨주는 top / bottom 버튼

[CODE]<!– 스타일시트 –> <STYLE type=text/css> <!– #floater {position: absolute} .hand {CURSOR: pointer} –> </STYLE> <!– 스크립트 –> <SCRIPT language=JavaScript> <!– var Ypos = 50; var Ygravity = .9; var scrollPos = 0; var oldScrollPos = 0; function FloatMenu() { docHeight = document.body.clientHeight; oldScrollPos = scrollPos; scrollPos = document.body.scrollTop; Yboundary = ((scrollPos + docHeight) – floater.offsetHeight) – 350; if (floater.offsetTop < Yboundary – 5) Ypos += 2; if (floater.offsetTop > Yboundary + 5) Ypos -= 2; Ypos *= Ygravity; floater.style.pixelTop += Ypos; } window.setInterval(“FloatMenu()”, 1); // –> </SCRIPT> <!– top/bottom 버튼 –> <DIV id=”floater” style=”Z-INDEX: 10; LEFT: 670px; TOP: 185px”><a onclick=”javascript:scroll(0,0)”><IMG class=”hand” title=”GO TOP” src=”http://cmlog.net/tip/g_top.gif” border=”0″></a><br /> <a onclick=”javascript:scroll(0,99999)”><IMG class=”hand” title=”GO BOTTOM” src=”http://cmlog.net/tip/g_bottom.gif” border=”0″></a></DIV>[/CODE]

Leave a Reply

Your email address will not be published. Required fields are marked *