恋雾迷尘论坛's Archiver

爱雨冷雪 发表于 2006-3-12 14:04

英语沙龙 1.0 For All Version

安装方法:

打开模板文件 footer.htm, 在文件头(也就是一开始的地方)添加:

[code]<!-- Discuz! 英语沙龙 For All Version by mfboy(lzh-0808@163.com) -->
<script language="javascript"><!--
function readword() {
        if(document.word.s.value == '') {
                alert("请输入单词!");
        } else {
                window.open('http://www.iciba.com/resource/a/en/' + document.word.s.value.substr(0, 1) + '/' + document.word.s.value + '.swf');
        }
}
function searchword() {
        if(document.word.s.value == '') {
                alert("请输入单词!");
        } else {
                window.open('http://www.iciba.com/search?s=' + document.word.s.value);
        }
}
function imgword() {
        if(document.word.s.value == '') {
                alert("请输入单词!");
        } else {
                window.open('http://kingsoft.zhongsou.com/ksimg.cgi?word=' + document.word.s.value);
        }
}
function newsword() {
        if(document.word.s.value == '') {
                alert("请输入单词!");
        } else {
                window.open('http://kingsoft.zhongsou.com/ksnews.cgi?word=' + document.word.s.value);
        }
}
--></script>
<br><table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
        <tr class="header"><td colspan="2">英语沙龙</td></tr>

        <tr class="altbg2" align="left">

                <td width="50%" valign="top" height="24"><b>每日一句: </b><center><script language="javascript" charset="utf-8" src="http://www.iciba.com/spdshow.php"></script></center></td>

                <td width="50%" valign="top"><b>在线查词: </b><form name="word">&nbsp;&nbsp;&nbsp;&nbsp;<input name="s" onmouseover="this.focus()" onfocus="this.select()" maxlength="255" type="text" value="" accesskey="c" title="查词热键: ALT+C">&nbsp;<input type="button" accesskey="s" title="快捷方式: ALT+S" value="搜 索" onClick="searchword()">&nbsp<input type="button" accesskey="r" title="快捷方式: ALT+R" value="朗 读" onClick="readword();">&nbsp<input type="button" accesskey="P" title="快捷方式: ALT+P" value="图 片" onClick="imgword();">&nbsp<input type="button" accesskey="N" title="快捷方式: ALT+N" value="新 闻" onClick="newsword();"></form></td>

        </tr>
</table>
<!-- Discuz! 英语沙龙 For All Version by mfboy(lzh-0808@163.com) -->
[/code]

完成。

[img]http://www.discuz.net/attachments/month_0603/img1_pioMttrKT6ZP.jpg[/img]

Aben 发表于 2006-3-12 14:52

这个很有意思哦,但是不晓得实际用处大不大

缘份天空CLUB 发表于 2006-4-13 13:36

怎么我加入后没页面没任何显示的?

LF 发表于 2006-8-12 02:03

Nice!用上了!谢谢楼主!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.