|
<html>
<head>
<script language="JavaScript">
<!-- »ç¿ëÇÒ À̹ÌÁö¸¦ »ý¼ºÇÏ´Â ºÎºÐÀÔ´Ï´Ù. ¹öÆ°1 ¹öµç2¶ó´Â À̹ÌÁö °´Ã¼¸¦ »ý¼ºÇÑ´ÙÀ½ °¢°¢ÀÇ °´Ã¼¿¡ À̹ÌÁö ÆÄÀϸíÀ» ³Ö½À´Ï´Ù.. -->
BUTTON_1 = new Image(); <!--¿ø·¡À̹ÌÁö -->
BUTTON_2 = new Image(); <!-- ¹Ù²ðÀ̹ÌÁö -->
BUTTON_1.src= = image_1.gif;
BUTTON_2.src= = image_2.gif;
<!-- ºê¶ó¿ìÀú Á¾·ù,¹öÀüÀ» üũÇÏ´Â ºÎºÐ-->
function BrowserCheck() {
var b = navigator.appName
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
this.ns = (this.b=="ns" && this.v>=4)
this.ns4 = (this.b=="ns" && this.v==4)
this.ns5 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.ie4 = (this.version.indexOf('MSIE 4')>0)
this.ie5 = (this.version.indexOf('MSIE 5')>0)
this.min = (this.ns||this.ie)
}
is = new BrowserCheck()
<!-- À̹ÌÁö¸¦ ¹Ù²Ù´Â ºÎºÐ-->
function chng(ImgName,ImgSrc){
if ((screen.colorDepth >= 24) && (is.ie4)){eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;');}
else{
eval(ImgName + '.filters.blendTrans.stop();');
eval(ImgName + '.filters.blendTrans.Apply();');
eval(ImgName + '.src=' + ImgSrc + '.src;');
eval(ImgName + '.filters.blendTrans.Play();');
}
}
<!-- À̹ÌÁö¸¦ ¹Ù²Ù´Â ºÎºÐ-->
function chng2(ImgName,ImgSrc){eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;');}
//-->
</script>
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
<td valign=top>
<a href=# onfocus='this.blur()' onMouseOver="chng('IMAGE_ID','BUTTON_1')" onMouseOut="chng('IMAGE_ID','BUTTON_2')">
<img ID=IMAGE_ID src=1.gif border=0 style="filter:blendTrans(duration=0.5)">
</a>
</td>
</tr>
</table>
</body>
</html>
|
|
|
|
|
|
|
|
|