⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 email4.htm

📁 javascript各种效果的实例及源代码
💻 HTM
字号:
<html>
<head>
<title>发信(四)</title>
<style type="text/css">
<!--
body {  font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
 A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active     { font: 9pt "宋体"; cursor: hand; color: #FF0033 }

-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#fef4d9">
<br>
<br>
<center><font color=red face="隶书" size=6>发信(四)</font></center>
<br>
<center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面为效果显示区!</strong></font></td></tr><tr><td align=center>
<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>

</td></tr>
</table></center>
   
<br>
<br>
<center>
<textarea name=source rows=12 cols=45 class=yk9>
脚本说明:
把如下代码加入<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>Please select a person or department to email:</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="Click to send email" onClick="parent.location='mailto:'+document.emails.address.value">
</CENTER>
</TD>
</TR>
</TABLE> </FORM>

</textarea>

<SCRIPT LANGUAGE="JavaScript">

<!-- hide

function goHist(a) 

{

   history.go(a);

}

//-->

</script>
<br>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" style="background-color: #8000FF; color: rgb(255,255,255)">
</form>
</center>
<br>
<br>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -