½«htmlת»»³ÉPDF ×ªÔØ
/*
Convert HTML to PDF with mozilla rendering engine.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
USA
Michele Baldessari <mich...
@pupazzo.org> 2006
Huang Ying <huang.ying.cari...
@gmail.com> 2008
*/
function WebProgressListener() {
var self = this;
}
WebProgressListener.prototype.
QueryInterface = function(iid) {
var self = this;
if (iid.equals(Components.interfaces.nsIWebProgressListener) ||
iid.equals(Components.interfaces.nsISupportsWeakReference) ||
iid.equals(Components.interfaces.nsISupports))
return self;
throw Components.results.NS_ERROR_NO_INTERFACE;
};
WebProgressListener.prototype.
onStateChange = function(webProgress, request, stateFlags, status) {
var self = this;
const WPL = Components.interfaces.nsIWebProgressListener;
if (stateFlags & WPL.STATE_STOP) {
if ("onDone" in self)
self.onDone();
if (stateFlags & WPL.STATE_IS_NETWORK)
if ("onNetworkDone" in self)
self.onNetworkDone();
}
};
WebProgressListener.prototype.
onProgressChange = function(webProgress, request, curSelf, maxSelf,
curTotal, maxTotal) { };
WebProgressListener.prototype.
onLocationChange = function(webProgress, request, location) { };
WebProgressListener.prototype.
onStatusChange = function(webProgress, request, status, message) { };
WebProgressListener.protot
Ïà¹ØÎĵµ£º
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Option Explicit
Response.Buffer = True '»º´æÍ¼Æ¬
Dim objXMLHTTP, XML
Set XML = Server.CreateObject("Microsoft.XMLHTTP") '½¨Á¢ÏÂÔØ¶ÔÏó
XML.Open "GET","http://www.google.cn/images/nav_logo7.png",False '¿ªÊ¼»ñȡͼƬ,http://xxx/pngÕâ½Ú¿ÉÒԸijÉ× ......
ÎÒÃÇÔÚÓÃFlex½øÐпª·¢µÄʱºò£¬ÓÐʱºòÐèҪʵÏÖÏñhtml ϸÏß±í¸ñµÄÄÇÖÖЧ¹û£¬ÔÀíºÜ¼òµ¥£¬µ«ÊÇÐèҪһЩ¼¼ÇÉ£¬²»È»µÄ»°ºÜÄÑ¿ØÖÆÏßÌõµÄ´Öϸ£¬ÆäʵֻÐèÒªÉèÖü¸¸öÑùʽ¾ÍÄܸ㶨£¬Ò»ÏÂÊÇÔ´Â룬´ó¼Ò¿ÉÒÔÔËÐÐһϿ´¿´Ð§¹û<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml ......
×Ö·û
Ê®½øÖÆ×Ö·û±àºÅ
ʵÌåÃû×Ö
˵Ã÷
---
�
---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

---
δʹÓÃUnused
---

......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>use html as DOM</title>
<mce:script language="javascript" type="text/javascript"><!--
function addUser() {
// get and execute na ......
¼ò½é£ºÔÚÂÛ̳Öг£³£ÓÐÍøÓÑÎʵ½£¬¿ÉÒÔÔÚÒ»¸öhtmlµÄÎļþµ±ÖжÁÈ¡ÁíÒ»¸öhtmlÎļþµÄÄÚÈÝÂ𣿴ð°¸ÊÇÈ·¶¨µÄ£¬¶øÇÒ·½·¨²»Ö»Ò»ÖÖ£¬ÔÚÒÔǰÎÒÖ»»áʹÓÃiframeÀ´ÒýÓ㬺óÀ´·¢ÏÖÁËÁíÍâµÄ¼¸ÖÖ·½·¨£¬ÄǽñÌì¾Í×ܽáÕ⼸ÖÖ·½·¨Èôó¼Ò²Î¿¼Ò»Ï£¬±¾È˾õµÃµÚÈýÖÖ·½Ê½½ÏºÃ£¡
1.IFrameÒýÈ룬¿´¿´ÏÂÃæµÄ´úÂë
[´úÂë] <IFRAME NAME="content_fr ......