'; } 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/373468de5fa24af2b1d25deea7548436.jpg'); $('#mainImg').attr('onload','javascript:imgOnLoad();'); /* 添加底部按钮 */ var buttonName = '7天试用'; 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(); };