웹마스터 팁
page_full_width">
웹브라우저 상태바가 밑으로 내려오는 소스
2004.03.16 00:47
아래의 소스는 웹브라우저의 상태바가 내려오는 소스 입니다...
이벤트용 으로 쓴다죠 아마도...
많이들 사용하세요...ㅋ
[예제]
http://varaho.cafe24.com/sose.htm
아래의 소스는 복사하셈...+_+//
<SCRIPT language=JavaScript>
<!--
ns = navigator.appName.indexOf('Netscape') != -1 ? true : false;
ie = navigator.appName.indexOf('Microsoft Internet Explorer') != -1 ? true : false;
mac = navigator.userAgent.indexOf('Mac') != -1 ? true : false;
var ban = 0
var counter = 0
var qt = false;
var timeoutID
var ns = document.layers ? true : false;
function posWin() {
self.moveTo(0,0);
setTimeout("windowCurtain()",50)
}
function windowCurtain() {
self.focus();
if(ban < 1)
{
if(ns)
{
if(counter < 505)
{
self.resizeBy(0,5)
counter = counter + 5
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/505)
}
else
{
counter = 505
ban = 2
}
}
else
{
if(ie)
{
if(counter < 768)
{
self.resizeTo(screen.availWidth,counter)
counter = counter + 5
counter = counter + 5
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/screen.availHeight)
}
else
{
counter = 660
ban = 2
}
}
}
}
if(ban > 1){
if(ns){
if(counter > 495){
self.resizeBy(0,-1)
counter = counter - 1
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/495)
} else {
counter =495
clearTimeout()
}
}else
if(ie){
if(counter > 650){
self.resizeTo(screen.availWidth,screen.availHeight)
counter = counter - 1
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/650)
} else {
counter = 650
timeoutID = clearTimeout(timeoutID)
}
}
}
}
posWin()
</SCRIPT>
뭐 배우는 입장이긴 한데...
아는것이 힘이다..=ㅁ=/
이벤트용 으로 쓴다죠 아마도...
많이들 사용하세요...ㅋ
[예제]
http://varaho.cafe24.com/sose.htm
아래의 소스는 복사하셈...+_+//
<SCRIPT language=JavaScript>
<!--
ns = navigator.appName.indexOf('Netscape') != -1 ? true : false;
ie = navigator.appName.indexOf('Microsoft Internet Explorer') != -1 ? true : false;
mac = navigator.userAgent.indexOf('Mac') != -1 ? true : false;
var ban = 0
var counter = 0
var qt = false;
var timeoutID
var ns = document.layers ? true : false;
function posWin() {
self.moveTo(0,0);
setTimeout("windowCurtain()",50)
}
function windowCurtain() {
self.focus();
if(ban < 1)
{
if(ns)
{
if(counter < 505)
{
self.resizeBy(0,5)
counter = counter + 5
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/505)
}
else
{
counter = 505
ban = 2
}
}
else
{
if(ie)
{
if(counter < 768)
{
self.resizeTo(screen.availWidth,counter)
counter = counter + 5
counter = counter + 5
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/screen.availHeight)
}
else
{
counter = 660
ban = 2
}
}
}
}
if(ban > 1){
if(ns){
if(counter > 495){
self.resizeBy(0,-1)
counter = counter - 1
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/495)
} else {
counter =495
clearTimeout()
}
}else
if(ie){
if(counter > 650){
self.resizeTo(screen.availWidth,screen.availHeight)
counter = counter - 1
timeoutID = setTimeout("windowCurtain()", 10);
var newHeight = Math.round(counter * 100/650)
} else {
counter = 650
timeoutID = clearTimeout(timeoutID)
}
}
}
}
posWin()
</SCRIPT>
뭐 배우는 입장이긴 한데...
아는것이 힘이다..=ㅁ=/
댓글 5
-
▶◀그냥이렇게。
2004.03.17 23:23
내려오기 보다는 창크기가 조절되는 소스죠. ^^ -
김해랑
2004.12.12 05:15
근데 포워딩 된 주소에서는 안먹히네요..ㅠㅠ -
김해랑
2004.12.12 05:11
저는 잘 되는데요^^ -
김해랑
2004.12.12 05:10
효과 재밌네요^^
홈피 앞에 대문을 요렇게 해둘까?ㅋㅋ -
휘모리
2004.04.25 22:59
이거....써도 안되는데...ㅠ.ㅠ;;;
님꺼 클릭하면 잘되는데...
내꺼에서 쓰면..안되네요..왜그렇지?