首页   |   IT资讯   |   综合资讯   |   开发   |   软件   |   问答   |   网络技术   |   网络综合
更多:
当前位置:首页 » 手机数码
文章正文

继续送分!1.为什么字体控制不了? 2. 如何固定层在网页中的位置?

类型:转载   责任编辑: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.接上一个问题,上述中层的位置左边是个固定值,但现在我不想绝对固定,而是和某一位置相对固定,该怎么办?(即窗口最大化时和不是最大化时层的位置要有变化)。  
   
   
 

推荐阅读

  • 英特尔明日将在中国发布四核处理器 [详细内容]
  • 要用就用自己超薄相机 爱国者V60 PLUS上市 [详细内容]
  • 海量诱惑 金邦6款1G内存全线上市 [详细内容]
  • 科技股领涨 美股早盘上涨 [详细内容]
  • 短消息验证进网许可标志方式 [详细内容]
  • IBM史上最轻薄 内外兼修X41笔记本详评 [详细内容]
  • 挤压战 英特尔预期再次调价抢夺AMD份额 [详细内容]
  • 网友回答:
    网友:nba23

    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>

    网友:nba23

    2.  
      http://www.online.jl.cn/it/file/first/index07.htm  
      http://www.fox-design.net/foxstudio/tech/doc/dreamweaver_layer.asp

    .
      最佳浏览:1024X768 MSIE
    ©2007 jqmk.com.cn All Rights Reserved