묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
새창에 대해서..
2004.02.28 13:28
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function expand() {
for(x = 0; x < 50; x++) {
//window.moveTo(screen.availWidth * -(x - 50) / 100, 600);
window.resizeTo(900 * x / 50, 600);
}
//window.moveTo(0,0);
window.resizeTo(900, 600);
}
</script>
</HEAD>
<BODY>
<center><a href="#" onClick="expand();">CLICK ME</a><p>
</body>
</html>
위의 소스에서요
링크를 하나 더 추가해서
늘린창을 다시 스르륵 줄일수있는 방법좀...^^;;
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function expand() {
for(x = 0; x < 50; x++) {
//window.moveTo(screen.availWidth * -(x - 50) / 100, 600);
window.resizeTo(900 * x / 50, 600);
}
//window.moveTo(0,0);
window.resizeTo(900, 600);
}
</script>
</HEAD>
<BODY>
<center><a href="#" onClick="expand();">CLICK ME</a><p>
</body>
</html>
위의 소스에서요
링크를 하나 더 추가해서
늘린창을 다시 스르륵 줄일수있는 방법좀...^^;;
<SCRIPT LANGUAGE="JavaScript">
function expand() {
for(x = 0; x < 50; x++) {
//window.moveTo(screen.availWidth * -(x - 50) / 100, 600);
window.resizeTo(900 * x / 50, 600);
}
//window.moveTo(0,0);
window.resizeTo(900, 600);
}
function expand2() {
for(x = 0; x < 50; x++) {
//window.moveTo(screen.availWidth * -(x - 50) / 100, 600);
window.resizeTo(screen.availWidth * x / 50, screen.availHeight);
}
//window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
}
</script>
</HEAD>
<BODY>
<center><a href="#" onClick="expand();">CLICK ME</a><p>
<center><a href="#" onClick="expand2();">CLICK ME</a><p>
</body>
</html>