繁体   English   中英

网站上的导航栏不可点击

[英]Nav Bar on Site not clickable

我最近找到了一个有两个网站的新客户。 我建立了他们的网站之一,但没有真正参与他们的另一个网站。 他们的旧网站自 2012 年以来一直在运行,并且没有对其进行任何更改。 出乎意料的是,他们的导航按钮不再可点击。 我试图研究它,但说实话,我很新,不知道如何处理我没有创建的代码。

来自网站的代码截屏。 http://screencast.com/t/v8UuHhDEpI

实际站点。 www.desertweed.com

有任何想法吗? 谢谢!

menu.js包含此代码以创建菜单。 您不能将表格数据单元格<td>包装在<form> 您可以将<input>包装在<td>内的表单中。

document.write('<DIV id=menu>');
document.write('<TABLE cellpadding=0 cellspacing=1 border=0 bgcolor="#000000" width="100%"><tr><td width="30" background="picts/button.gif">');
document.write('<IMG SRC="picts/spacer.gif" HEIGHT="5" WIDTH="30" border="0"><BR>');

document.write('</td><form action="index.html"><td>');
document.write('<input type="submit" value=" Home " onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');

document.write('</td></form><form action="ag.htm"><td>');
document.write('<input type="submit" value="Agriculture" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');

document.write('</td></form><form action="indust.htm"><td>');
document.write('<input type="submit" value="Industrial" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');

//document.write('</td></form><form action="photos.htm"><td>');
//document.write('<input type="submit" value="Photos" //onmouseover="this.className=\'buttonon\'" //onmouseout="this.className=\'button\'" class="button"><br>');

document.write('<!-- COPY THE NEXT TWO LINES AND PASTE ABOVE THIS LINE TO ADD A BUTTON -->');

document.write('</td></form><form action="msds.htm"><td>');
document.write('<input type="submit" value="MSDS & Labels" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');


document.write('</td></form><form action="contact.htm"><td>');
document.write('<input type="submit" value="Contact" onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');

document.write('</td></form>');
document.write('<td WIDTH="99%" background="picts/button.gif">');
document.write('&nbsp;<br>');
document.write('</td></tr></table></DIV>');

像这样:

document.write('</td><td><form action="index.html">');
document.write('<input type="submit" value=" Home " onmouseover="this.className=\'buttonon\'" onmouseout="this.className=\'button\'" class="button"><br>');

document.write('</form></td><td><form action="ag.htm">');

现在说了这么多。 这些不应该是表格,它们不应该是输入,它们不应该是表单,它们不应该由 Javascript 创建。 这已经过时了十多年。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM