| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1255 人关注过本帖
标题:这个是javascript写的吗?
只看楼主 加入收藏
pchen_88
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-18
收藏
 问题点数:0 回复次数:6 
这个是javascript写的吗?
请各位大虾帮忙指点一下!  
小弟昨天才学!也不知道做
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <title>MiTunes</title>
  
  <style type="text/css">
<!--
.12pText {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
}
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
.14pTitle {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #00509F;
    font-weight: bold;
a  { font:normal 12px ; color:#428EFF; text-decoration:none; }
a:hover  { color:#000000;text-decoration:underline; }.12ptWhite {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFFFFF;

}
a:link {
    color: #FFFFFF;
    text-decoration: none;
}
a:visited {
    text-decoration: none;
    color: #FFCC00;
}
a:hover {
    text-decoration: underline;
    color: #FFFF00;
}
a:active {
    text-decoration: none;
    color: #FF0000;
}
-->

</style>
<script type="text/jscript">
 function cb_input()
{
    var A= alert("Please enter your name!");
    var B = alert ("Sorry,your password is wrong!");
   
   
    if (document.all.MyForm.name.value ==" " )
    {
      return  A;
    }
    if (document.all.MyForm.name.value==" ")
    {
    return B;
    
    }
    return true;
}
</script>
  </head>

   <body bgcolor= #555555>
   

   <table width="80%"  border="0" align="center" cellpadding="3" cellspacing="1"

class="12pText" >
   <tr><td colspan="2" height="40" valign="top"><a href="http://www.

target="_blank"><h>Welcome to our MiTunes !</h></a></td></tr>
 <TR>
  <TH>
<script language="javascript">
<!--
/*Time*/
todayDate = new Date();
date = todayDate.getDate();
month= todayDate.getMonth() +1;
year= todayDate.getYear();
document.write("Today is")
document.write("<br>")
if(navigator.appName == "Netscape")
{
    document.write(1900+year);
    document.write(" Y");
    document.write(month);
    document.write(" M");
    document.write(date);
    document.write(" D");
    document.write("<br>")
}
if(navigator.appVersion.indexOf("MSIE") != -1)
{
document.write(year);
document.write("Y\ ");
document.write(month);
document.write("M\ ");
document.write(date);
document.write("D\ ");
document.write("<br>")
}
if (todayDate.getDay() == 5) document.write("Friday")
if (todayDate.getDay() == 6) document.write("Saturday")
if (todayDate.getDay() == 0) document.write("Sunday")
if (todayDate.getDay() == 1) document.write("Monday")
if (todayDate.getDay() == 2) document.write("Tuesday")
if (todayDate.getDay() == 3) document.write("Wednesday")
if (todayDate.getDay() == 4) document.write("Tuesday")

//-->
/*Time over*/

</script>
<th>
<form name = "MyForm" onsubmit = return  (cb_input()) >
 User:<input type="text" name ="name" >
 Password:<input type ="password" name ="password" >
 <input type ="submit" value ="Submit" name =A1 >
 <input type ="reset" value ="Reset" name =A2 >
</form>
</th>

<tr>
 <td colspan="2" height="40" valign="top"></tr>
  <tr>
    <td colspan="2"><a href="books.htm#000" target="mainFrame">Computer<br /></td>
  </tr>
  <tr>
    <td width="3%">&nbsp;</td>
    <td width="97%"><a href="books.htm#001" target="mainFrame">1.operating system</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="books.htm#002" target="mainFrame"> language</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="books.htm#003" target="mainFrame">3.database technology</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="books.htm#004" target="mainFrame"> network technology</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="books.htm#005" target="mainFrame">5.GSD </a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="books.htm#006" target="mainFrame">6.multimedia technology</a></td>
  </tr>
  <tr>
     <td>&nbsp;</td>
     <td><a href = "boos.htm#007:"targer = "mainFrame">7..........</a> </td>
</tr>
   
</table>

 <table align="center" border =" 0"cellpadding="5" cellspacing="1" bgcolor="" class="12pTxt">
 <tr height=50>
  <td colspan="8" class="14pTitle"><a name="000"></a> </td>
 </tr>
 <tr>
  <td colspan="7" class="14pTitle"><a name="001"><h1>Operating system</h1></td>
 </tr>
  <tr bgcolor="" class="tableHead">
  <td>Number</td>
  <td>BookNub</td>
  <td>BkNam</td>
  <td>Price</td>
  <td>Author</td>
  <td>Year</td>
  <td>ISBN</td>
 </tr>
 <tr>
  <td>1</td>
  <td>TP68150</td>
  <td>Mobile displays </td>
  <td>826</td>
  <td>edited AchintyaK. Bhowmik</td>
 
  <td>2008</td>
  <td>750X</td>
 </tr>
 <tr>
  <td>2</td>
  <td>TPAA0230</td>
  <td>A+ guide to hardware </td>
  <td>555</td>
  <td>Jean Andrews</td>

  <td>2004</td>
  <td>71200</td>
 </tr>
 <tr>
<td>3</td>
  <td>TN00477</td>
  <td>managing, maintaining</td>
  <td>283</td>
  <td>Jean Andrews</td>

  <td>2004</td>
  <td>71210</td>
 </tr>
 <tr>
  <td>4</td>
  <td>TP96260</td>
  <td>ITER  [videorecording] </td>
  <td>480</td>
  <td>European Commission</td>
 
  <td>2004</td>
  <td>7505</td>
 </tr>
 <tr>
<td>5</td>
  <td>TP92970</td>
  <td>Galileo  [videorecording]</td>
  <td>350</td>
  <td>Mostra for the European Commission</td>
 
  <td>2003</td>
  <td>7505</td>
 </tr>
 <tr>
  <td>6</td>
  <td>TP96610</td>
  <td>Geotechnical and geophysical </td>
  <td>881</td>
  <td>Paul W. Mayne.</td>
  
  <td>2004</td>
  <td>7505</td>
 </tr>
 <tr>
  <td>7</td>
  <td>TP64770</td>
  <td>Water reuse system management </td>
  <td>28</td>
  <td>Water  </td>
  
  <td>2001</td>
  <td>7505</td>
 </tr>
 

</table>

 

</body>

</html>


出来的这个是不是?
搜索更多相关主题的帖子: javascript 才学 MiTunes 
2008-08-18 21:33
pchen_88
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-18
收藏
得分:0 
自己先顶 哈!谢谢各位了啊!
2008-08-18 21:46
地盘
Rank: 1
等 级:新手上路
威 望:1
帖 子:27
专家分:0
注 册:2008-3-7
收藏
得分:0 
js写的

[[it] 本帖最后由 地盘 于 2008-8-18 22:03 编辑 [/it]]
2008-08-18 21:59
地盘
Rank: 1
等 级:新手上路
威 望:1
帖 子:27
专家分:0
注 册:2008-3-7
收藏
得分:0 
你可以看这个就清楚了
<script language="javascript">
2008-08-18 22:04
pchen_88
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-18
收藏
得分:0 
就写了那么一点,感觉不太是啊!
2008-08-18 22:12
地盘
Rank: 1
等 级:新手上路
威 望:1
帖 子:27
专家分:0
注 册:2008-3-7
收藏
得分:0 
你的相问的那个是用js写的吗
<script language="javascript">
这里面的就是js代码
</script >
2008-08-18 22:22
pchen_88
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-18
收藏
得分:0 
谢谢大家了!看了。。知道了。。。
2008-08-21 11:47
快速回复:这个是javascript写的吗?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014606 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved