我也放个栏目切换代码,简简单单的。_风讯Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!
http://bbs.foosun.net/dispbbs.asp?BoardID=51&ID=45658&replyID=&skin=1

吭哧吭哧了一上午,把163.com的栏目切换给扒下来了。我把css给去掉了。改用表格控制。喜欢这种不用层控制的东西。不知道对大家有没有用。有点不好就是把模板拉的老长。

发出来。给大家看看。:)

---------------------------------------------------

<script language="javascript">
function setFocus3(i)
{
selectLayer3(i);
}
function selectLayer3(i)
{
switch(i)
{
case 1:
document.getElementById("N1").style.display="block";
document.getElementById("N2").style.display="none";
document.getElementById("N3").style.display="none";
document.getElementById("N4").style.display="none";
document.getElementById("N5").style.display="none";
document.getElementById("N6").style.display="none";
break;
case 2:
document.getElementById("N1").style.display="none";
document.getElementById("N2").style.display="block";
document.getElementById("N3").style.display="none";
document.getElementById("N4").style.display="none";
document.getElementById("N5").style.display="none";
document.getElementById("N6").style.display="none";
break;
case 3:
document.getElementById("N1").style.display="none";
document.getElementById("N2").style.display="none";
document.getElementById("N3").style.display="block";
document.getElementById("N4").style.display="none";
document.getElementById("N5").style.display="none";
document.getElementById("N6").style.display="none";
break;
case 4:
document.getElementById("N1").style.display="none";
document.getElementById("N2").style.display="none";
document.getElementById("N3").style.display="none";
document.getElementById("N4").style.display="block";
document.getElementById("N5").style.display="none";
document.getElementById("N6").style.display="none";
break;
case 5:
document.getElementById("N1").style.display="none";
document.getElementById("N2").style.display="none";
document.getElementById("N3").style.display="none";
document.getElementById("N4").style.display="none";
document.getElementById("N5").style.display="block";
document.getElementById("N6").style.display="none";
break;
case 6:
document.getElementById("N1").style.display="none";
document.getElementById("N2").style.display="none";
document.getElementById("N3").style.display="none";
document.getElementById("N4").style.display="none";
document.getElementById("N5").style.display="none";
document.getElementById("N6").style.display="block";
break;

查看更多 风讯cms教程  风讯cms模板

共4页上一页1234下一页
来源:模板无忧//所属分类:风讯Cms教程/更新时间:2007-02-22
相关风讯Cms教程