部分JS代码:
- //slidedown Effect
- $('.slidedown').hover(function() {
- $('.search').show();
- $(this).children().animate({
- top: '30'
- },
- {
- queue: false,
- duration: 500
- });
- },
- function() {
- $(this).children().animate({
- top: '0'
- },
- {
- queue: false,
- duration: 500
- });
- $('.search').hide();
- });
- //slideleft Effect
- $('.slideleft').hover(function() {
- $(this).children().animate({
- left: '-150'
- },
- {
- queue: false,
- duration: 160
- });
- $('.news').show();
- },
- function() {
- $(this).children().animate({
- left: '0'
- },
- {
- queue: false,
- duration: 160
- });
- $('.news').hide();
- });
- //slideright Effect
- $('.slideright').hover(function() {
- $(this).children().animate({
- left: '140'
- },
- {
- queue: false,
- duration: 160
- });
- $('.news2').show();
- },
- function() {
- $(this).children().animate({
- left: '0'
- },
- {
- queue: false,
- duration: 160
- });
- $('.news2').hide();
- });
- //startMenu Effect
- $('#start').toggle(function() {
- $(this).addClass('click');
- $('#startMenu').slideDown(110);
- $('.container').addClass('small');
- },
- function() {
- $(this).removeClass('click');
- $('#startMenu').slideUp(110);
- $('.container').removeClass('small');
- });
本站欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明: 文章转载自:爱思资源网 http://www.aseoe.com/show-22-135-1.html
转载请注明: 文章转载自:爱思资源网 http://www.aseoe.com/show-22-135-1.html