尤娜 发表于 2014-3-22 11:45:58

小甲鱼的小助理代码在哪里

谁知道超萌超可爱的小助理代码啊

福禄娃娃 发表于 2014-3-22 12:01:21

//右键菜单
///////////////////////////////////
jQuery(document).ready(function ($) {
    $("#spig").mousedown(function (e) {
      if(e.which==3){
      showMessage("恭喜你,发现秘密通道:<br /><br /><a href=\"http://fishc.taobao.com\" title=\"资源打包\">资源打包</a>      <a href=\"http://bbs.fishc.com\" title=\"交流论坛\">交流论坛</a>",10000);
}
});
$("#spig").bind("contextmenu", function(e) {
    return false;
});
});

//鼠标在消息上时
jQuery(document).ready(function ($) {
    $("#message").hover(function () {
       $("#message").fadeTo("100", 1);
   });
});


//鼠标在上方时
jQuery(document).ready(function ($) {
    //$(".mumu").jrumble({rangeX: 2,rangeY: 2,rangeRot: 1});
    $(".mumu").mouseover(function () {
       $(".mumu").fadeTo("300", 0.3);
       msgs = ["买个优盘支持小甲鱼,我就跟你玩~", "本小助理可远观不可亵玩!", "我会隐身哦!嘿嘿!", "别动手动脚的,把手拿开!!", "再不把手拿开小心我横竖竖你!!", "小甲鱼,他摸我,呜呜呜呜~~~", "你把手拿开我就出来!"];
       var i = Math.floor(Math.random() * msgs.length);
      showMessage(msgs);
    });
    $(".mumu").mouseout(function () {
      $(".mumu").fadeTo("300", 1)
    });
});

//开始
jQuery(document).ready(function ($) {
    if (isindex) { //如果是主页
      var now = (new Date()).getHours();
      if (now > 0 && now <= 6) {
            showMessage(visitor + ' 你是夜猫子呀?还不睡觉,明天起的来么你?', 6000);
      } else if (now > 6 && now <= 11) {
            showMessage(visitor + ' 早上好,早起的鸟儿有虫吃噢!早起的虫儿被鸟吃,你是鸟儿还是虫儿?嘻嘻!', 6000);
      } else if (now > 11 && now <= 14) {
            showMessage(visitor + ' 中午了,吃饭了么?不要饿着了,饿死了谁来挺我呀!', 6000);
      } else if (now > 14 && now <= 18) {
            showMessage(visitor + ' 中午的时光真难熬!还好有你在!', 6000);
      } else {
            showMessage(visitor + ' 快来逗我玩吧!我好无聊啊~~', 6000);
      }
    }
    else {
      showMessage('欢迎' + visitor + '来到<span style="color:#0099cc;">鱼C工作室</span> ' + title + ' ', 6000);
    }
    $(".spig").animate({
      top: $(".spig").offset().top + 300,
      left: document.body.offsetWidth - 160
    },
        {
          queue: false,
          duration: 1000
        });
//    window.setTimeout(function () {
//      showMessage("下面播报明日天气<iframe name=\"xidie\" src=\"http://m.weather.com.cn/m/pn1/weather.htm\"frameborder=\“0\” scrolling=\"no\" height=\"15px\"width=\"130px\" allowtransparency=\"true\" ></iframe>", 10000);
//    },
//        4000);
});

//鼠标在某些元素上方时
jQuery(document).ready(function ($) {
    $('h2 a').click(function () {//标题被点击时
      showMessage('正在用吃奶的劲加载《<span style="color:#0099cc;">' + $(this).text() + '</span>》请稍候');
    });
    $('h2 a').mouseover(function () {
      showMessage('要看看《<span style="color:#0099cc;">' + $(this).text() + '</span>》这篇文章么?');
    });
    $('#prev-page').mouseover(function(){
      showMessage('要翻到上一页吗?');
    });
    $('#next-page').mouseover(function(){
      showMessage('要翻到下一页吗?');
    });
    $('#index-links li a').mouseover(function () {
      showMessage('去 <span style="color:#0099cc;">' + $(this).text() + '</span> 逛逛');
    });
    $('.comments').mouseover(function () {
      showMessage('<span style="color:#0099cc;">' + visitor + '</span> 向评论栏出发吧!');
    });
    $('#submit').mouseover(function () {
      showMessage('确认提交了么?');
    });
    $('#s').focus(function () {
      showMessage('输入你想搜索的关键词再按Enter(回车)键就可以搜索啦!');
    });
    $('#go-prev').mouseover(function () {
      showMessage('点它可以后退哦!');
    });
    $('#go-next').mouseover(function () {
      showMessage('点它可以前进哦!');
    });
    $('#refresh').mouseover(function () {
      showMessage('点它可以重新载入此页哦!');
    });
    $('#go-home').mouseover(function () {
      showMessage('点它就可以回到首页啦!');
    });
    $('#addfav').mouseover(function () {
      showMessage('点它可以把此页加入书签哦!');
    });
    $('#nav-two a').mouseover(function () {
      showMessage('嘘,从这里可以进入控制面板的哦!');
    });
    $('.post-category a').mouseover(function () {
      showMessage('点击查看此分类下得所有文章');
    });
    $('.post-heat a').mouseover(function () {
      showMessage('点它可以直接跳到评论列表处.');
    });
    $('#tho-shareto span a').mouseover(function () {
      showMessage('你知道吗?点它可以分享本文到'+$(this).attr('title'));
    });
    $('#switch-to-wap').mouseover(function(){
      showMessage('点击可以切换到手机版博客版面');
    });
});


