1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberIntroduction.aspx.cs" Inherits="CY.WebForm.Pages.member.MemberIntroduction" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>介绍会员</title>
    <uc:CMSHead ID="CMSHead1" runat="server" />
    <script type="text/javascript">
        function copyUrl() {
            try {
                var Url2 = document.getElementById("txtAddress");
                Url2.select();
                document.execCommand("Copy");
                alert("已复制好,可贴粘。");
            } catch (e) {
                alert("复制失败,请手动选择文本框复制。");
            }
        }
 
        function copyToClipBoard() {
            try {
                var clipBoardContent = $("#txtAddress").val();
                window.clipboardData.setData("Text", clipBoardContent);
                alert("已复制好,可贴粘。");
            } catch (e) {
                alert("复制失败,请手动选择文本框复制。");
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="box1" paneltitle="功能面板" roller="false">
        <table useclick="false" usecheckbox="true" sortmode="true">
            <tr>
                <td>
                    复制以下链接通过MSN、QQ或论坛等方式发送给您的朋友
                </td>
            </tr>
            <tr>
                <td>
                    <span style="float: left;">推荐地址:</span>
                    <input type="text" style="width: 600px; float: left;" id="txtAddress" runat="server" readonly="readonly" /><input type="button" value="复制" onclick="copyUrl()" />
                </td>
            </tr>
            <tr>
                <td>
                    推荐他人注册成为本网站会员后有奖励哟
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>