Re: Re: nStreamPlayer 0.1 - widget для IPTV (Protocol: rtmp, http, udp, hls, mms)
я тебя уже ткнул, если не вкурил, то обратись к врачу!
я тебя уже ткнул, если не вкурил, то обратись к врачу!
Main.yandexTVdisableSelector = function() { var b_select = document.frames['yandex_tv'].document.getElementsByClassName("b-select"); widgetAPI.putInnerHTML(b_select[0], ''); widgetAPI.putInnerHTML(b_select[1], ''); var b_foot = document.frames['yandex_tv'].document.getElementsByClassName("b-foot")[0]; widgetAPI.putInnerHTML(b_foot, ''); //var h_search = document.frames['yandex_tv'].document.getElementsByClassName("h-search")[0]; //widgetAPI.putInnerHTML(h_search, ''); //var gone = document.frames['yandex_tv'].document.getElementsByClassName("gone"); //for(i=0;i<gone.length;i++) //gone[i].style.display = 'block'; //alert('Dddddddddddddddddddddddd' + document.frames['yandex_tv'].document.getElementsByClassName("b-content")[0].innerHTML); } Main.DisableGone = function() { if(document.frames['yandex_tv']) { className = 'done'; //document.frames['yandex_tv'].styles.className.display = 'none'; //alert('nnnn' + document.frames['yandex_tv'].document.getElementsByClassName("gone").length); var gone = document.frames['yandex_tv'].document.getElementsByClassName("gone"); for(i=0;i<gone.length;i++) gone[i].style.display = 'none'; var h_search = document.frames['yandex_tv'].document.getElementsByClassName("h-search")[1]; widgetAPI.putInnerHTML(h_search, ''); } }
case 65://KEY_CH_DOWN if(Main.yandextv_mode) { Main.scrolling = Main.scrolling + 20; var test = document.frames['yandex_tv'].document.getElementsByTagName('table')[3]; alert('test 1' + test); test.style.margin = Main.scrolling + 'px 0px 0px 0px'; alert('Main.scrolling ' + Main.scrolling); //var h_search = document.frames['yandex_tv'].document.getElementsByClassName("h-search")[0]; // widgetAPI.putInnerHTML(h_search, ''); //document.frames['yandex_tv'].document.getElementsByClassName("h-search")[0].style.display = 'true'; } break; case 68://KEY_CH_UP if(Main.yandextv_mode) { Main.scrolling = Main.scrolling - 20; var test = document.frames['yandex_tv'].document.getElementsByTagName('table')[3]; alert('test 1' + test); test.style.margin = Main.scrolling + 'px 0px 0px 0px'; alert('Main.scrolling ' + Main.scrolling); var h_search = document.frames['yandex_tv'].document.getElementsByClassName("h-search")[0]; widgetAPI.putInnerHTML(h_search, ''); //document.frames['yandex_tv'].document.getElementsByClassName("h-search")[0].style.display = 'true'; } break;
Комментарий