日期:2014-05-20  浏览次数:20812 次

javascript
请师兄师姐给个javascript的基本语法比较完整的代码,包括尽量多的HTML标签,我主要想重新看看他们的标签和属性的基本用法,现在好多都忘记了,小弟不胜感激!

------解决方案--------------------
HTML code
<html>

<body bgcolor=black leftmargin=0 topmargin=0>

<table border=1 width="100%" height="100%">
<tr>
<form name=loading>
  <td align="center">
  <p style="color:white; font-size:60;">世界因你而美好</p>
    <input type="text" name=chart size=100 style="border-style:none; color:red; background:yellow;font-weight:900;">
    <br>
    <input type="text" name=percent size=100 style="text-align:center;border-style:none; color:red; background:black;">
    <br>
    <input type="button" onclick="count()" value="快点击我">
<script type="text/javascript">
  var bar=0 ;
  var line="||" ;
  var amount = "||" ;
  
  function count()
  {
      bar = bar +2 ;
      amount = amount +line ;
      document.loading.chart.value=amount ;
      document.loading.percent.value=bar+"%" ;
      if(bar<99)
        setTimeout("count()",100);
      else
        window.location="http://www.flash88.net/flash882004y12y9auto3ty/f3/485.swf" ;
  }
</script>
  </td>
 </form>
</tr>

</table>
</body>

</html>