2014-03-05 45 views
0

我一直在嘗試使用jQuery w8n插件來工作。但它根本不起作用。 我對插件完全陌生我只是複製了它在我所插入的網站上做的事情,然後無法工作。如果有人熟悉這個插件,我會很感激這個幫助。 我使用的網站是http://www.jqueryscript.net/other/Windows-8-Style-jQuery-Notifications-Plugin-w8n.htmljquery w8n插件不起作用

<head> 
<link href="jquery.w8n.css" rel="stylesheet" type="text/css"> 

<link rel="stylesheet" type="text/css" href="jqalert.css"> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 

<!-- <script src="jquery.w8n.js"></script> --> 
<script src="jquery.w8n.min.js"></script> 
<script> 
     $(function() {    
     // Sample 1 
     $('#btnSample1').click(function(){ 
      $.w8n('Default notification', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.'); 
     });     

     }); 
    </script> 
</head> 

<input type="button" id="btnSample1" value="Default"/> 
+0

它工作正常,在演示..你可以給你迄今爲止嘗試過的代碼? –

+0

我複製了演示代碼 – user3328513

+0

還請張貼代碼..你可能錯過了一些東西 –

回答

0

我並沒有在該插件正確的地方尋找。在目錄中,而不是它的簡寫版所需的詳細地址

<script type="text/javascript" src="longversionofwheretofindit"></script> 
+0

這並不能提供問題的答案。要批評或要求作者澄清,在他們的帖子下留下評論 - 你總是可以評論你自己的帖子,一旦你有足夠的[聲譽](http://stackoverflow.com/help/whats-reputation),你會能夠[評論任何帖子](http://stackoverflow.com/help/privileges/comment)。 – moka

+0

我解決了我自己的問題,所以我把它放在評論中,以便它可以解決 – user3328513

+0

如果你已經解決了自己的問題,請儘可能提供解釋和代碼問題的答案,以允許用戶馬上看到必要的信息。 – moka