'; } html += ''; $('body').append(html); } /* 添加视频iframe */ function imgAddVideos(){ var img = $('#banner>img'); var imgWid = img.width(); var imgHei = img.height(); var html = ""; for(var i = 0;i'; html += videoHtml; } $('#mainImg').after(html); } /* 图片加载完成后回调函数 */ function imgOnLoad(){ imgAddRef(); imgAddVideos(); $('#mainImg').css('visibility','visible'); } $('#mainImg').css('visibility','hidden'); $('#mainImg').attr('src','//cdn.qinsilk.com/res/business/activity/mobileDailyActivities/img/98f6af258c5a494290cef3b57139c1d1.png'); $('#mainImg').attr('onload','javascript:imgOnLoad();'); /* 添加底部按钮 */ var buttonName = '立即开通'; var secondButtonName = ''; if(buttonName && secondButtonName){ var btnHtml = ' ' + buttonName +'
' + secondButtonName +'
'; $('body').append(btnHtml); }else if(buttonName){ var btnHtml = ''; $('body').append(btnHtml); }else{ $('body').css('bottom','0px'); } function appendShardBtn() { /* 添加右下角分享按钮 */ var shareButton = ''; $('body').append(shareButton); }; function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }; if (getQueryString('enableShare') == 'true') { appendShardBtn(); };