应用母板时出错。请大家帮忙

political 2009-12-09 04:25:35
以下是我在母板(masterpage.master)里中加的一段代码。我做的是一个供求信息网。想用下面的代码实现在所有页面都有一个“我要发布”的连接。但是一加上就有错误。找开masterpage.master时只能打开source面,desgin面总是打不开,说是因为页面有错/。不过还能运行。只是defual.aspx页面的这个“我要发布”连接不能用。其他页面的连接都能打开。
<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}
else {eval(document.object1.top=eval(window.pageYOffset+20));}
setTimeout("makeStatic()",0);}
</script>
<script language="JavaScript1.2">
function positionmenu(){
move(-100)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 100px ;Top : 120px ;100 : 120">')}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="115" bgcolor="#000000">
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}
var text=new Array();
var thelink=new Array();
text[0]="";
thelink[0]="../infoadd.aspx";
var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}
for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=159 background=images/fabu.gif onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD background="images/fabu.gif"><ILAYER><LAYER HEIGHT="18" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
请大家帮忙。谢谢
...全文
83 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lvfeng19806001 2009-12-09
  • 打赏
  • 举报
回复
哎!
political 2009-12-09
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 political 的回复:]
<html>
    <head>
        <title>Not Found </title>
        <style>
        body {font-family:"Verdana";font-weight:normal;font-size: 8pt;color:black;}
        p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
        b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
        h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
        h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
        pre {font-family:"Lucida Console";font-size: 8pt}
        .marker {font-weight: bold; color: black;text-decoration: none;}
        .version {color: gray;}
        .error {margin-bottom: 10px;}
        .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>
    <body bgcolor="white">

            <span> <h1>“/SIS”应用程序中的服务器错误。 <hr width=100% size=1 color=silver> </h1>

            <h2> <i>HTTP 错误 404 - Not Found。 </i> </h2> </span>

            <hr width=100% size=1 color=silver>

            <b>版本信息: </b> ASP.NET Development Server 8.0.0.0

            </font>

    </body>
</html>

[/Quote]


写的是这些
political 2009-12-09
  • 打赏
  • 举报
回复
<html>
<head>
<title>Not Found</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: 8pt;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: 8pt}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">

<span><h1>“/SIS”应用程序中的服务器错误。<hr width=100% size=1 color=silver></h1>

<h2> <i>HTTP 错误 404 - Not Found。</i> </h2></span>

<hr width=100% size=1 color=silver>

<b>版本信息:</b> ASP.NET Development Server 8.0.0.0

</font>

</body>
</html>
wsj1983920 2009-12-09
  • 打赏
  • 举报
回复
查看源代码 看看 我要发布 在html里面写的是什么

lxiron 2009-12-09
  • 打赏
  • 举报
回复
顶一下,看的不是很明白

62,265

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