O oboaixoaix Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-29 #1 网页中单击右键毫无反映,通过菜单无法查看网页源代码,另存为也保存不了,请问这是如何实现的(谁有 原代码,急),先谢过了。
O oboaixoaix Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-29 #2 网页中单击右键毫无反映,通过菜单无法查看网页源代码,另存为也保存不了,请问这是如何实现的(谁有 原代码,急),先谢过了。
X xd1972 Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-29 #3 你是要看你所打开的网页的源代码吗?如果是,用下面这条语句就可以了。 memo1.lines.add(ihtmldocument(webbrowser1.document).body.outerhtml);
你是要看你所打开的网页的源代码吗?如果是,用下面这条语句就可以了。 memo1.lines.add(ihtmldocument(webbrowser1.document).body.outerhtml);
C coolfishs Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-30 #4 memo1.lines.add(ihtmldocument(webbrowser1.document).body.outerhtml); 注意在uses那里引用 MSHTML 单元哦,否则上面的代码编译不了!
memo1.lines.add(ihtmldocument(webbrowser1.document).body.outerhtml); 注意在uses那里引用 MSHTML 单元哦,否则上面的代码编译不了!
O oboaixoaix Unregistered / Unconfirmed GUEST, unregistred user! 2005-05-30 #7 各位老大,我要查看源代码的网址是http://www.singbet3.com/,能否搬忙用你们提供的方法先测试一下,xd1972、coolfishs提供的方法不行啊。
O oboaixoaix Unregistered / Unconfirmed GUEST, unregistred user! 2005-06-03 #10 找不到啊,dfw001老兄,能否帮一下忙。
X XF.Lian Unregistered / Unconfirmed GUEST, unregistred user! 2005-06-03 #11 <script>if(self == top) location='http://www.singbet3.com' ;</script><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>singbet2</title> <link href="/style/member/mem_index.css" rel="stylesheet" type="text/css"> <script language="JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && document.getElementById) x=document.getElementById; return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body bgcolor="#FFFFFF" background="/images/member/index_bg.jpg" text="#000000" leftmargin="0" topmargin="0" vlink="#000000" alink="#000000"> <div class="all"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="49%" class="lg">&nbsp;</td> <td width="2%"> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="433"><img src="/images/member/index_ph11.jpg" width="433" height="46"></td> <td colspan="4" valign="bottom" background="/images/member/index_ph12.jpg"> <table width="250" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src=/images/member/zh-tw/index_tw.gif></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=zh-cn&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image2','','/images/member/zh-cn/index_cn2.gif',1)><img name=Image2 border=0 src=/images/member/zh-cn/index_cn.gif></a></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=en-us&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','','/images/member/en-us/index_us2.gif',1)><img name=Image3 border=0 src=/images/member/en-us/index_us.gif></a></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=th-tis&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','','/images/member/th-tis/index_tis.gif',1)><img name=Image3 border=0 src=/images/member/th-tis/index_tis.gif></a></td> </tr> </table> </td> </tr> </table> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="772" height="140"> <param name="movie" value="../../../images/member/new.swf"> <param name=quality value=high> <embed src="../../../images/member/new.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="772" height="140"></embed> </object></td> </tr> </table> <table width="772" height="37" border="0" cellpadding="0" cellspacing="0" background="../../../images/member/index_ph21.jpg"> <tr> <td>&nbsp;</td> </tr> </table> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="/images/member/index_ph31.jpg" width="153" height="143"></td> <td><img src="/images/member/index_ph32.jpg" width="222" height="143"></td> <td><img src="/images/member/index_ph33.jpg" width="183" height="143"></td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="/images/member/index_log_top.gif" width="214" height="31"></td> </tr> <tr> <td height="83" background="/images/member/index_log_bg.gif"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <form name="LoginForm" action="./login.php" method="post"> <input type=HIDDEN name="uid" value="28c11954"> <input type=HIDDEN name="langx" value="zh-tw"> <tr> <td width="25%">眀&nbsp; 腹:</td> <td><input type="text" name="username" size="16" class="za_text"> </td> </tr> <tr> <td>盞&nbsp; 絏:</td> <td><input type="password" name="passwd" size="16" class="za_text"> </td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="Submit2" value="絋﹚" class="za_button" > </td> </tr> </form> </table></td> </tr> <tr> <td><img src="/images/member/index_log_down.gif" width="214" height="29"></td> </tr> </table></td> </tr> </table> <table width="772" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="153" height="49" align="center" background="../../../images/member/index_ph41.jpg"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="131" height="40"> <param name=movie value="../../../images/member/singbet.swf"> <param name=quality value=high> <embed src="../../../images/member/singbet.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="131" height="40"> </embed> </object></td> <td class="ser-"><!--?狝盡絬:+628127058922 / +628127058923--> <br> ?舦┮Τ ?玜 ?某眤?IE5.0 800*600 ??蔼眒家Α聅凝セ?</td> </tr> </table> </td> <td width="49%" class="rg">&nbsp; </td> </tr> </table> </div> </body> </html>
<script>if(self == top) location='http://www.singbet3.com' ;</script><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <title>singbet2</title> <link href="/style/member/mem_index.css" rel="stylesheet" type="text/css"> <script language="JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#"!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && document.getElementById) x=document.getElementById; return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body bgcolor="#FFFFFF" background="/images/member/index_bg.jpg" text="#000000" leftmargin="0" topmargin="0" vlink="#000000" alink="#000000"> <div class="all"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="49%" class="lg">&nbsp;</td> <td width="2%"> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="433"><img src="/images/member/index_ph11.jpg" width="433" height="46"></td> <td colspan="4" valign="bottom" background="/images/member/index_ph12.jpg"> <table width="250" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src=/images/member/zh-tw/index_tw.gif></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=zh-cn&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image2','','/images/member/zh-cn/index_cn2.gif',1)><img name=Image2 border=0 src=/images/member/zh-cn/index_cn.gif></a></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=en-us&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','','/images/member/en-us/index_us2.gif',1)><img name=Image3 border=0 src=/images/member/en-us/index_us.gif></a></td> <td><a href=http://www.singbet3.com/app/member/translate.php?set=th-tis&url=http://www.singbet3.com/app/member/index.php&uid=28c11954 onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('Image3','','/images/member/th-tis/index_tis.gif',1)><img name=Image3 border=0 src=/images/member/th-tis/index_tis.gif></a></td> </tr> </table> </td> </tr> </table> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="772" height="140"> <param name="movie" value="../../../images/member/new.swf"> <param name=quality value=high> <embed src="../../../images/member/new.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="772" height="140"></embed> </object></td> </tr> </table> <table width="772" height="37" border="0" cellpadding="0" cellspacing="0" background="../../../images/member/index_ph21.jpg"> <tr> <td>&nbsp;</td> </tr> </table> <table width="772" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="/images/member/index_ph31.jpg" width="153" height="143"></td> <td><img src="/images/member/index_ph32.jpg" width="222" height="143"></td> <td><img src="/images/member/index_ph33.jpg" width="183" height="143"></td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="/images/member/index_log_top.gif" width="214" height="31"></td> </tr> <tr> <td height="83" background="/images/member/index_log_bg.gif"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <form name="LoginForm" action="./login.php" method="post"> <input type=HIDDEN name="uid" value="28c11954"> <input type=HIDDEN name="langx" value="zh-tw"> <tr> <td width="25%">眀&nbsp; 腹:</td> <td><input type="text" name="username" size="16" class="za_text"> </td> </tr> <tr> <td>盞&nbsp; 絏:</td> <td><input type="password" name="passwd" size="16" class="za_text"> </td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="Submit2" value="絋﹚" class="za_button" > </td> </tr> </form> </table></td> </tr> <tr> <td><img src="/images/member/index_log_down.gif" width="214" height="29"></td> </tr> </table></td> </tr> </table> <table width="772" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="153" height="49" align="center" background="../../../images/member/index_ph41.jpg"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="131" height="40"> <param name=movie value="../../../images/member/singbet.swf"> <param name=quality value=high> <embed src="../../../images/member/singbet.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="131" height="40"> </embed> </object></td> <td class="ser-"><!--?狝盡絬:+628127058922 / +628127058923--> <br> ?舦┮Τ ?玜 ?某眤?IE5.0 800*600 ??蔼眒家Α聅凝セ?</td> </tr> </table> </td> <td width="49%" class="rg">&nbsp; </td> </tr> </table> </div> </body> </html>
O oboaixoaix Unregistered / Unconfirmed GUEST, unregistred user! 2005-06-04 #12 XF.Lian老兄,我想知道用程序如何实现,我要用程序去获取别人网页源代码。
X XF.Lian Unregistered / Unconfirmed GUEST, unregistred user! 2005-06-11 #13 procedure TForm1.Button4Click(Sender: TObject); var doc:IHTMLDocument2; URL:String; begin URL:='http://www.lose-dschungel.de/verdienen/klick4lose.php'; WebBrowser1.Navigate(Trim(URL)); Memo1.Text :=''; do c:= WebBrowser1.document as IHTMLDocument2; Memo1.Text := String(doc.body.innerHTML) ; end;
procedure TForm1.Button4Click(Sender: TObject); var doc:IHTMLDocument2; URL:String; begin URL:='http://www.lose-dschungel.de/verdienen/klick4lose.php'; WebBrowser1.Navigate(Trim(URL)); Memo1.Text :=''; do c:= WebBrowser1.document as IHTMLDocument2; Memo1.Text := String(doc.body.innerHTML) ; end;
R runcow Unregistered / Unconfirmed GUEST, unregistred user! 2005-06-19 #14 你没把地址弄对,它是一个框架结构。如果你直接获取http://www.singbet3.com的代码,你得到的是它的框架代码,你应该用框架里包含的页面地址。