网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网页制作 > 网页特效
网页制作:Dreamweaver教程,FrontPages教程,Javascript教程,HTML教程,CSS教程,心得技巧,DHTML教程,网页特效,Discuz!论坛
本月文章推荐
.如何在网页中显示特殊字符.
.文件大小的计算,是关于bytes、K.
.状态栏中先单个字出现然后再整句.
.COOL菜单 (挺有用的可以使用一下.
.图片始终闪动的特效代码.
.显示一个页面中的所有链接[网页特.
.使输入框就可以与页面合为一体.
.一个用纯CSS制作的网页下拉菜单.
.javascript的容错脚本.
.CSS+JS打造类似QQ的网站导航菜单.
.看看你的网站在世界的排名榜.
.导航窗的文字特效(非常酷).
.表格的特殊运用,可以去掉相应的.
.相互关联的下拉菜单,在提交表单.
.不间断连续滚动的图片效果(向右滚.
.Java Applet 编程技巧实例专辑-图.
.网页教学网DIV+CSS标准网页菜单代.
.CSS代码:看看IE中有关1px的Bug.
.3D按钮式导航条.
.又一款新颖的万年历(推荐使用!).

可以很直观地选择收信人,而且有收信人的相关信息

发表日期:2007-12-21


<!-- 把下面代码放到<body>区域中: -->
 <script language="javascript">

function displayinfo(){
        var who=document.emails.list.options[document.emails.list.selectedIndex].value;
        var address=document.emails.address;
        var info=document.emails.information;
        var ss="@yourdomain.com";
       
if (who=="webmaster"){
                address.value="webmaster"+ss;
                info.value="Send email with problems and questions about this web site to this address.";}
if (who=="bteditor"){
                address.value="barrington"+ss;
                info.value="Send email about the editorial content of the Barrington Times to this address.";}
if (who=="bpeditor"){
                address.value="bristol"+ss;
                info.value="Send email about the editorial content of the Bristol Phoenix to this address.";}
if (who=="steditor"){
                address.value="sakonnet"+ss;
                info.value="Send email about the editorial content of the Sakonnet Times to this address.";}
if (who=="wteditor"){
                address.value="warren"+ss;
                info.value="Send email about the editorial content of the Warren Times-Gazette to this address.";}
if (who=="publisher"){
                address.value="matthayes"+ss;
                info.value="Send email about the operations of our newspapers to this address.";}
if (who=="subscriptions"){
                address.value="subscriptions"+ss;
                info.value="Send email requesting a subscription, back issue or related information to this address.";}
if (who=="classifieds"){
                address.value="classifieds"+ss;
                info.value="Send email requesting a classified line ad, reporting a missing line ad, or requesting classified information to this address.";}
if (who=="info"){
                address.value="info"+ss;
                info.value="Send email requesting any information which is not covered elsewhere to this address.";}
if (who=="tips"){
                address.value="webmaster"+ss;
                info.value="Send email about a potential news story to this address.";}
if (who=="advertising"){
                address.value="sales"+ss;
                info.value="Send email about advertising in our printed newspapers to this address";}
}


</script>
<FORM name="emails">

<P><B>请选择收信人</B>
<BR>
<SELECT NAME="list" onBlur="displayinfo()">
<OPTION value="nameoflist">EBN Email Directory
<OPTION value="webmaster">Webmaster
<OPTION value="bteditor">Barrington Times Editor
<OPTION value="bpeditor">Bristol Phoenix Editor
<OPTION value="steditor">Sakonnet Times Editor
<OPTION value="wteditor">Warren Times-Gazette Editor
<OPTION value="publisher">Publisher
<OPTION value="subscriptions">Subscriptions/Circulation
<OPTION value="classifieds">Classified Office
<OPTION value="info">Information Requests
<OPTION value="tips">News Tips
<OPTION value="advertising">Advertising Sales Department
</SELECT>
<TABLE BORDER WIDTH="300" BGCOLOR="#CCFFFF" >
<TR>
<TD VALIGN=TOP>
<CENTER>
<INPUT TYPE="text" NAME="address" VALUE="" SIZE=45><BR>
<TEXTAREA NAME="information" ROWS=7 COLS=27 wrap=virtual></TEXTAREA><BR>
<INPUT TYPE="button" NAME="sendit" VALUE="发信" onClick="parent.location='mailto:'+document.emails.address.value">
</CENTER>
</TD>
</TR>
</TABLE> </FORM>

上一篇:一个按钮发信程序,只要一按它就会自动发信了 人气:999
下一篇:一个循环的跳出警告,最后会自动发信 人气:834
浏览全部javascript的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