具体修改参见
https://discuz.dismall.com/viewthread.php?tid=180184&extra=page%3D2%26filter%3Ddigest&page=1
将原来viewthread.php得
- $post['ww'] = "<font color=red>四、六级背单词"." [</font><font color=blue>".$word[rand(0,6050)]."</font> <font color=red>]</font>";
复制代码
修改为
- $post['dc'] = $word[rand(0,6050)];
- $post['adc'] = explode("\t",$post['dc']);
- $post['newdc'] = $post['adc'][0];
- $post['szm'] = substr($post['dc'],0,1);
- $post['ww'] = "<font color=red>边灌水边背单词"." [</font><font color=blue>".$post['dc']."</font> <font color=red>]</font>";
复制代码
将viewthread.htm得
改为
- $post[ww] <script language="JavaScript" type="text/javascript">
- <!--
- document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="20" height="20">');
- document.write('<param name="wmode" value="transparent">');
- document.write('<param name="movie" value="http://cb.kingsoft.com/resource/a/en/$post[szm]/$post[newdc].swf" />');
- document.write('<param name="quality" value="high" />');
- document.write('<embed src="http://cb.kingsoft.com/resource/a/en/$post[szm]/$post[newdc].swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="20" height="20"></embed>');
- document.write('</object>');
- //-->
- </script><br>
复制代码
主要是调用了金山词霸网站得发声flash.
[ 本帖最后由 xiang5 于 2005-12-28 23:55 编辑 ] |