/ Vijos / 讨论 / Vijos /

搜索栏怎么用啊

左上角“个人通过/递交”的右边的搜索栏,怎么用啊

7 条评论

  • @ 2013-12-29 16:19:51

    function myeh_search(event)
    {
    if (event.type == 'keydown' && event.which != 13)
    return;
    window.open('https://www.google.com.hk/search?q=' + encodeURIComponent('site:vijos.org ' + $("#anno .c-wrap .right .search .searchbox").val()));

    }
    \(("#anno .c-wrap .right .search .searchbtn").bind('keydown click', myeh_search);
    \)("#anno .c-wrap .right .search .searchbox").attr('placeholder','').bind('keydown', myeh_search);

  • @ 2013-12-29 16:19:29

    function myeh_search(event)
    {
    if (event.type == 'keydown' && event.which != 13)
    return;
    window.open('https://www.google.com.hk/search?q=' + encodeURIComponent('site:vijos.org ' + $("#anno .c-wrap .right .search .searchbox").val()));

    }
    \(("#anno .c-wrap .right .search .searchbtn").bind('keydown click', myeh_search);
    \)("#anno .c-wrap .right .search .searchbox").attr('placeholder','').bind('keydown', myeh_search);

  • @ 2013-12-29 16:19:21

    function myeh_search(event)
    {
    if (event.type == 'keydown' && event.which != 13)
    return;
    window.open('https://www.google.com.hk/search?q=' + encodeURIComponent('site:vijos.org ' + $("#anno .c-wrap .right .search .searchbox").val()));

    }
    \(("#anno .c-wrap .right .search .searchbtn").bind('keydown click', myeh_search);
    \)("#anno .c-wrap .right .search .searchbox").attr('placeholder','').bind('keydown', myeh_search);

  • @ 2013-04-09 00:28:37

    。。留言界面似乎有一些 bug)。

  • @ 2013-04-05 00:33:47

    作为用户,您可以使用自定义js来实现一些好玩的功能。

    比如可以添加如下代码来实现跳转到google的搜索功能:

    function myeh_search(event)
    {
    if (event.type == 'keydown' && event.which != 13)
    return;
    window.open('https://www.google.com.hk/search?q=' + encodeURIComponent('site:vijos.org ' + $("#anno .c-wrap .right .search .searchbox").val()));

    }
    \(("#anno .c-wrap .right .search .searchbtn").bind('keydown click', myeh_search);
    \)("#anno .c-wrap .right .search .searchbox").attr('placeholder','').bind('keydown', myeh_search);

    • @ 2013-04-06 09:14:29

      好东西要顶。

    • @ 2013-04-06 17:51:18

      原来默认就有jq。从来没好好看过vj的代码。

  • @ 2013-04-04 23:55:29

    偏要用搜索在google中加入site:www.vijos.org 不就好了
    我觉得世界上最逗的事情就是一个网站自己做搜索
    我都懒得说你

    • @ 2013-04-06 09:12:30

      啊啊据说内部考虑过采用google搜索方案。

    • @ 2013-04-07 23:46:38

      我也懒得。

  • @ 2013-03-16 17:10:06

    都写着搜索未实现还用。。。

  • 1