一循环渐显效果
<img src="http://www.webjx.com/htmldata/2005-02-24/image1.gif" name="u" border=0
alt="Image" style="filter:alpha(opacity=0)">
<script language="JavaScript">
var b = 1;
var c = true;
function fade(){
if(document.all);
if(c == true) {
b++;
}
if(b==100) {
b--;
c = false
}
if(b==10) {
b++;
c = true;
}
if(c == false) {
b--;
}
u.filters.alpha.opacity=0 + b;
setTimeout("fade()",50);
}
</script>
二。图片隐现效果的实现
<SCRIPT language="JavaScript">
<!--
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}
//-->
</SCRIPT>
三。图片大小变化
<span id="s1" style = "width : 100">
<a href="../../index.shtml"
οnmοuseοver="img1.style.width='95';"
οnmοuseοut="img1.style.width= '67';">
<Img src="http://www.webjx.com/htmldata/2005-02-24/link1.gif" id="img1">
</a>
</span>
四。图片加边框
<style>
.highlightit img{
border: 1px solid #ccc;
}
.highlightit:hover img{
border: 1px solid navy;
}
.highlightit:hover{
color: red; /* Dummy definition to overcome IE bug */
}
</style>
<a href="http://www.google.com/" class="highlightit"><img src="http://www.alixixi.com/images/face/image21.gif" οnclick="javascript:window.open(this.src);" style="CURSOR: pointer" οnlοad="return imgzoom(this,550)"></a>