码迷,mamicode.com
首页 > 其他好文 > 详细

atitit.vod search doc.doc 点播系统搜索功能设计文档

时间:2016-11-06 03:03:12      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:strong   hover   get   hid   down   email   val   document   code   

 

 

 atitit.vod search doc.doc 点播系统搜索功能设计文档

 

按键的enter事件1

Left rig事件1

Up down事件2

 

 

    key_events.key_search = function(e, curr){

        var value = $(‘.searchbox .textbox‘).text();

        xhr.search_keyword(value, function(data){

            render.movie_list_tiny(data);

//ati p89

$(".searchbox").hide();

search_finish();

        });

};

 

按键的enter事件

 

    key_events.key = function(e, curr){

        var value = curr.html();

        $(‘.searchbox .textbox‘).append(value);

    };

    key_events.key_space = function(e, curr){

        $(‘.searchbox .textbox‘).append(‘ ‘);

    };

    key_events.key_backspace = function(e, curr){

        var value = $(‘.searchbox .textbox‘).text();

        $(‘.searchbox .textbox‘).html(value.substr(0, value.length-1));

    };

 

Left rig事件

 

//ati addd recomm  key evente all..code sh nad .n d only recomm

    $(document).on(‘keydown‘, function(e){

        var direction, next_hover;

        //console.log(e.keyCode)

//paa  add e.keyCode==8 backend

 

    if (direction){

var curr_hover_obj=get_curr_hover();

            var from_is_hv_tab = $(curr_hover_obj).hasClass(‘hv_tab‘);

            next_hover = get_next_hover_by_dir(direction);

 

 

 

    // get a next object by direction

    function get_next_hover_by_dir(direction){

        if (!direction) return;

 

        var boundinglist = re_calc_bounding(), intersectedlist = [], n;

Up down事件

 

 

 

作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 

汉字名:艾提拉(艾龙)   EMAIL:1466519819@qq.com

转载请注明来源: http://www.cnblogs.com/attilax/

Atiend

 

 

atitit.vod search doc.doc 点播系统搜索功能设计文档

标签:strong   hover   get   hid   down   email   val   document   code   

原文地址:http://www.cnblogs.com/attilax/p/6034566.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!