播放器的图例:
调用方法不变,还是
1) 在你想出现播放器的地方插入一个层: <div id="speech_player" name="speech_player"></div> 层的id可以自己定。
2)把以下代码放在</body>前面:
<script type="text/javascript" src="http://speech.w3cool.com/swf/speech.js"></script>
<script type="text/javascript">
var _scid = "copytext"; // 你希望朗读的文章块的id;
var _spid = "speech_player"; //显示播放器的id;
_sp_bg = "0xCDDFF3"; //修改成你想要的颜色
_sp_leftbg = "0x357DCE";
_sp_lefticon = "0xF2F2F2";
_sp_rightbg = "0x357DCE";
_sp_rightbghover = "0x4499EE";
_sp_righticon = "0xF2F2F2";
_sp_righticonhover = "0xFFFFFF";
_sp_text = "0x357DCE";
_sp_slider = "0x357DCE";
_sp_track = "0xFFFFFF";
_sp_border = "0xFFFFFF";
_sp_loader = "0x8EC2F4";
speaker();
</script>
文章来源:http://www.w3cool.com/2008/03/25/post_10.html