javascript開啟郵箱伺服器

來源:互聯網
上載者:User

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OpenActiveEmailUserControl.ascx.cs"
    Inherits="UserControl_OpenActiveEmailUserControl" %>
<script type="text/javascript" language="javascript">
    function open_email_url(obj) {
        var email = document.getElementById('LabelSendEmail').innerHTML;
        var emailurl = email.split("@");
        switch (emailurl[1]) {
            case 'qq.com':
            case 'vip.qq.com':
            case 'foxmail.com':
                obj.href = 'http://mail.qq.com';
                break;
            case '163.com':
            case '126.com':
            case 'yeah.net':
                obj.href = 'http://mail.163.com';
                break;
            case '139.com':
                obj.href = 'http://mail.10086.cn';
                break;
            case 'wo.com.cn':
                obj.href = 'http://mail.wo.com.cn';
                break;
            case '189.cn':
                obj.href = 'http://webmail18.189.cn/webmail';
                break;
            case 'sohu.com':
                obj.href = 'http://mail.sohu.com';
                break;
            case '2008.sina.com':
                obj.href = 'http://mail.2008.sina.com.cn';
                break;
            case 'vip.sina.com':
            case 'sina.cn':
            case 'sina.com':
                obj.href = 'http://mail.sina.com.cn';
                break;
            case 'yahoo.com.cn':
            case 'yahoo.cn':
            case 'ymail.com':
            case 'rocketmail.com':
                obj.href = 'http://mail.cn.yahoo.com';
                break;
            case 'gmail.com':
                obj.href = 'http://mail.google.com';
                break;
            case 'hotmail.com':
            case 'live.cn':
            case 'msn.com':
            case 'passport.com':
            case 'live.com':
                obj.href = 'http://hotmail.msn.com';
                break;
            case 'tom.com':
            case 'vip.tom.com':
                obj.href = 'http://mail.tom.com';
                break;
            default:
                obj.href = 'http://mail.' + emailurl[1];
                break;
        }
    }
</script>
<style type="text/css">
    .Bord
    {
        border-color: #CDD5DE;
        border-style: double;
        border-width: 2px;
    }
    .Active
    {
        margin-left: 16%;
        padding-top: 160px;
        padding-left: 140px;
        padding-bottom: 100px;
        background-color: White;
        width: 40%;
        height: 60%;
        border-bottom-style: dashed;
        border-bottom-color: #487DB3;
        border-bottom-width: 20px;
    }
    .Open
    {
       margin-left:40px;
     }
</style>
<div class="Bord">
    <div class="Active">
        <h3>
            註冊成功,請立即啟用帳戶</h3>
        啟用連結已發送至:<asp:Label ID="LabelSendEmail" runat="server" Text=""></asp:Label><br />
        <br />
        <span class="Open">
        <a href="#" onclick="open_email_url(this);"><strong>開啟郵箱啟用</strong></a>
        </span>
        <br />
    </div>
</div>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.