找回密码
 加入
搜索
查看: 8316|回复: 5

[IE类操作] 网页上的一个按钮,不是链接,不是图片控件按钮,不是控件按钮,应该怎么操作,附源码

[复制链接]
发表于 2012-10-16 14:42:08 | 显示全部楼层 |阅读模式
按钮代码部分是:
    <a name="sendbtn" id="sendbtn" class="btn_ex left" style="margin-right:5px;">
      <span class="inner">保存</span>
      </a>
虽然有ID,
_IEImgClick
_IEAction
_IELinkClickByText
_IELinkClickByIndex
都无效,这样的按钮应该如何操作?

源码如下:
<!DOCTYPE html>
<script>
var gbIsNoCheck=true;
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>QQ邮箱</title>
<link rel="stylesheet" type="text/css" href="/zh_CN/htmledition/style/qf0f1b6c.css" />
<style>.editor_dialog_content input.wd1,.editor_dialog_content input.wd2{width:80px!important;}.editor_dialog_content input.wd3{background-position:0 -199px!important;width:108px!important;}.editor_dialog_content input.txt, textarea.txt{width:220px!important;}</style>
<script>
        var g_sid="difHO8kzBa-TG2g4",
                g_uin="1940582993",
                g_admuin="-2484574766",
                g_encryptzero="-2484574303",
                g_encryptuin="-2200778618",
                mo_path="/zh_CN/",
                stationery_path="/zh_CN/",
                card_path="/zh_CN/",
                images_path="/zh_CN/htmledition/images/",
                js_path="/zh_CN/htmledition/js/",
                css_path="/zh_CN/htmledition/style/",
                style_path="/cgi-bin/getcss?sid=difHO8kzBa-TG2g4&ft=",
                editor_path="/zh_CN/htmledition/qqmaileditor/",
                skin_path="0",
                alevel="",
                gLogoId="0",
                gsLogoFolder = "/",
                bnewwin=0,
                gnRssInterval = parseInt("600"),
                gLn={
                        all:"047258",                        linkman:"047258",                        qmlinkman:"047258",                        qmcamera:"047258",                        qmlunar:"047258",                        qmdatectrl:"047258",                        qmslidebox:"047258",                        xflib_xw:"047258",                        editor:"047257",                        editor_toolbar:"047257",                        editor_toolbar_plus:"047257",                        qmtool:"047258",                        qmaddress:"047258",                        qmqzoneimg:"047258",                        qmtip:"047258",                        "plus/formatter":"047257",                                "plus/bgmusic":"047257",                        "plus/mo":"047257",                                                comm:"0d3c81",                        rss:"0d3c81",                        domain:"03a749",                        camera_photo:"03a749",                        cardaddr:"03a749",                        qqplus_kernel:"047258",                        qqplus_ui:"047258",                        qmcalendar:"047258",                        qmverify:"047258",                        getimgkey:"047258",                        bookmail_stock:"047258",                        bookscript:"047258",                        libcompose:"047258",                        qmantispam:"047258",                        sps_tmpl:"047258",                        e:""
                },
                QQPlusUpdateStatus = function(){};
        var gsRssDomain = 'http://r.mail.qq.com',
                gsMailDomain = location.protocol + "//" + location.host;
               
