- 积分
- 19754
- 经验
- 1998 点
- 热情
- 1987 点
- 魅力
- 145 点
- 信誉
- 1406 度
- 金币
- 2571 枚
- 钻石
- 41 颗
- 蓝光币
- 10 ¥
Forum CEO
- 金币
- 2571 枚
- 体力
- 12349 点
|
以飞飞PHP1.8添加为例
实际效果图:
打开tpl/default/pp_vod.html 将地址循环标签换成以下,并上传thunderBatch.js到当前模板目录下面(与style.css同级)- <script src="https://pstatic.code.com/js/webThunderDetect.js"></script>
- <script src="https://pstatic.code.com/js/base64.js"></script>
- <script type="text/javascript" src="{$tpl}thunderBatch.js" charset="utf-8"></script>
复制代码 参考此调用代码- <volist name="ppplay" id="ppvod">
- <div id="datal"><dl class="tit"><dt>影片来源:{$ppvod.servername}{$ppvod.playname}</dt></dl>
- <div class="vshow"><div class="vpl">
- <eq name="ppvod.playname" value="down">
- <table border="0" cellpadding="0" cellspacing="0"><script>
- var GvodUrls="<volist name="ppvod['son']" id="ppvodson" key="k"><neq name="k" value="1">###</neq>{$ppvodson.playpath}</volist>";var GvodUrlArray = new Array();GvodUrlArray = GvodUrls.split("###");GvodUrlLen = GvodUrlArray.length;var j=0;
- for(var i=0;i<GvodUrlLen;i++){
- j++;
- if (j==1){uclass = "class=post2";j=-1;}else{uclass="";}
- document.write('<tr><td width="6%" '+uclass+'>'+(i+1)+'.<input type="checkbox" class="CopyAddr" checked="true" value="'+GvodUrlArray[i]+'" name="CopyAddr" /></td><td width="84%" '+uclass+'>'+GvodUrlArray[i]+'</td><td width="8%" align="center" '+uclass+'><a oncontextmenu=ThunderNetwork_SetHref(this) onclick="return OnDownloadClick_Simple(this,2,4)" href="#" thunderResTitle="" thunderType="" thunderPid="34800" thunderHref="' + ThunderEncode(GvodUrlArray[i]) + '">迅雷下载</a></td></tr>');
- }</script>
- <tr><td align="left" colspan="3"><input type="checkbox" id="allcheck" name="checkall" checked="true" onClick="CheckAll()" checked /> <label for="checkall">全选</label> <input type="button" value="复制链接到剪贴板" class="button" onClick="CopyToClip()"/> <input type="button" value="迅雷批量下载" class="button" onClick="thunderBatchTask()"/></td></tr>
- </table>
- <else/>
- <ul><volist name="ppvod['son']" id="ppvod"><a href="{$ppvod.playurl}" target="_blank">{$ppvod.playname}</a></volist></ul>
- </eq>
- </div></div>
- </div>
- </volist>
复制代码
Plus_迅雷批量下载.rar
(65.98 KB, 下载次数: 20)
|
|