类型:转载 责任编辑:asp 日期:2007/03/01
1. 在asp中,为什么字体控制不了?请看如下代码(这是一个文字依次出现的效果):
<script>
<!--
var count=0
function play(){
msg=borba.innertext
comp=msg.length
type()
}
function type(){
if(count<=comp){
borba.innertext=msg.substring(0,count)
count++
settimeout("type()",200)}
else{
count=0
play()
}}
//-->
</script>
<body onload="play()">
<span id="borba" style="position:absolute; left:152px; top:553px; width:460px; height:30px; z-index:1><font color="#ffffff" size="5" face="黑体"><strong>程序员大本营!</font></strong></span>
2.接上一个问题,上述中层的位置左边是个固定值,但现在我不想绝对固定,而是和某一位置相对固定,该怎么办?(即窗口最大化时和不是最大化时层的位置要有变化)。
推荐阅读
1.<script>
<!--
var count=0
function play(){
msg=borba.innertext
comp=msg.length
type()
}
function type(){
if(count<=comp){
borba.innertext=msg.substring(0,count)
count++
settimeout("type()",200)}
else{
count=0
play()
}}
//-->
</script>
<body onload="play()">
<strong><i><span id="borba" style="position:absolute; left:152px; top:553px; width:460px; height:30px; z-index: 1;color: #cceeff; font-size: 18pt">
程序员大本营!</span></strong></i>
2.
http://www.online.jl.cn/it/file/first/index07.htm
http://www.fox-design.net/foxstudio/tech/doc/dreamweaver_layer.asp