</script>
<script type="text/javascript" src="/zh_CN/htmledition/js/all047258.js"></script><script type="text/javascript" src="/zh_CN/htmledition/js/qmtool047258.js"></script>
<script>
parent.QMWin.Q(window);
function hashTo(_asHash)
{
parent.QMWin.loc("hash", _asHash);
}
QMWin.addEvent("actionCallBack", function()
{
});
</script>
<script type="text/javascript" src="/zh_CN/htmledition/js//qf/page/override047258.js"></script>
<script type="text/javascript" src="/zh_CN/htmledition/qqmaileditor/editor047257.js"></script>
<script type="text/javascript" src="/zh_CN/htmledition/js/compose0472d7.js"></script>
<script type="text/javascript" src="/zh_CN/htmledition/js/qmaddrinput047258.js"></script>
<style type="text/css">td{font-size:14px;}.input_wd {width:98.7%;padding:0;height:22px;}textarea{width:100%;padding:2px;font:normal 14px Verdana;}.rev {overflow:visible;word-break:break-all;}.addr{border:1px solid #718da6;}.pd{padding:4px 10px 5px 0;min-width:552px;}.pd1{width:100%;min-width:695px;}.input_title {margin:0 0 6px 72px;}.content_title {padding:0 0 5px 12px;}.upload{display:none}#AttList .bd_upload {border-width:0;*border-width:1px;}.hello_img{position:absolute;margin:-8px 0 0 2px;*margin:-10px 0 0 2px}.opa50{opacity:0.5;filter:alpha(opacity=50)}</style><style type="text/css">a.lm_addr,a.lm_addr:link,a.lm_addr:visited {background:#fff;display:block;color:#494949;text-decoration:none;text-align:left;height:20px;line-height:20px;padding:0 0 0 30px;white-space:nowrap;width:80%!important;width:100%;width:/**/100%;text-overflow:ellipsis;overflow:hidden;cursor:pointer;}.showteamon {background:url(/zh_CN/htmledition/images/newicon/compose047dd3.gif) no-repeat -80px -16px;width:14px;height:14px;border:0;padding:0;margin:2px 1px 0 2px;vertical-align:middle;}.showteam {background:url(/zh_CN/htmledition/images/newicon/compose047dd3.gif) no-repeat -64px -16px;width:14px;height:14px;border:0;padding:0;margin:2px 1px 0 2px;vertical-align:middle;}#quickaddr_div {width:177px; height:339px;}#normal_plane,#search_plane{overflow: auto;height:305px}#normal_plane {overflow-x:hidden;}.lm_ca { text-decoration: none; overflow:hidden; color: #000; white-space:nowrap; text-overflow : ellipsis; width:100%; padding:2px 2px 2px 6px; line-height:20px;font-weight:bold;}.lm_addr2{ width: 100%; cursor:pointer; padding:4px 0 ;*padding:4px 3px; border-bottom:1px solid #efefef; height:20px;}.lm_addr2{ height:35px}.lm_nm,.lm_ml,.lm_nm2{ padding:0 0 0 25px; white-space:nowrap;width:86%!important;width:100%;width:/**/100%;text-overflow:ellipsis;overflow:hidden; float:left; }.lm_ml {  color:#A0A0A0 }.lm_nm2{ padding-left:8px}.bot_mov { background:transparent url(/zh_CN/htmledition/images/bot_mov.gif) no-repeat; }#quicksearch{width:152px;}.qmEditorMenuBorder .menu_base_if{position:relative;}.ico_att {background:url(/zh_CN/htmledition/images/newicon/compose047dd3.gif) no-repeat 0 0;*background-position:0 0;width:16px;height:16px;padding:0;border:none;}.QMEditorText{padding:0!important;*height: 360px!important;width: 99.5%!important;}td.QMEditorContent{*height: 261px!important;}
</style>
</head>

<body>
<div class="content b_size txt_left" name="compose">
<div class="path b_size">
  <ul>
    <li class="home" style="z-index:100;">
      <a hidefocus  onclick="getTop().hashTo('#mainindex')" ><span class="back"></span>首页<span class="front"></span></a>
    </li>
    <li style="z-index:99;">
      <a hidefocus  onclick="getTop().hashTo('#colindex')"><span class="back"></span>梦幻西游<span class="front"></span></a>
    </li>
    <li class="" style="z-index:98;">
      <a hidefocus  onclick="getTop().hashTo('#mail/list/0')"><span class="back"></span>邮件<span class="front"></span></a>
    </li>
    <li class="current" style="z-index:97;"><a><span class="back"></span>创建新订户欢迎信<span class="front"></span></a></li>                                                                                                                                                                                                                </ul>
</div>

<form method="post" id="frm" name="frm" target="actionFrame" action="/cgi-bin/qf_compose_send" enctype="multipart/form-data">
  <input type="hidden" name="sid" value="difHO8kzBa-TG2g4" />
  <input type="hidden" name="cgiaction" value="post_mail"/>
  <input type="hidden" name="t" value="qf_compose_send"/>
  <input type="hidden" name="s" value="" />
  <input type="hidden" name="ef" value="qevent"/>
  <input id="status" type="hidden" name="status" value=""/>
  <input id="fmailid" name="fmailid" value="ZC1715-GkuSYZNqasC7Wyh4sVqGR2a" type="hidden" />
  <input id="separatedcopy" name="separatedcopy" value="false" type="hidden" disabled/>
  <input id="actiontype" name="actiontype" value="send" type="hidden" />
  <input type="hidden" name="tovisual" value="" />
  <input id="msgtype" name="msgtype" value="welcome" type="hidden" />
  <div class="container clear" name="content" style="position:relative;">
    <div class="right letterSelect" style="" un="rightContainer">
      <ul id="span_letter" class="tabCompose" style="display:none">
        <li class="" style="width:100%;"><span class="bd current graytext" style="border-right-width:1px;background:#F0F0F0;">信纸</span></li>
        <li style="display:none"><a class="bd last bg_light" id="a_link_rcpt">订户</a></li>
      </ul>
      <ul id="span_rcpt" class="tabCompose"  style="">
        <li class=""><a class="bd bg_light" id="a_link_letter">信纸</a></li>
        <li class=""><span class="bd current graytext last">订户</span></li>
      </ul>
      <div class="bd" style="border-top:none;overflow:hidden;zoom:1;">
      <ul class="showcasePanel" id="stationeryselect" style="display:none">
        <li><a class="bd selected" alt="不使用信纸" title="不使用信纸" ck="selStationery" value="none" name="stationeryitem" id="stationeryitem"><img src="/zh_CN/htmledition/images/spacer03a748.gif" class="default showcase" /></a></li>
        <li ><a class="bd" alt="欢快" title="欢快" ck="selStationery" value="1" name="stationeryitem" id="stationeryitem"><img src="/zh_CN/htmledition/images/spacer03a748.gif" class="template1 showcase" /></a></li>
        <li ><a class="bd" alt="清爽" title="清爽"  ck="selStationery" value="3" name="stationeryitem" id="stationeryitem"><img src="/zh_CN/htmledition/images/spacer03a748.gif" class="template2 showcase" /></a></li>
        <li ><a class="bd" alt="淡雅" title="淡雅"  ck="selStationery" value="2" name="stationeryitem" id="stationeryitem"><img src="/zh_CN/htmledition/images/spacer03a748.gif" class="template3 showcase" /></a></li>
      </ul>
      <ul class="userSelectPanel" id="rcptselect" ><!--
        <li><a onclick="javascript:qfSelectAll()" id="a_link_all">所有订户</a></li>-->
        <li><a class="f_size text_black" onclick="javascript:qfAddAddr('所有订户','0')"><input type="checkbox" value="0" name="tolist"/><label>所有订户</label></a></li>
      </ul>
    </div>
  </div>
  <div id="sendtimepadding" class="" style="width: 680px;">
    <table cellpadding="0" cellspacing="0" border="0" class="i" style="width:100%;margin-top: 15px;margin-bottom:5px;*margin-bottom:0;">
      <tr>
        <td nowrap style="text-align:right;padding-top:5px;width:30px;" valign="top" title="主题是一封邮件的标题。">主题</td>
        <td class="content_title"><input id="subject" title="主题是一封邮件的标题,可不填。" name="subject" type="text" autocomplete="off" tabindex="2" class="txt input_wd" onFocus="showSubjectMsg(false);" width="" /></td>
      </tr>
    </table><!--
    <div>
      <div class="input_title" style="height: auto; padding-top: 3px;">
        <div>
          <span>
            <span id="QMEditorToolBarPlusArea" ></span>
          </span>
        </div>
      </div>
    </div>-->
    <div style="" id="AttList">
      <div class="input_title" style="display:none;padding-top:5px;margin-bottom:0;" id="editor_bgmusic_container"></div>
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td nowrap style="width:60px;" ></td>
          <td nowrap class="content_title" style="font-family:Tahoma;" valign="top">
            <div id="filecell"></div>
          </td>
        </tr>
      </table>
    </div>
    <div style="">
      <table cellpadding="0" class="i" cellspacing="0" border="0" style="width:100%;">
      <tr>
        <td nowrap style="text-align:right;padding-top:4px;width:30px;" valign="top">正文</td>
        <td class="content_title" style="padding-top:1px!important;padding-top:0;padding-right:0;" valign="top">
          <textarea id="content" name="content" style="display:none;" ></textarea>
          <div id="QMEditorArea" style="height:289px;">
            <script>try{document.write( outputDataLoading( true ) );}catch(e){}</script>
          </div>
        </td>
      </tr>
      </table>
    </div>
    <div class="clr"></div>
  </div>
  </div>
  <div class="submitColumn">
  <div class="left">
    <a name="sendbtn" id="sendbtn" class="btn_ex left" style="margin-right:5px;">
      <span class="inner">保存</span>
    </a>
    <a class="btn_comm left" onclick='getTop().hashTo("#mail/list/0");' class="hide">
      <span class="inner">返回</span>
    </a>
  </div>
  </div>
</form>
</div><script>createActionFrame(window);</script>
</body>
</html>
<script type="text/javascript" src="/zh_CN/htmledition/js//qf/page/stationery05a8dd.js"></script>
<script type="text/javascript">
( function() {
  initComposeForPage( "qfcompose",
  {
  oMailInfo : {
subject : "123",
content : "\x3cdiv\x3e\x3cstrong\x3e\x3c/strong\x3e\x26nbsp;\x3c/div\x3e",
rcpt    :
{
"empty" : ""
}
},
t : "qf_compose_send",
iswelcomemsg : "1"
  }
);
} )();
function ErrorCallBack()
{
disableAll(false);
if (getProcessInfo().indexOf("正在保存") != -1)
{
showError(formatDate(new Date, "%hh%:%mm%", "%") + " " + gsMsgSaveErr);
}
enableAutoSave();
setNeedCloseConform( true );
showProcess(0);
}
</script>
 楼主| 发表于 2012-10-16 14:54:14 | 显示全部楼层
腾讯的东西都是很复杂,腾讯邮件的登录页面也超复杂,用WinHttp基本不可能实现
发表于 2012-10-17 07:24:05 | 显示全部楼层
期待高手解答,
发表于 2012-10-17 11:56:25 | 显示全部楼层
回复 3# ppzpph
给我网址
 楼主| 发表于 2012-10-17 15:31:01 | 显示全部楼层
list.qq.com里面的添加邮件功能
 楼主| 发表于 2012-10-18 20:09:54 | 显示全部楼层
有兴趣研究下list.qq.com的winhttp登陆,这个估计真没人能搞出来
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-15 17:21 , Processed in 0.076393 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表