IE minimize
Scripter/JAVASCRIPT / 2008. 3. 6. 09:50
자바스크립트만으로 브라우저 최소화 최대화를 구현해보고 싶어 소스를 찾다 괜찮은 것들만 추려본다.
(IE6이전 버전 기준)
출처 : htmlgoodies
최소화가 아니라 다른창 뒤에 숨기기위해 간단한 소스
<script type="text/javascript">
function minimize() {
document.getElementById("minimizer").Click();
}
</script>
<span onclick="minimize()" style="cursor:pointer;">최소화</span>
<object id="minimizer" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize">
</object>
function minimize() {
document.getElementById("minimizer").Click();
}
</script>
<span onclick="minimize()" style="cursor:pointer;">최소화</span>
<object id="minimizer" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Minimize">
</object>
<SCRIPT LANGUAGE="JavaScript">
function Minimize()
{
window.innerWidth = 100;
window.innerHeight = 100;
window.screenX = screen.width;
window.screenY = screen.height;
alwaysLowered = true;
}
function Maximize()
{
window.innerWidth = screen.width;
window.innerHeight = screen.height;
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
}
</SCRIPT>
<A HREF="javascript:onClick=Minimize()">Minimize</A>
<A HREF="javascript:onClick=Maximize()">Maximize</A>
function Minimize()
{
window.innerWidth = 100;
window.innerHeight = 100;
window.screenX = screen.width;
window.screenY = screen.height;
alwaysLowered = true;
}
function Maximize()
{
window.innerWidth = screen.width;
window.innerHeight = screen.height;
window.screenX = 0;
window.screenY = 0;
alwaysLowered = false;
}
</SCRIPT>
<A HREF="javascript
<A HREF="javascript
'Scripter > JAVASCRIPT' 카테고리의 다른 글
자바스크립트로 구현한 3D 포토갤러리 (0) | 2008.03.06 |
---|---|
JsonSQL: JSON parser, SQL style (0) | 2008.03.06 |
Native CSS selectors with querySelector (0) | 2008.03.06 |
Javascript Performance Stack (2) | 2008.03.03 |
팁 : 크로스브라우저 지원 스크롤바 바꾸기 (0) | 2008.02.18 |