//无聊讲点什么
jQuery(document).ready(function ($) {

    window.setInterval(function () {
      msgs = ["只有您的支持,小甲鱼才能有收入、才能靠专心制作最优秀的视频教程活下去、才能无条件持续给大家提供一个优秀的学习互助平台!", "好无聊哦,你都不陪我玩~", "…@……!………", "^%#&*!@*(&#)(!)(", "我是小甲鱼的小小助理哦~_~", "我可爱吧!嘻嘻!~^_^!~~","谁淫荡呀?~谁淫荡?,你淫荡呀!~~你淫荡!~~","从前有座山,山上有座庙,庙里有个老和尚给小和尚讲故事,讲:“从前有座……”"];
      var i = Math.floor(Math.random() * msgs.length);
      showMessage(msgs, 10000);
    }, 35000);
});

//无聊动动
jQuery(document).ready(function ($) {
    window.setInterval(function () {
      msgs = ["只有您的支持,小甲鱼才能有收入、才能靠专心制作最优秀的视频教程活下去、才能无条件持续给大家提供一个优秀的学习互助平台!", "乾坤大挪移!", "我飘过来了!~", "我飘过去了", "我得意地飘!~飘!~"];
      var i = Math.floor(Math.random() * msgs.length);
      s = ;
      var i1 = Math.floor(Math.random() * s.length);
      var i2 = Math.floor(Math.random() * s.length);
            $(".spig").animate({
            left: document.body.offsetWidth/2*(1+s),
            top:document.body.offsetheight/2*(1+s)
      },
                        {
                          duration: 2000,
                          complete: showMessage(msgs)
                        });
    }, 45000);
});

//评论资料
jQuery(document).ready(function ($) {
    $("#author").click(function () {
      showMessage("留下你的尊姓大名!");
      $(".spig").animate({
            top: $("#author").offset().top - 70,
            left: $("#author").offset().left - 170
      },
                {
                  queue: false,
                  duration: 1000
                });
    });
    $("#email").click(function () {
      showMessage("留下你的邮箱,不然你的头像是小怪物喽!");
      $(".spig").animate({
            top: $("#email").offset().top - 70,
            left: $("#email").offset().left - 170
      },
                {
                  queue: false,
                  duration: 1000
                });
    });
    $("#url").click(function () {

      showMessage("快快告诉我你的家在哪里,好让我去参观参观!");
      $(".spig").animate({
            top: $("#url").offset().top - 70,
            left: $("#url").offset().left - 170
      },
                {
                  queue: false,
                  duration: 1000
                });
    });
    $("#comment").click(function () {
      showMessage("认真填写哦!不然会被认作垃圾评论的!我的乖乖~");
      $(".spig").animate({
            top: $("#comment").offset().top - 70,
            left: $("#comment").offset().left - 170
      },
                {
                  queue: false,
                  duration: 1000
                });
    });
});

var spig_top = 50;
//滚动条移动
jQuery(document).ready(function ($) {
    var f = $(".spig").offset().top;
    $(window).scroll(function () {
      $(".spig").animate({
            top: $(window).scrollTop() + f +300
      },
                {
                  queue: false,
                  duration: 1000
                });
    });
});

