0

我希望创建一个应用程序并有一个按钮,可以将推文发布到我的推特帐户。我在网上找到了这段代码。代码很棒,但我有一个问题。当我单击按钮时,会打开一个弹出窗口,但文本框上方的文本是“发生了什么?”。

我现在的问题,如何更改此文本?

请参阅下面的代码。

谢谢

瑞玉

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="FacebookUserImport.Twitter.Default" %>

<!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">
    <!-- other smart stuff here... -->
    <script type="text/javascript">
        function popup_share(url, width, height) {
            day = new Date();
            id = day.getTime();
            eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=0,width=" + width + ", height=" + height + ", left = 363, top = 144');");
        }
    </script>
</head>

<body>
    <!-- other smart stuff here... -->
    <% var link = "Practice: some text here http://www.florian-hacquebart.eu/?p=113',800,320"; %>
    <a href="javascript:popup_share('http://twitter.com/home?status=<%= link %>)" title="Share on Twitter">
        <img src="twitter_button.png" alt="share this article on twitter" />
    </a>
</body>

4

1 回答 1

0

您正在打开 Twitter 网站 ( http://twitter.com/home?status=...) 的一部分,因此您无法更改此窗口上的内容。

于 2012-07-18T07:07:07.060 回答