改變我其中有一個橫幅在_Layout.cshtml停止橫幅和檔案圖片讓鼠標懸停
<img src="../../SitePics/NewBanner.jpg") class="BannerSize" />
和IMG標籤根據當期的logges用戶獲得用戶照片一個MVC項目
<img src="../../@Model.TripPic" class="TripImage" align="left" />
,我已經實現了評級與Jason
<script language="javascript" type="text/javascript" src="../../Scripts/jquery-1.4a2.js"></script>
<script language="javascript" type="text/javascript">
$(function() {
$("img").mouseover(function() {
giveRating($(this), "FilledStar.png");
$(this).css("cursor", "pointer");
});
$("img").mouseout(function() {
giveRating($(this), "EmptyStar.png");
});
$("img").click(function() {
$("img").unbind("mouseout mouseover click");
// call ajax methods to update database
var url = "/Rating/PostRating?rating=" + parseInt($(this).attr("id"));
$.post(url, null, function (data) {
$("#result").text(data);
});
});
});
function giveRating(img, image) {
img.attr("src", "/Content/Images/" + image)
.prevAll("img").attr("src", "/Content/Images/" + image);
}
</script>
<p>
<img src="../../Content/Images/EmptyStar.png" alt="Star Rating" align="middle" id="1" />
<img src="../../Content/Images/EmptyStar.png" alt="Star Rating" align="middle" id="2" />
<img src="../../Content/Images/EmptyStar.png" alt="Star Rating" align="middle" id="3" />
<img src="../../Content/Images/EmptyStar.png" alt="Star Rating" align="middle" id="4" />
<img src="../../Content/Images/EmptyStar.png" alt="Star Rating" align="middle" id="5" />
</p>
<div id="result"></div>
我的問題是我磨片運行程序我的橫幅和檔案圖片後,也會變成空或填充啓動時它運行在輸入/輸出鼠標指針..
請幫我停止橫幅和檔案圖片讓鼠標懸停
輝煌非常感謝阿拉法特 – Niki