//鼠标点击时
jQuery(document).ready(function ($) {
    var stat_click = 0;
    $(".mumu").click(function () {
      if (!ismove) {
            stat_click++;
            if (stat_click > 4) {
                msgs = ["你有完没完呀?", "你已经摸我" + stat_click + "次了,人家脸都红色...", "非礼呀!救命!OH,My ladygaga"];
                var i = Math.floor(Math.random() * msgs.length);
                //showMessage(msgs);
            } else {
                msgs = ["筋斗云!~我飞!", "我跑呀跑呀跑!~~", "别摸我了,再摸我就脸红了!", "惹不起你,我还躲不起你么?", "不要摸我了,我会告诉小甲鱼哥哥来打你的哦!", "干嘛动我呀!小心我咬你!"];
                var i = Math.floor(Math.random() * msgs.length);
                //showMessage(msgs);
            }
      s = ;
      var i1 = Math.floor(Math.random() * s.length);
      var i2 = Math.floor(Math.random() * s.length);
            $(".spig").animate({
            left: document.body.offsetWidth/2*(1+s),
            top:document.body.offsetheight/2*(1+s)
            },
                        {
                          duration: 500,
                          complete: showMessage(msgs)
                        });
      } else {
            ismove = false;
      }
    });
});
//显示消息函数
function showMessage(a, b) {
    if (b == null) b = 10000;
    jQuery("#message").hide().stop();
    jQuery("#message").html(a);
    jQuery("#message").fadeIn();
    jQuery("#message").fadeTo("1", 1);
    jQuery("#message").fadeOut(b);
};

//拖动
var _move = false;
var ismove = false; //移动标记
var _x, _y; //鼠标离控件左上角的相对位置
jQuery(document).ready(function ($) {
    $("#spig").mousedown(function (e) {
      _move = true;
      _x = e.pageX - parseInt($("#spig").css("left"));
      _y = e.pageY - parseInt($("#spig").css("top"));
   });
    $(document).mousemove(function (e) {
      if (_move) {
            var x = e.pageX - _x;
            var y = e.pageY - _y;
            var wx = $(window).width() - $('#spig').width();
            var dy = $(document).height() - $('#spig').height();
            if(x >= 0 && x <= wx && y > 0 && y <= dy) {
                $("#spig").css({
                  top: y,
                  left: x
                }); //控件新位置
            ismove = true;
            }
      }
    }).mouseup(function () {
      _move = false;
    });
});
//////以上是那个小孩的代码

福禄娃娃 发表于 2014-3-22 12:04:29

本帖最后由 福禄娃娃 于 2014-3-22 12:07 编辑

小甲鱼老师啥都会,前端攻城狮HTML5+CSS3+JavaScript+jQuery 4项全能
汇编、C、C++、Delphi、Win32汇编、SDK 语言全收
自助建站、网络安全、破解、脱壳、英语专8、数据结构与算法
PUA大神:lol:泡妞你懂得

Python_PA 发表于 2014-3-22 12:13:33

:curse:这么牛掰

受伤的辉狼 发表于 2014-3-23 11:43:16

真是难得给力的帖子啊。

復襍 发表于 2014-3-23 11:48:15

激动人心,无法言表!楼主真是好人……

贼老贼 发表于 2014-3-23 13:18:37

楼主真是好人……我要试一下

cqxcool 发表于 2014-3-23 13:27:53

激动人心,无法言表!我只说两句……

沉思的牛 发表于 2014-3-23 14:09:33

万能的甲鱼:lol:

fhhhh 发表于 2014-3-24 10:50:49

进来学习一下d

1225937043 发表于 2014-4-1 11:11:45

这代码要怎么用呢

 发表于 2014-5-18 22:18:20

强烈支持楼主ing……

amymirror 发表于 2015-4-22 15:52:39

好贴

尤娜 发表于 2015-4-23 08:25:09

小甲鱼就是这么假啊:titter:

黑龍 发表于 2015-7-17 19:58:31

福禄娃娃 发表于 2014-3-22 12:04
小甲鱼老师啥都会,前端攻城狮HTML5+CSS3+JavaScript+jQuery 4项全能
汇编、C、C++、Delphi、Win32汇编 ...

小甲鱼老师黑站无数

O|-_7-|_从| 发表于 2015-10-4 22:28:34

不知道是不是用PYTHON写的?:lol:

song8356000 发表于 2015-11-11 10:40:33

这是好贴,收下了

Filbert 发表于 2016-6-25 21:47:25

{:10_257:} 英专8耶!!小甲鱼啊~~六级怎么过

来钓鱼 发表于 2017-8-7 14:38:50

6666

贺鹏程1234123 发表于 2018-5-4 16:41:46

我早就知道小甲鱼是万能的{:10_256:}
页: [1] 2
查看完整版本: 小甲鱼的小助理代码在哪里