2012-12-28 72 views
-8

我已经登录框的网站上,其suposed滑动,但它并没有真正的工作,我不能弄明白为什么,这里的代码:Java脚本不工作

<div style="float:right; width:640px; font-size:10px;"> 
<div style="float:right; margin:5px;" align="right"> 

Pentru a va conecta apasati <a onclick="ShowHide(); return false;" href="#">aici</a><br/> 
<a href="/register.php">Inscriere utilizator nou</a> 
</div> 
<div id="loginbox" class="div_login_box"> 
<form action="/login.php" method="post" name="loginform"> 
<table width="420" border="0"> 
    <tr> 
    <td>E-Mail:</td> 
    <td><input name="email" id="email" type="text" size="15" /></td> 
    <td>Cod:</td> 
    <td><input name="password" id="password" type="password" size="15" /></td> 
    <td><input style="border:none" name="submit" type="image" src="/images/ok.png" border="0" value="Ok" /></td> 
    </tr> 
</table> 

</form> 
</div> 
</div> 

这里在活生生的例子:

http://dev.eurodiet.ro/

+3

您可以将您的javascript代码 – Dineshkani

+2

您的网站,jQuery和许多脚本加载失败。查看js控制台 –

+1

您还没有定义showhide功能。测试你的脚本 –

回答

3

请不要问我们没有自己检查基本的东西来调试你的网站/脚本。

这是Chrome的控制台输出(F12CTRL+SHIFT+i

Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.eurodiet.ro/Scripts/jquery-1.4.2.min.js 
Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.eurodiet.ro/Scripts/swfobject_modified.js 
Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.eurodiet.ro/Scripts/jquery-ui-1.8.5.custom.min.js 
Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.eurodiet.ro/Scripts/eurodiet_scripts.js 
Uncaught ReferenceError: swfobject is not defined dev.eurodiet.ro:147 
Uncaught ReferenceError: swfobject is not defined dev.eurodiet.ro:196 
+0

对不起,我甚至不知道在哪里看,感谢指针。 –

+1

有趣,这是因为我的脚本文件夹是“脚本”,而不是“脚本”一个小型的错字,会让我无休止地“调试”。 Java脚本和ActionScript是CASE SENSITIVE! :) –

+0

如果是这样的话,那么Apache是​​(它是)区分大小写,因为大多数Unix文件系统。无论哪种方式,我很高兴你设法解决这个问题。 –