如何让首页缩略图显示半透明效果?_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

问题:如何让首页缩略图显示半透明效果?

解决:模板相应的文章文章频道标签中,显示图像标签的表格ID设置为“id=imgbox”,并在网页<head>中加一如下代码

<SCRIPT language=JavaScript type=text/javascript>
function transpic() {
var imgNodes = document.getElementById("imgbox").getElementsByTagName("img");
for (var i=0; i<imgNodes.length; i ){
var imgNode = imgNodes[i];
imgNode.setAttribute("class","low");
imgNode.className = "low";
imgNode.onmouseover = function(){
this.setAttribute("class","high");
this.className = "high";
}
imgNode.onmouseout = function(){
this.setAttribute("class","low");
this.className = "low";
}
}
}
</SCRIPT>

查看更多 动易Cms教程  动易Cms模板

来源:模板无忧//所属分类:动易Cms教程/更新时间:2006-04-20
相关动易Cms教程