如何创建谷歌效果?

发布于 2024-09-10 00:20:59 字数 376 浏览 3 评论 0原文

可能的重复:
鼠标移动时淡入(就像在 google.com 上一样)

我想知道如何在我的主页上创建谷歌效果。

我想要完全相同的效果。详细解释我如何在我的主页上使用它。

Possible Duplicate:
Fade in on mouse movement (like on google.com)

i wonder how to create google effect on my home page.

i want exacty same effect. explain me in detail to use it on my home page.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

生寂 2024-09-17 00:20:59

您可以使用 jQuery

$('.controlsContainer').fadeIn();

此代码将淡入所有具有 controlsContainer 类的元素。

You can use jQuery:

$('.controlsContainer').fadeIn();

This code will fade in all elements with a class of controlsContainer.

尸血腥色 2024-09-17 00:20:59

用户 JQUERY animate 或 fedindocument mouseover 事件将帮助您

使用 jQuery 创建鼠标悬停淡入淡出效果

例如:

<script type='text/javascript'>
$(document).ready(function(){
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

});
</script>

user JQUERY animate or fedin with document mouseover event will help you

Creating a Mouseover Fade Effect with jQuery

Fore example :

<script type='text/javascript'>
$(document).ready(function(){
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});

});
</script>
古镇旧梦 2024-09-17 00:20:59

检查并学习此链接中的内容http://docs.jquery.com/Main_Page< /强>。它是 jquery 的文档。尝试自己学习,当你遇到问题时可以询问它。

还有这个链接 http://net.tutsplus.com/tutorials/javascript-ajax/15-resources-to-get-you-started-with-jquery-from-scratch/

此链接指向初学者的 jquery 视频教程 http://net.tutsplus.com/articles/web-roundups/jquery-for-absolute-beginners-video-series/

这会对你有帮助

check and learn contents in this link http://docs.jquery.com/Main_Page. its the documentation of jquery. try learn it your self, while doing it if you face problems you query it.

And also this link http://net.tutsplus.com/tutorials/javascript-ajax/15-resources-to-get-you-started-with-jquery-from-scratch/.

this link points to video tutorials of jquery for beginerrs http://net.tutsplus.com/articles/web-roundups/jquery-for-absolute-beginners-video-series/

this will help you

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文