网页制作高手请进我在网上找了个仿;color:#ffffff;b
2005-10-22 22:55:33x***
我在网上找了个仿 ;color:#ffffff;border-top:1pxsolid#FFFFFF;font-size:9pt;cursor:hand;}.contentStyle{background-color:#eeffee;color:blue;font-size:9pt;}a{color:blue;}body{font-size:9pt;}</style></head><body><scriptlanguage="JavaScript"><!--varlayerTop=20;//菜单顶边距
var layerLeft=30; //菜单左边距
var layerWidth=140; //菜单总宽
var titleHeight=20; //标题栏高度
var contentHeight=200; //内容区高度
var stepNo=10; //移动步数,数值越大移动越慢
var itemNo=0;runtimes=0;
document.write('<span id=itemsLayer style="position:absolute;overflow:hidden;border:1px solid #008800;left:'+layerLeft+';top:'+layerTop+';width:'+layerWidth+';">');
function addItem(itemTitle,itemContent){
itemHTML='<div id=item'+itemNo+' itemIndex='+itemNo+' style="position:relative;left:0;top:'+(-contentHeight*itemNo)+';width:'+layerWidth+';"><table width=100% cellspacing="0" cellpadding="0">'+
'<tr><td height='+titleHeight+' onclick=changeItem('+itemNo+') class="titleStyle" align=center>'+itemTitle+'</td></tr>'+
'<tr><td height='+contentHeight+' class="contentStyle">'+itemContent+'</td></tr></table></div>';
document.write(itemHTML);
itemNo++;
}
//添加菜单标题和内容,可任意多项,注意格式:
addItem('欢迎','<BR> 欢迎光临设计在线!');
addItem('网页陶吧','<center><a href="#">网页工具</a> <BR><BR><a href="#">技术平台</a> <BR><BR><a href="#">设计理念</a> <BR><BR><a href="#">更多</a></center>');
addItem('美工教室','<center><a href="#">平面设计 </a> <BR><BR><a href="#">三维空间</a> <BR><BR><a href="#">设计基础</a> <BR><BR><a href="#">更多..</a></center>');
addItem('Flash','<center><a href="#">基础教程</a> <BR><BR><a href="#">技巧运用</a> <BR><BR><a href="#">实例剖析</a> <BR><BR><a href="#">更多..</a></center>');
addItem('多媒体','<center><a href="#">DIRECTOR</a> <BR><BR><a href="#">Authorware</a> <BR><BR><a href="#">更多..</a></center>');
addItem('精品赏析','<center><a href="#">设计精品</a></center>');
document.write('</span>')
yle.height=itemNo*titleHeight+contentHeight;
toItemIndex=itemNo-1;onItemIndex=itemNo-1;
function changeItem(clickItemIndex){
toItemIndex=clickItemIndex;
if(toItemIndex-onItemIndex>0) moveUp(); else moveDown();
runtimes++;
if(runtimes>=stepNo){
onItemIndex=toItemIndex;
runtimes=0;}
else
setTimeout("changeItem(toItemIndex)",10);
}
function moveUp(){
for(i=onItemIndex+1;i<=toItemIndex;i++)
eval(' em'+i+'. p=parseInt( em'+i+'. p)-contentHeight/stepNo;');
}
function moveDown(){
for(i=onItemIndex;i>toItemIndex;i--)
eval(' em'+i+'. p=parseInt( em'+i+'. p)+contentHeight/stepNo;');
}
changeItem(0);
//-->
</script>
</body>
</html>
问题1:为什么该脚本不能在Dreamwevar MX2004的设计视图里进行编辑?
问题2:为什么该脚本不能在IE6.0.2900中显示出来?而只能在傲游、QQ流畅器中显示出来?
问题3:怎么为该脚本内的文字增加超级链接?网页制作高手请进我在网上找了个仿;color:#ffffff;border-top:1pxsolid#FFFFFF;font-size:9pt;cursor:h?
最佳回答
2005-10-23 10:03:28
2005-10-23 00:00:20
很赞哦! (258)
相关文章
- 网页制作高手请进在网页制作方面有
- 网页制作高手请进我想学dream
- 网页制做高手请进.如何从自己建的
- 网页制作高手请进在网页中怎样让小
- 网页制作高手请进<SCRIPTl
- 网页制作高手请进我用html制作
- 网页高高手请进!自动生成的HTM
- 关于网页制作,高手请进!我刚学了
- 设置网页鼠标点击声音我想让HTM
- 网页制作高手帮帮忙啊问下,怎么把
- 高手请进我在浏览网站时为什么所有
- 班级网页怎么制作啊!!!高手进!
- 网页高手请进!!如何用ps或FW
- 关于内联框架的问题<iframe
- 网页模版制作高手请进?我正准备将
- 高手请进我在做网页时需要从网上弄
- 网页制作高手请进.请问应该在代码
- 网页大问题!!!请问网页制作高手
- 网页制作高手请进<scriptl
- 长期卧床病人如何预防褥疮?
- 照顾长期卧床病人怎么避免褥疮产生