所以我昨晚终于让我的黑白色东西工作了,但是我在代码中做错了,现在我不知道我做错了什么。我已经找了一个小时了。如果有人可以提供帮助,那就太好了。我想要达到的效果是图像变成灰度,当你将鼠标悬停在它们上面时它们变成全彩色。这个效果曾经工作和停止工作的网站是 http://jamestestblog3.tumblr.com/ .感谢任何可以提供帮助的人。
包含灰度脚本的部分代码:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://www.pryde-design.co.uk/projects/jQGreyScale/greyScale.js"></script>
<script>
$(function() {
$('.greyScale').hide().fadeIn(1000); // fade in the grayscaled images to avoid visual jump
});
$(window).load(function () { // user window.load to ensure images have been loaded
$('.greyScale').greyScale({
fadeTime: 500 // call the plugin with non-defult fadeTime (default: 400ms)
});
});
</script>
<img src="{PhotoURL-250}" class="greyScale" /></a>
最佳答案
您的服务似乎已超出配额?
查看您站点的控制台,我可以看到此错误
Failed to load resource: the server responded with a status of 503 (Service Unavailable)
如果您点击链接,它会说您已超过配额:
Over Quota
This Google App Engine application is temporarily over its serving quota. Please try again later.
关于jquery - 我的黑白 --> 彩色效果坏了,我不知道为什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8393964/