在我的网站上,我包含了这些 jquery 脚本:
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/jquery.countdown.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="js/jwplayer.js"></script>
我想使用 zWeatherFeed:http ://www.zazar.net/developers/jquery/zweatherfeed/
我应该在我的站点标题中包含此代码:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="jquery.zweatherfeed.min.js" type="text/javascript"></script>
但是当我包含 jquery.min.js 时,一些 javascripts,例如:jscroll 窗格不起作用,另一个问题是这样的:
在我插入的正文中:
<div id="test"></div>
加载网站后:
<div id="test" class="weatherFeed"></div> created but not load sub divs for example:
<div class="weatherItem odd day">
<div class="weatherCity">... (city) ...</div>
<div class="weatherCountry">... (country) ...</div>
<div class="weatherTemp">... (temperature) ...</div>
<div class="weatherDesc">... (condition) ...</div>