<?xml version='1.0' encoding='utf-8'?>
<rss version='2.0'>
<channel>
<title> <![CDATA[网页设计技术博客 | 末日创意]]> </title>
<description><![CDATA[北京山东苏州广州网页设计，网页设计，ASP，JAVAScript，网页制作，技术文章，技术博客,美工，创意，程序设计，免费BLOG程序下载，Myblog]]></description>
<link>http://blog.kzesd.com/</link>
<language>zh-cn</language>
<docs><![CDATA[北京山东苏州广州网页设计，网页设计，网页设计，ASP，JAVAScript，网页制作，技术文章，技术博客,美工，创意，程序设计,免费BLOG程序下载，Myblog]]></docs>
<generator><![CDATA[© 版权所有 2006-2008 末日创意Rss Generator By lastidea.net ]]></generator>
<item>
<title> JavsScript &#30456;&#21152;&#30340;&#38169;&#35823;&#38382;&#39064; </title>
<link> http://blog.lastidea.net/blogshow.asp?id=285 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=285 </guid>
<author> 赵依燃 </author>
<pubDate>2008-10-1 00:00</pubDate>
<category>所属分类:JavaScript</category>
<description> <![CDATA[
&lt;script&gt;alert(10.01+10)&lt;/script&gt;<BR>大家看看这个是什么结果,为什么?
]]> </description>
</item>
<item>
<title> asp&#35835;&#21462;xml </title>
<link> http://blog.lastidea.net/blogshow.asp?id=284 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=284 </guid>
<author> 赵依燃 </author>
<pubDate>2008-9-28 00:00</pubDate>
<category>所属分类:ASP</category>
<description> <![CDATA[
<P>
<TABLE style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellSpacing=0 cellPadding=6 width="95%" align=center border=0>
<TBODY>
<TR>
<TD style="WORD-WRAP: break-word" bgColor=#f3f3f3>
<P>&lt;%<BR>url = "<A href="/rss.asp">/rss.asp</A>"<BR>'url = "<A href="http://localhost:81/lastidea.net/rss.asp">http://localhost:81/lastidea.net/rss.asp</A>"<BR>Set http=Server.CreateObject("Microsoft.XMLHTTP")<BR>http.Open "GET",url,false<BR>http.send<BR>Set xml=Server.CreateObject("Microsoft.XMLDOM")<BR>xml.Async=true<BR>xml.ValidateOnParse=False<BR>xml.Load(http.ResponseXML)</P>
<P>If xml.ReadyState&gt;2 Then<BR>&nbsp;&nbsp; ''xmlhttp.readyState的4个属性<BR>&nbsp;&nbsp; ''1:LOADING;2:LOADED;3:INTERACTIVE;4:COMPLETED<BR>&nbsp;&nbsp; ''Response.Write("文档已经准备就绪。状态："&amp; xml.ReadyState &amp;"&lt;br&gt;")<BR>&nbsp; <BR>&nbsp;&nbsp; if xml.parseError.errorCode &lt;&gt; 0 then<BR>&nbsp;&nbsp; response.write "错误：读取数据失败"<BR>&nbsp;&nbsp; response.write xml.parseerror.errorcode<BR>&nbsp;&nbsp; response.write xml.parseerror.reason<BR>&nbsp;&nbsp; 'xml.loadxml(myxmlstr)<BR>&nbsp;&nbsp; response.End()<BR>&nbsp;&nbsp; end if<BR>&nbsp; <BR>&nbsp; <BR>&nbsp;'可一次性读出所有的值<BR>&nbsp;Set itemData=xml.getElementsByTagName("item") <BR>&nbsp;if isnull(xml.getElementsByTagName("item") ) then<BR>&nbsp;&nbsp;response.Write("读取失败")<BR>&nbsp;&nbsp;response.End()<BR>&nbsp;else<BR>&nbsp;&nbsp;for j=1 to 7<BR>&nbsp;&nbsp;&nbsp;pubDate=Format_Time(xml.getElementsByTagName("pubDate").item(j).text,2)<BR>&nbsp;&nbsp;&nbsp;title=xml.getElementsByTagName("title").item(j).text<BR>&nbsp;&nbsp;&nbsp;link =xml.getElementsByTagName("link").item(j).text<BR>&nbsp;&nbsp;&nbsp;mystr=mystr+ "&lt;div class='underline'&gt;&lt;img src=img/dot01.jpg&gt;&amp;nbsp;&amp;nbsp;&lt;a href="&amp;link&amp;" target='_blank'&gt;"&amp;leftStr(title,35)&amp;"&lt;/a&gt;&lt;/div&gt;"<BR>&nbsp;&nbsp;next<BR>&nbsp;end if<BR>&nbsp;&nbsp;&nbsp; response.write mystr<BR>&nbsp; <BR>&nbsp;&nbsp;&nbsp; '也可使用下面的方法一次只读一个值<BR>&nbsp;'Set title=xml.getElementsByTagName("Uid") <BR>&nbsp;'Response.Write(Format_Time(xml.getElementsByTagName("pubDate").item(0).text,2))<BR>&nbsp;'Response.Write(xml.getElementsByTagName("title").item(0).text &amp;"&lt;br&gt;")<BR>&nbsp;&nbsp;&nbsp; <BR>'Else<BR>&nbsp;'Response.Write("文档还未准备就绪。状态："&amp; xml.ReadyState &amp;"&lt;br&gt;")<BR>End If<BR>Set http=Nothing<BR>Set xml=Nothing<BR>%&gt;</P></TD></TR></TBODY></TABLE></P>
]]> </description>
</item>
<item>
<title> &#26368;&#31616;&#21333;&#30340;AJAX &#20363;&#23376;&#20195;&#30721;(&#23436;&#25972;&#27880;&#37322;) </title>
<link> http://blog.lastidea.net/blogshow.asp?id=283 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=283 </guid>
<author> &#36213;&#20381;&#29123; </author>
<pubDate>2008-9-28 00:00</pubDate>
<category>所属分类:Ajax</category>
<description> <![CDATA[
<P>
<TABLE style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellSpacing=0 cellPadding=6 width="95%" align=center border=0>
<TBODY>
<TR>
<TD style="WORD-WRAP: break-word" bgColor=#f3f3f3><FONT style="FONT-WEIGHT: bold; COLOR: #990000"><SPAN class=Apple-style-span style="WORD-SPACING: 0px; FONT: 16px verdana; TEXT-TRANSFORM: none; COLOR: rgb(0,0,102); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0"><PRE style="PADDING-RIGHT: 0px; OVERFLOW-Y: visible; PADDING-LEFT: 0px; FONT-SIZE: 8pt; OVERFLOW-X: visible; PADDING-BOTTOM: 0px; MARGIN: 0em; WIDTH: 100%; COLOR: black; BORDER-TOP-STYLE: none; LINE-HEIGHT: 12pt; PADDING-TOP: 0px; FONT-FAMILY: consolas, 'Courier New', courier, monospace; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: rgb(244,244,244); BORDER-BOTTOM-STYLE: none">&lt;input type=<FONT face="Courier New"><SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"button"</FONT></SPAN> onclick=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"ajaxTest()"</FONT></SPAN> <SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>value</FONT></SPAN>=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"AJAX测试"</FONT></SPAN>&gt;

&lt;input type=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"button"</FONT></SPAN> onclick=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>" document.getElementById('weather').innerHTML='' "</FONT></SPAN> <SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>value</FONT></SPAN>=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"隐藏"</FONT></SPAN>&gt;

&lt;script&gt;
<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 1. 初始化 请求 对象</FONT></SPAN>
<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// Mozilla/Firefox 下的</FONT></SPAN>
var xmlhttp = <SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>new</FONT></SPAN> XMLHttpRequest();
<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// IE 下的</FONT></SPAN>
<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>//var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")</FONT></SPAN>
<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>//alert(xmlhttp);</FONT></SPAN>

function ajaxTest() {
    <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 指定要打开的页面</FONT></SPAN>
    xmlhttp.open(<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"GET"</FONT></SPAN>, <SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>""</FONT></SPAN>, <SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>true</FONT></SPAN>);<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// HTTP 请求的方式, URL, 是否异步</FONT></SPAN>
    <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 指定页面打开完之后要进行的操作.</FONT></SPAN>
    xmlhttp.onreadystatechange = mychange;
    <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 开始发起浏览请求, Mozilla 必须加 null</FONT></SPAN>
    xmlhttp.send(<SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>null</FONT></SPAN>);
}

<SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 这个函数就是每次状态改变要调用的函数</FONT></SPAN>
function mychange() {
    <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 请求已完成</FONT></SPAN>
    <SPAN style="COLOR: rgb(0,0,255)"><FONT size=2>if</FONT></SPAN>(xmlhttp.readyState == 4) {
        <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>//alert(xmlhttp.readyState);</FONT></SPAN>
        alert(xmlhttp.responseText);
        <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 更新对应的 HTML 元素里面显示的内容</FONT></SPAN>
    <SPAN style="COLOR: rgb(0,128,0)"><FONT size=2>// 根据 ID 引用页面里面的元素 document.getElementById(元素名)</FONT></SPAN>
    document.getElementById(<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>'weather'</FONT></SPAN>).innerHTML = xmlhttp.responseText;
    }
}
&lt;/script&gt;

&lt;div id=<SPAN style="COLOR: rgb(0,96,128)"><FONT size=2>"weather"</FONT></SPAN></FONT>&gt;&lt;/div&gt;</PRE></SPAN></FONT></TD></TR></TBODY></TABLE></P>
]]> </description>
</item>
<item>
<title> Dreamweaver cs4 &#30772;&#35299;&#26041;&#27861; </title>
<link> http://blog.lastidea.net/blogshow.asp?id=282 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=282 </guid>
<author> 赵依燃 </author>
<pubDate>2008-9-18 00:00</pubDate>
<category>所属分类:关于MyBlog</category>
<description> <![CDATA[
<DIV class=t_msgfont id=postmessage_8197188><STRONG>破解方法</STRONG><BR>1.先到Adobe官网下一个测试版的cs4。<BR>2.<SPAN class=t_tag onclick=tagshow(event) href="http://www.discuz.net/tag.php?name=%CF%C2%D4%D8">下载</SPAN>完后，进行安装，千万要记住安装完后先不要运行软件，千万不要运行！(<STRONG>运行也没事，只要不要过了试用期就可以</STRONG>)<BR>3.接下来找到这个<SPAN class=t_tag onclick=tagshow(event) href="http://www.discuz.net/tag.php?name=%C4%BF%C2%BC">目录</SPAN> C:\WINDOWS\system32\drivers\etc<BR>4.打开一个叫hosts的<SPAN class=t_tag onclick=tagshow(event) href="http://www.discuz.net/tag.php?name=%CE%C4%BC%FE">文件</SPAN><BR>5.在最下面加上一句127.0.0.1 practivate.adobe.com，保存关闭，在运行软甲就ok了！<BR>6.还有就是<SPAN class=t_tag onclick=tagshow(event) href="http://www.discuz.net/tag.php?name=%CC%E1%CA%BE">提示</SPAN>大家一下，不要更新软件，更新软件后，这个破解方法就失效了！<BR><BR>这个是dreamweaver cs4 的序列号：1192-1413-8739-4724-1366-4303<BR>这个是fireworks CS4 的序列号：1193-1117-4659-6225-5403-2674</DIV>
]]> </description>
</item>
<item>
<title> windows vista IIS7 &#25903;&#25345;asp +access </title>
<link> http://blog.lastidea.net/blogshow.asp?id=281 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=281 </guid>
<author> 赵依燃 </author>
<pubDate>2008-9-18 00:00</pubDate>
<category>所属分类:ASP</category>
<description> <![CDATA[
<DIV class=cnt id=blog_text>
<P>Windows Vista中IIS7是默认不安装的，所以在安装完Windows Vista之后如果需要安装IIS7的话，就要自己动手了。安装的步骤为：开始》控制面板》程序》打开或关闭Windows功能》Internet信息服务。IIS7安装时需要注意的是，如果需要ASP、ASP.NET等的支持，是需要把功能模块给装上的，默认是不安装的。</P>
<P>控制面板中“程序”的位置</P>
<P></P>
<P>“程序”中“打开或关闭Windows功能”的位置</P>
<P></P>
<P>如图，安装IIS7时需要选择要使用的功能模块</P>
<P></P>
<P>IIS7安装完成之后可以在开始菜单的所有程序中看到“管理工具”，其中有一个“Internet信息服务管理器”，如果没有可以按以下步骤添加：开始》右击属性》“开始”菜单选项卡》自定义》把“系统管理工具”设置为“在所有程序菜单显示”或者“在所有程序菜单和开始菜单上显示”。</P>
<P></P>
<P>打开Internet信息服务管理器就可以看到IIS7的主页了</P>
<P></P>
<P><STRONG>IIS7配置ASP+Access使用环境</STRONG></P>
<P>默认装完IIS7之后，使用ASP程序会发现提示数据库连接失败，在网上找了找，说是因为MS Jet引擎改变了临时目录的位置，但是又没有对临时的存取权限，导致数据库使用失败。</P>
<P>先要设置应用程序池(Application Pool)为Classic .NET AppPool，而不是默认的Default AppPool，可以在网站目录里对每个站点设置，也可以在站点进行单独设置。选择好要设置的站点之后，点右边的“基本设置”即可调出应用程序池设置对话框。</P>
<P></P>
<P></P>
<P>然后再给“系统盘:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp”目录添加一个“Authenticated Users”的用户，其中AppData目录是隐藏的，在进入的时候可以直接在地址栏输入路径，或者在文件夹选项里显示隐藏文件。</P>
<P>设置权限步骤：右击Temp文件夹，选择“属性”》选择“安全”选项卡》单击“编辑”》出来“Temp 的权限”对话框，单击“添加”，在下面的“输入对象名称来选择”中输入Authenticated Users，确定》返回到“Temp 的权限”，将Authenticated Users的权限中的完全控制给勾上，确定》确定。</P>
<P></P>
<P><STRONG>启用父路径支持</STRONG></P>
<P>在站点主页上选择“ASP”，然后在“行为”组中将“启用父路径”设置为True即可。</P>
<P></P>
<P>至此，完成了Windows Vista中IIS7的安装及使用ASP+Access的配置。</P></DIV>
]]> </description>
</item>
<item>
<title> &#22312;Firefox&#20013;&#23545;iframe&#23545;&#35937;&#36827;&#34892;&#32534;&#36753; </title>
<link> http://blog.lastidea.net/blogshow.asp?id=280 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=280 </guid>
<author> &#36213;&#20381;&#29123; </author>
<pubDate>2008-9-8 00:00</pubDate>
<category>所属分类:JavaScript</category>
<description> <![CDATA[
<P>IE中iframe或者frame的contentWindow属性可以省略，但在Firefox中如果要对iframe对象进行编辑则<BR>必须指定contentWindow属性。</P>
<P>function EnableEdit()<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var editor;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor = document.getElementById("HtmlEdit").contentWindow;<BR>&nbsp;&nbsp;&nbsp; // 针对IE浏览器, 可编辑<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.designMode = 'On';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.contentEditable = true;<BR>&nbsp;&nbsp;&nbsp; // 兼容 FireFox, 打开并写入<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.open();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.writeln('&lt;html&gt;&lt;head&gt;');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.writeln('&lt;style&gt;body {background: white;font-size:9pt;margin: 2px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; padding: 0px;}&lt;/style&gt;');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.writeln('&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;');<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; editor.document.close();</P>
<P>}</P>
<P>&lt;iframe&nbsp;&nbsp;&nbsp; ID="HtmlEdit" MARGINHEIGHT="1" MARGINWIDTH="1" width="100%" height="500"&gt;<BR>&lt;/iframe&gt;</P>
<P>&lt;html&gt;<BR>&lt;body&gt;<BR>&lt;script&gt;<BR>var ifr = document.createElement("iframe");<BR>document.body.appendChild(ifr);<BR>var ifrdoc = ifr.contentWindow.document;<BR>var s = fixingHTB.innerHTML;&nbsp;&nbsp;&nbsp; //进入可编辑模式前存好<BR>ifrdoc.designMode = "on";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //文档进入可编辑模式<BR>ifrdoc.open();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //打开流<BR>ifrdoc.write(s); <BR>ifrdoc.close();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //关闭流<BR>ifrdoc.designMode ="off";&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //文档进入非可编辑模式<BR>&lt;/script&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;</P>
<P><BR>--------------------------------or-----</P>
<P></P>
<P>&lt;script&gt;<BR>function start()<BR>{<BR>var EditBox = document.getElementById("EditBox");<BR>EditBox.contentWindow.document.designMode = "On";<BR>}<BR>&lt;/script&gt;<BR>&lt;/head&gt;</P>
<P>&lt;body onload="start();"&gt;<BR>&lt;iframe id="EditBox"&gt;&lt;/iframe&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR></P>
]]> </description>
</item>
<item>
<title> &#31449;&#38271;&#20316;&#21697;--&#24605;&#33769;&#20848;&#38598;&#22242; </title>
<link> http://blog.lastidea.net/blogshow.asp?id=278 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=278 </guid>
<author> 赵依燃 </author>
<pubDate>2008-9-1 00:00</pubDate>
<category>所属分类:关于MyBlog</category>
<description> <![CDATA[
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P><A href="http://www.spl-splendor.com/" target=_blank><IMG src="http://www.spl-splendor.com/images/logo.gif" border=0></A></P>
<P>思菩兰服装皮革有限公司 <A href="http://www.spl-splendor.com/">http://www.spl-splendor.com</A></P>
<P>幸福在前进...</P></BLOCKQUOTE>
]]> </description>
</item>
<item>
<title> PHP&#25991;&#20214;&#21253;&#21547;-include&#21644;require&#30340;&#21306;&#21035; </title>
<link> http://blog.lastidea.net/blogshow.asp?id=277 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=277 </guid>
<author> 赵依燃 </author>
<pubDate>2008-6-19 00:00</pubDate>
<category>所属分类:PHP</category>
<description> <![CDATA[
<P>当页面中再三重复用到同样的内容时，用include()函数包含文件，这个方法可以简化编码工作。例如，关联相同的数据库；在页面的页眉或页脚显示相同的HTML。类似的应用不胜枚举。那么如何来应用呢？ </P>
<P>&lt;html&gt; <BR>&lt;body&gt; <BR>&lt;?php <BR>include ("example.inc"); <BR>?&gt; <BR>&lt;/body&gt; <BR>&lt;/html&gt; </P>
<P>现在来看一下，在“example.inc”文件中，如果加入如下的代码： </P>
<P>&lt;?php <BR>$hello = "Hello World"; <BR>echo $hello; <BR>?&gt; </P>
<P>就和把它们全部直接写到前面的代码中一样。唯一要注意的是必须把PHP分隔符（上述代码的首行和末行）也加入被包含的文件中，否则这些代码仅仅在那里显示而不被执行。实际上可以指定任何包含文件的名字，用.inc文件名是为了来把它们和其他PHP脚本中分隔开。也可以用下面方法实现， </P>
<P>&lt;?php <BR>require ("example.inc"); <BR>?&gt; </P>
<P>这和上面的include()函数包含有什么区别呢？如果用require()函数包含的文件不存在，那么当运行脚本时程序就停止运行并给出错误信息。如果是用include包含的话，则显示一条警告，仍继续执行脚本。在我们下面的例子中，就是一个可能出现错误例子。用include()函数包含时候出现如下错误提示： </P>
<P>Warning: Failed opening ''hello.inc'' for inclusion (include_path='''') in /tutorial/9.php on line 6 </P>
<P>如果用require()函数包含文件，可能出现以下错误信息： </P>
<P>Fatal error: Failed opening required ''hello.inc'' (include_path='''') in /tutorial/9.php on line 6 </P>
<P>看到里边的细微差别了吗？用require包含文件的话，给出了一个“严重错误；而用include()函数包含文件只给出一个“警告”。 </P>
<P>用包含文件唯一的问题是是否在包含文件中保存了密码。既然当连接数据库时，PostgreSQL 不用密码（至少本例中不用），那这个问题就不重要了。在以后的例子中，我们会用一个文件来包含所有信息。 </P>
<P>[补充--by Boban] <BR>1). 两者的区别是，require()函数包含进来的内容是作为整个文档的一个组成，而include()函数则不是。在一个正确的PHP程序中，使用require()函数的时候，如果包含进来的文件语法或者其他错误，则整个文档的PHP脚本都不再运行；如果使用include()函数包含的时候，程序只在有语法错误的地方提示错误，而PHP脚本的其他正确的部分继续运行。 <BR>2). include()函数可以使用在条件语句、循环控制语句中，例如if(1==1)，来判断是否需要包含该文件，而require()函数将忽略这些条件，不管3721统统包含进来。 <BR>3). 如果包含文件中定义了变量、函数、类等，最好使用include()函数，并且做一个宏定义，例如if(!define("_EXAMPLE_INC")) define("_EXAMPLE_INC",1);语句防止重复包含而导致错误。 <BR></P>
]]> </description>
</item>
<item>
<title> form 不换行 解决form占位的问题 </title>
<link> http://blog.lastidea.net/blogshow.asp?id=276 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=276 </guid>
<author> 赵依燃 </author>
<pubDate>2008-6-5 00:00</pubDate>
<category>所属分类:CSS</category>
<description> <![CDATA[
<FONT size=2>在写&nbsp;Html&nbsp;的时,&nbsp;写到&nbsp;FORM&nbsp;会让造成空隔多空一行&nbsp;等等的问题。&nbsp;以往都是将&nbsp;Form&nbsp;塞到&nbsp;Table&nbsp;跟&nbsp;tr&nbsp;间&nbsp;的这些方法来解决(或tr,td之间)</FONT> 
<DIV>
<DIV style="BORDER-RIGHT: rgb(170,170,170) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(170,170,170) 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: rgb(170,170,170) 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: rgb(170,170,170) 1px solid; BACKGROUND-COLOR: rgb(245,245,245)"><FONT size=2>&lt;table&gt; </FONT>
<DIV><FONT size=2>&lt;form&gt;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; &lt;tr&gt;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;/td&gt;</FONT></DIV>
<DIV><FONT size=2>&nbsp;&nbsp; &lt;/tr&gt;</FONT></DIV>
<DIV><FONT size=2>&lt;/form&gt;</FONT></DIV><FONT size=2>&lt;/table&gt;</FONT></DIV></DIV>
<DIV><FONT size=2><BR>事实上&nbsp;css&nbsp;有简易的解法~~~&nbsp;照下面的一设就搞定了~&nbsp;<BR></FONT></DIV>
<DIV style="BORDER-RIGHT: rgb(170,170,170) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(170,170,170) 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; BORDER-LEFT: rgb(170,170,170) 1px solid; PADDING-TOP: 5px; BORDER-BOTTOM: rgb(170,170,170) 1px solid; BACKGROUND-COLOR: rgb(245,245,245)">
<DIV><FONT color=#ff0000 size=2>form{margin:0px;display:&nbsp;inline}</FONT></DIV></DIV>
<DIV><BR><BR><FONT size=2>margin:&nbsp;上下左右间隔都设为&nbsp;0px&nbsp;<BR>display:&nbsp;inline&nbsp;之后显示的秀在同一行.<BR>&lt;h1&gt;&nbsp;想不换行也是同样解法.&nbsp;&lt;/h1&gt;&nbsp;</FONT></DIV>
<DIV><FONT size=2>只要<FONT color=#ff0000>&lt;h1&nbsp;style="display:&nbsp;inline;"&gt;&nbsp;</FONT>就可以了.<BR></FONT></DIV>
]]> </description>
</item>
<item>
<title> 数字类型的length是undefined </title>
<link> http://blog.lastidea.net/blogshow.asp?id=275 </link>
<guid> http://blog.lastidea.net/blogshow.asp?id=275 </guid>
<author> 赵依燃 </author>
<pubDate>2008-5-30 00:00</pubDate>
<category>所属分类:JavaScript</category>
<description> <![CDATA[
<P>对数值类型直接进行求length得到的值是undefined。要对数字类型求长度，要先把数字类型转化为字符类型</P>
<P>javascript类型隐型转化对这点不起作用，害我找错找了老半天。</P>
<P>
<TABLE style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellSpacing=0 cellPadding=6 width="95%" align=center border=0>
<TBODY>
<TR>
<TD style="WORD-WRAP: break-word" bgColor=#f3f3f3>&lt;script&gt;<BR>&nbsp;var a=12345;<BR>&nbsp;var b=a.length;<BR>&nbsp;var c=a.toString().length;<BR>&nbsp;alert (b);<BR>&nbsp;alert (c);<BR>&lt;/script&gt;</TD></TR></TBODY></TABLE></P>
]]> </description>
</item>
</channel></rss>