Disucz! 7.0音乐附件自动播放
此功能是音乐附件自动播放而不是美化手动修改版:
打开 templates/default/discuzcode.htm 文件
然后找到<!--{if $attach['attachimg']}-->
<!--{if !IS_ROBOT}-->
<dl class="t_attachlist attachimg">上面加<dl>
<!--{if fileext($attach['filename']) == 'mp3'}-->
<br>
<TABLE width="380" border=1 align=center cellPadding=0 cellSpacing=0 borderColor=#000000 bgColor=#000000 style="WIDTH: 438px; HEIGHT: 176px">
<TBODY><TR><TD><table style="border-right: #d088d8 3px dotted; border-top: #92b847 3px dotted; border-left: #8cbac0 3px dotted; border-bottom: #cc93ae 3px dotted" cellspacing="0" cellpadding="0"><tbody><tr><td><table bordercolor="#666666" border="1"><tbody><tr><td><p><embed style="FILTER: Xray" type="audio/mpeg" loop="-1" enablecontextmenu="0" autostart="true" volume="0" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701" flename="mp" ShowStatusBar="1" src="attachments/$attachurl/$attach" width="100%" height="67"></embed></P></TD></TR><TR><TD><TABLE style="WIDTH: 100%" borderColor=#333333 cellSpacing=0 cellPadding=3 align=center background="" border=1><TBODY><TR><TD width="25%" background=""><P align=center><a onclick=return(confirm("对不起!操作失败.."+this.href+"你需要回复才能下载此首音乐"))><A href="attachments/$attachurl/$attach" target="_blank"><FONT color=#777777>[ 音频下载 ]</FONT></A></a></P></TD><TD width="25%" background=""><P align=center><SCRIPT language=javascript type=text/javascript>
function copyToClipBoard()
{
var clipBoardContent='';
clipBoardContent+="http://www.ad119.cn/bbs/attachments/$attachurl/$attach";window.clipboardData.setData("Text",clipBoardContent);
alert("音乐连接地址已经复制成功!请继续支持嘉园社区!");
}
</SCRIPT>
<A title=点击复制音乐连接地址 onclick=copyToClipBoard()><FONT color=#777777>[ 复制链接 ]</FONT></A></P></TD><TD width="25%" background=""><P align=center><a href="forum-8-1.html" target=_blank><FONT color=#777777>[ 音乐专区 ]</FONT></a></P></TD><TD width="25%" background=""><P align=center><a href="task.php" target=_blank><FONT color=#777777>[ 做任务啦 ]</FONT></a></P></TD></TR></TBODY></TABLE><TABLE style="WIDTH: 100%" borderColor=#000000 cellSpacing=0 align=center cellPadding=0 background="" border=1><TBODY><TR><TD> </TD>
</TR></TBODY></TABLE><TABLE style="WIDTH: 100%" borderColor=#333333 cellSpacing=0 align=center cellPadding=0 background="" border=1><TBODY><TR><TD><FONT color=#555555><P align=center>打造时尚流行音乐支持属于我们的领域用音乐叫醒你的耳朵<img src="http://http://www.ad119.cn/bbs/images/logo.gif" width="502" height="7" border=0 style="WIDTH: 395px; HEIGHT: 7px"></P>
</FONT></TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><br>
<!--{/if}-->
<!--{if fileext($attach['filename']) == 'wma'}-->
<br>
<TABLE width="380" border=1 align=center cellPadding=0 cellSpacing=0 borderColor=#000000 bgColor=#000000 style="WIDTH: 438px; HEIGHT: 176px">
<TBODY><TR><TD><table style="border-right: #d088d8 3px dotted; border-top: #92b847 3px dotted; border-left: #8cbac0 3px dotted; border-bottom: #cc93ae 3px dotted" cellspacing="0" cellpadding="0"><tbody><tr><td><table bordercolor="#666666" border="1"><tbody><tr><td><p><embed style="FILTER: Xray" type="audio/mpeg" loop="-1" enablecontextmenu="0" autostart="true" volume="0" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#version=5,1,52,701" flename="mp" ShowStatusBar="1" src="attachments/$attachurl/$attach" width="100%" height="67"></embed></P></TD></TR><TR><TD><TABLE style="WIDTH: 100%" borderColor=#333333 cellSpacing=0 cellPadding=3 align=center background="" border=1><TBODY><TR><TD width="25%" background=""><P align=center><a onclick=return(confirm("对不起!操作失败.."+this.href+"你需要回复才能下载此首音乐"))><A href="attachments/$attachurl/$attach" target="_blank"><FONT color=#777777>[ 音频下载 ]</FONT></A></a></P></TD><TD width="25%" background=""><P align=center><SCRIPT language=javascript type=text/javascript>
function copyToClipBoard()
{
var clipBoardContent='';
clipBoardContent+="http://www.ad119.cn/bbs/attachments/$attachurl/$attach";window.clipboardData.setData("Text",clipBoardContent);
alert("音乐连接地址已经复制成功!请继续支持江西广告网!");
}
</SCRIPT>
<A title=点击复制音乐连接地址 onclick=copyToClipBoard()><FONT color=#777777>[ 复制链接 ]</FONT></A></P></TD><TD width="25%" background=""><P align=center><a href="换成你的地址" target=_blank><FONT color=#777777>[ 音乐专区 ]</FONT></a></P></TD><TD width="25%" background=""><P align=center><a href="task.php" target=_blank><FONT color=#777777>[ 做任务啦 ]</FONT></a></P></TD></TR></TBODY></TABLE><TABLE style="WIDTH: 100%" borderColor=#000000 cellSpacing=0 align=center cellPadding=0 background="" border=1><TBODY><TR><TD> </TD>
</TR></TBODY></TABLE><TABLE style="WIDTH: 100%" borderColor=#333333 cellSpacing=0 align=center cellPadding=0 background="" border=1><TBODY><TR><TD><FONT color=#555555><P align=center>打造时尚流行音乐支持属于我们的领域用音乐叫醒你的耳朵<img src="http://http://www.ad119.cn/bbs/images/logo.gif" width="502" height="7" border=0 style="WIDTH: 395px; HEIGHT: 7px"></P>
</FONT></TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><br>
<!--{/if}-->
</dl>请将http://www.ad119.cn/bbs/ 里的图片地址换成你想要的地址!!!!
更新缓存!!!
页:
[1]