mat*_*lus 1 javascript firefox jquery asp.net-mvc-3
此代码适用于IE8,Crome和Safari,但不适用于Firefox:
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script type="text/jscript">
alert("wazzup");
$(document).ready(function () {
$(".MathLink").hover(function () {
$(this).css("color", "#d7d7d7");
}, function () {
$(this).css("color", "#FFFFFF");
});
$("#betyg_textblock").click(function () {
window.open("http://hogrebetyg.se/");
})
$("#roids_textblock").click(function () {
window.open("http://www.kongregate.com/games/irradiance_se/roids?acomplete=roids");
})
$(".servicesDiv").mouseenter(function (event) {
if ($(this).css("height") == "45px") {
$(".servicesDiv").animate({
height: "45px"
}, 300);
$(this).animate({
height: "100px"
}, 300, function () {
$(".servicesDiv").clearQueue();
});
}
});
$(".news").click(function (event) {
if ($(this).css("height") == "53px") {
$(this).animate({
height: "100%"
}, 400, function () {
$(".news").clearQueue();
});
}
else {
$(this).animate({
height: "53px"
}, 400, function () {
$(".news").clearQueue();
});
}
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
我不知道为什么.请帮忙.
请参阅以下内容:
文/ JavaScript的
Opera 7.54+
IE 5+
Firefox 1.0.7+
Safari 2.0.3+
iCab 3 Beta 394
Camino 2006021400
文/ JScript的
Opera 7.54+
IE 5+
Safari 2.0.3+
将其更改为 text/javascript
参考:http://sachabarber.net/?p = 824 AND http://krijnhoetmer.nl/stuff/javascript/mime-types/
例如
<script type="text/jscript"> /*Code*/ </script>
Run Code Online (Sandbox Code Playgroud)
至
<script type="text/javascript"> /*Code*/ </script>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
725 次 |
| 最近记录: |