工作,我有jQuery腳本的此位,可以在這裏找到:http://jsfiddle.net/RUqNN/45/jQuery的不是在WordPress
當我將這一劇本到我的WordPress模板,我不工作。
我檢查了jquery源代碼鏈接,重寫了代碼,沒有任何工作。
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$(".move").toggle(
function() {
$("#teetimetag").animate({
right: "0px"
}, "normal");
},function() {
$("#teetimetag").animate({
right: "-200px"
}, "normal");
});
});
</script>
<div id="teetimetag">
<img class="move" src="http://test.tooheavytoskydive.com/wp-content/themes/newtheme/images/flag.png" style="float: left;" />
<div style="margin: 15px 0 0 50px;">
<a href="http://test.tooheavytoskydive.com/reservations/" style="color: #FFF; font-weight: bold; font-size: 17px;">Reserve your Tee-Time</a>
</div>
</div>
</body>
</html>
這是使用wordpress的免費版本嗎?他們是否限制添加自己的js? – 2012-04-14 14:05:03
是免費版本。我從來沒有聽說過他們限制JS。我使用了大量使用它的插件。 – Plummer 2012-04-14 14:09:27