动态歌词中支持暂停滚动,快速向上和向下滚动
按楼主所发修改歌词不能快速向上和向下滚动,参考播放器+FLASH+歌词秀+全按扭(HIDE) For 4.0.0 by oytktk
查找
- function karmaimg($rate, $ratetimes) {
复制代码
上面加:
- function gcxdisp($code) {
- global $discuzcodes;
- $discuzcodes['pcodecount']++;
- $code = htmlspecialchars(str_replace('\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
- $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = "<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="480" bgcolor="#000000"><tr><td rowspan="2"><marquee id="scrolltext" onmouseover=this.stop() onmouseout=this.start() TrueSpeed scrollamount=1 scrolldelay=200 width="455" height="280" direction="up"><font style="font-size: 14pt" color=#FFFFFF><center>$code</center></FONT></marquee></td><td width="30" onmouseover="list3()" onmouseout="list4()" style="Cursor:hand"><font color=#FFFFFF><center>↓</center></font></td></tr><tr><td width="30" onmouseover="list1()" onmouseout="list2()" style="Cursor:hand"><font color=#FFFFFF><center>↑</center></font></td></tr></table>";
- $discuzcodes['codecount']++;
- return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
复制代码
修改include/common.js
结尾加入:
- function list1(){
- scrolltext.scrollDelay=50;
- scrolltext.scrollAmount=2;
- scrolltext.direction="up";
- }
- function list2(){
- scrolltext.scrollDelay=220;
- scrolltext.scrollAmount=1;
- scrolltext.direction="up";
- }
- function list3(){
- scrolltext.scrollDelay=50;
- scrolltext.scrollAmount=2;
- scrolltext.direction="down";
- }
- function list4(){
- scrolltext.scrollDelay=220;
- scrolltext.scrollAmount=1;
- scrolltext.direction="up";
- }
复制代码 |