html ÄÚ²¿ÎÞÏÞiframe ´°¿Ú
ieͨ¹ý£¬Ã»Ð´»ðºü²¿·Ö
js²¿·Ö
function setbox()
{
var thisf=this//×ÔÎÒ¸´ÖÆ£¬ÓÃÓÚǶÈëobj·½·¨ÖÐÈ¥
this.sindex=1;this.moving=false;this.sizing=false;
this.show=function(o)
{
if(o.id)
{
if(document.getElementById(o.id))
{
var td=document.getElementById(o.id);
if(td.style.pixelLeft<0)td.style.pixelLeft=0
if(td.style.pixelTop<0)td.style.pixelTop=0
td.style.zIndex=this.sindex++;
return 0;
}
}
var word="",title="д°¿Ú";
var obj=document.createElement("FORM")
thisf.obj=obj
obj.style.width="66%"
obj.style.height="66%"
obj.style.padding='6px'
obj.style.top='15%'
obj.style.left='15%'
if(o.id)obj.id=o.id;
if(o.parent)obj.parent=o.parent;
if(o.title)title=o.title;
if(o.html)word=o.html
if(o.url)word="<iframe src=""+o.url+"" mce_src=""+o.url+"" style='position:absolute; height:100%;width:100%; ' frameborder=0></iframe>"
if(o.width)obj.style.width=o.width
if(o.height){setTimeout("box.obj.style.height='"+o.height+"';box.obj.childNodes[0].style.height='"+(o.height-1)+"';",1)}
if(o.left)obj.style.left=o.left
if(o.top)obj.style.top=o.top
obj.className="newbox"
obj.style.zIndex=this.sindex++;
obj.innerHTML="<div class=content>"+word+"</div><div class=tl></div><div onmousedown=parentNode.move() class=tc><div class=ico></div><div style='position:absolute;top:0px;height:26px;left:21px;color:#fff;line-height:26px;font-weight:bold;'>"+title+"</div></div><div class=xbtn onmouseover=\"className='xbtn xbtnover'\" onmouseout=\"className='xbtn'\" onclick='parentNode.close()'></div><div class=tr></div><div class=ml></div> <div class=mr> </div><div class=mr></div><div class=bl></div><div class=bc></div><div class=br onmousedown='parentNode.size()'></div><div class=m
Ïà¹ØÎĵµ£º
1 ËùÓÐµÄ .java|.jsp|.html|.xml Ô´Îļþ¾ùʹÓÃutf-8±àÂë¸ñʽ±£´æµ½ÏµÍ³´ÅÅÌ¡£
È磺ÔÚEclipseÖбà¼Îļþ£¬Ñ¡ÖÐÎļþ´ò¿ªÓÒ¼ü²Ëµ¥Ñ¡ÔñÊôÐÔ£¬½«Îı¾Îļþ±àÂëÉèÖÃΪÆäËû²¢Ñ¡ÔñUTF-8£»Ò²¿ÉÒÔÔÚ
Eclipse——Ê×Ñ¡Ïî——³£¹æ——ÄÚÈÝÀàÐÍÖÐÉèÖø÷ÖÖÎļþµÄȱʡ±àÂ룬ÕâÑùÒÔºóËùÓеÄÎı¾Îļþ¶¼Ê¹ÓÃÍ³Ò ......
ÄãÕæµÄÖªµÀÒ»¸öHTML¼°×ÊÔ´ÊÇÈçºÎloadµÄÂð(Á˽â¸÷¸ö²¿·ÖÊǺÎʱÏÂÔغÍÖ´ÐеÄ)
ÔÎĵØÖ·£ºhttp://www.cnblogs.com/mindsbook/archive/2009/12/03/sequence_of_response.html
±¾²©¿ÍËùÓÐÄÚÈݲÉÓà Creative Commons Licenses Ðí¿ÉʹÓÃ. ÒýÓñ¾ÄÚÈÝʱ£¬Çë±£Áô ÖìÌÎ, ³ö´¦ £¬²¢ÇÒ ·ÇÉÌÒµ& ......
import urllib
from HTMLParser import HTMLParser
class TitleParser(HTMLParser):
def __init__(self):
self.title = ''
self.divcontent = ''
self.readingtitle = 0
self.readingdiv = 0
HTMLParser.__init__(self)
def handle_starttag(self, tag, attrs):
......
´ÓÎÒÃǵÚÒ»Ì콨ÉèÍøÕ¾ÍøÒ³¿ªÊ¼¾ÍÒ»Ö±ÓÃ×Åhtml,html°éËæ×ÅÎÒÃÇ´ÓFrontPage¿ªÊ¼µ½DreamweaverµÈµÈ¿ª·¢¹¤¾ß½¨Éè¼òµ¥µÄÍøÒ³ÍøÕ¾¡£HTMLÒ²ÊǾ¹ýÁ˸÷·Öîºî·ÜÕ½²Å´ïµ½½ñÌìµÄ±ê×¼ºÍµØλ¡£Ëæ×ÅÍøÕ¾½¨Éè¼¼ÊõµÄÈÕÒæÔö³¤£¬ÌرðÔÚÍøÕ¾ÓÅ»¯ÉÏÒ²ÐèÒªhtml µÄ¸Ä½ø£¬ËùÒԾ͵®ÉúÁËHTML5£¬²» ......
--------------
1¡¢ÏÔʾͼƬ£º
ÊäÈëÈçÏ´úÂ룺
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gbk" /& ......