看板 Programming
作者 標題 [求助]HTML 程式問題
時間 2014年04月19日 Sat. PM 02:28:29
各位好,小妹首PO,最近在寫網頁,但遇到了一些問題
程式碼如下(可以直接跳去看有顏色的部分):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--Link the Spry TabbedPanels JavaScript library--><script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<html xmlns="http://www.w3.org/1999/xhtml">
<!--Link the CSS style sheet that styles the tabbed panel-->
<link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>General data</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
-->
</style>
<script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>顧客資料管理</h1>
<div>
<table width="1040" border="0">
<tr>
<td align="left" nowrap="nowrap">客戶群組</td>
<td align="left" nowrap="nowrap"><input type="text" name="客戶群組" id="客戶群組" /></td>
<td align="left" nowrap="nowrap">客戶編號</td>
<td align="left" nowrap="nowrap"><input type="text" name="客戶編號" id="客戶編號" /></td>
<td align="left" nowrap="nowrap">客戶型態</td>
<td align="left" nowrap="nowrap"><input name="客戶型態" type="text" id="客戶型態" /></td>
<td align="left" nowrap="nowrap">國家</td>
<td align="left" nowrap="nowrap"><input name="國家" type="text" id="國家" /></td>
</tr>
<tr>
<td align="left" nowrap="nowrap">稱謂</td>
<td align="left" nowrap="nowrap" scope="col"><input name="稱謂" type="text" id="稱謂" /></td>
<td align="left" nowrap="nowrap">ID編號</td>
<td align="left" nowrap="nowrap"><input type="text" name="ID編號2" id="ID編號2" /></td>
<td align="left" nowrap="nowrap">不為供應商</td>
<td align="left" nowrap="nowrap"><input name="供應商2" type="text" id="供應商2" /></td>
<td align="left" nowrap="nowrap">網路會員編號</td>
<td align="left" nowrap="nowrap"><input type="text" name="網路會員編號" id="網路會員編號" /></td>
</tr>
<tr>
<td align="left" nowrap="nowrap">姓</td>
<td width="168" align="left" nowrap="nowrap"><input name="姓2" type="text" id="姓2" /></td>
<td align="left" nowrap="nowrap">中文名稱</td>
<td width="168" align="left" nowrap="nowrap"><input type="text" name="中文名稱2" id="中文名稱2" /></td>
<td align="left" nowrap="nowrap">英文名稱</td>
<td width="168" align="left" nowrap="nowrap"><input type="text" name="英文名稱2" id="英文名稱2" /></td>
<td align="left" nowrap="nowrap">簡稱</td>
<td width="168" align="left" nowrap="nowrap"><input type="text" name="簡稱2" id="簡稱2" /></td>
</tr>
<tr>
<td align="left" nowrap="nowrap">電話</td>
<td width="168" align="left" nowrap="nowrap"><input name="電話2" type="text" id="電話2" /></td>
<td align="left" nowrap="nowrap">分機</td>
<td width="168" align="left" nowrap="nowrap"><input name="分機2" type="text" id="分機2" /></td>
<td align="left" nowrap="nowrap">手機</td>
<td width="168" align="left" nowrap="nowrap"><input name="手機2" type="text" id="手機2" /></td>
<td align="left" nowrap="nowrap"> </td>
<td width="168" align="left" nowrap="nowrap"> </td>
</tr>
<tr>
<td align="left" nowrap="nowrap">傳真</td>
<td width="168" align="left" nowrap="nowrap"><input name="傳真2" type="text" id="傳真2" /></td>
<td align="left" nowrap="nowrap">傳真分機</td>
<td width="168" align="left" nowrap="nowrap"><input name="傳真分機2" type="text" id="傳真分機2" /></td>
<td align="left" nowrap="nowrap">E-mail</td>
<td width="168" align="left" nowrap="nowrap"><input type="text" name="email2" id="email2" /></td>
<td align="left" nowrap="nowrap"> </td>
<td width="168" align="left" nowrap="nowrap"> </td>
</tr>
</table>
<p> </p>
<div>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">基本資料</li>
<li class="TabbedPanelsTab" tabindex="0">Sales Vew</li>
<li class="TabbedPanelsTab" tabindex="0">合作夥伴</li>
<li class="TabbedPanelsTab" tabindex="0">聯絡人</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">
<table width="1063" border="1">
<tr>
<td width="150" align="center">郵遞區號</td>
<td width="150" align="center">城市/地區</td>
<td width="150" align="center">地址</td>
<td width="150" align="center">Street2</td>
<td width="150" align="center">Street3</td>
<td width="150" align="center">Street4</td>
<td width="150" align="center">公司統編</td>
</tr>
<script language="javascript" type="text/javascript">
var j=4;
for (var i = 0; i < j; i++) {
document.write("<tr><td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
}
</script>
</table>
</div>
<div class="TabbedPanelsContent">
<table width="1061" border="1">
<tr>
<td align="center">客戶編號</td>
<td align="center">銷售組織</td>
<td align="center">通路</td>
<td align="center">部門</td>
<td align="center">銷售據點</td>
<td align="center">銷售群組</td>
<td align="center">客戶群組</td>
<td align="center">幣別</td>
<td align="center">匯率類型</td>
<td align="center">價格清單</td>
<td align="center">工廠</td>
<td align="center">付款條件</td>
<td align="center">科目指派群組</td>
<td align="center">稅</td>
</tr>
<script language="javascript" type="text/javascript">
var j=8;
for (var i = 0; i < j; i++) {
document.write("<tr><td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
}
</script>
</table>
</div>
<div class="TabbedPanelsContent">
<table width="1063" border="1">
<tr>
<td align="center">客戶編號</td>
<td align="center">銷售組織</td>
<td align="center">通路</td>
<td align="center">部門</td>
<td align="center">發票接收方</td>
<td align="center">付款方</td>
<td align="center">出貨方</td>
<td align="center">Partner function-1</td>
<td align="center">Customer code-1</td>
</tr>
<script language="javascript" type="text/javascript">
var j=8;
for (var i = 0; i < j; i++) {
document.write("<tr><td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
}
</script>
</table>
</div>
<div class="TabbedPanelsContent">
<table width="1060" border="1">
<tr>
<td width="150" align="center">客戶編號</td>
<td width="150" align="center">名字</td>
<td width="50" align="center">姓</td>
<td width="150" align="center">部門</td>
<td width="150" align="center">電話</td>
<td width="150" align="center">分機</td>
<td width="150" align="center">傳真</td>
<td width="150" align="center">傳真分機</td>
<td width="150" align="center">E-mail</td>
</tr>
<script language="javascript" type="text/javascript">
var j=8;
for (var i = 0; i < j; i++) {
document.write("<tr><td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
document.write("<td style='height:20px ; text-align: left;'></td>");
}
</script>
</table>
</div>
</div>
</div>
<p> </p>
</div>
<p> </p>
</div>
<p> </p>
<script type="text/javascript">
<!--
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1",{defaultTab:2});
//-->
</script>
</body>
</html>
OK~~進入正題
首先,我先在我的電腦上直接執行
但是我上傳到伺服器再輸入網址之後
我實在是不知道哪裡出了問題,可以請各位程式大大們幫我解惑嗎?
--
※ 作者: dance50508 時間: 2014-04-19 14:28:29
※ 看板: Programming 文章推薦值: 0 目前人氣: 0 累積人氣: 818
回列表(←)
分享