站 内 搜 索
热门特效推荐

  您当前位置:中国素材首页 >> 网页特效 >> 资料类 >> 常见问题
 
常见问题
中国素材网 www.sucai86.com 2005-3-31 13:44:22 流量数:

常见问题
[查看演示]  源码如下
----------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>常见问题-51windows.com-www.51windows.Net</title>
<style>
<!--
body,p { font:menu;color: #0000FF }
-->
</style>
</head>

<body>

<p><font color="#FF0000">请问如何去掉主页右面的滚动条?</font><br>
&lt;body scroll=&quot;no&quot;&gt;<br>
&lt;body style=&quot;overflow-y:hidden&quot;&gt;<br>
********************************<br>
<font color="#FF0000">怎样不使用页面的缓存?即每一次打开页面时不是调用缓存中的东西</font><br>
&lt;META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;&gt;<br>
********************************<br>
<font color="#FF0000">请问如何忽视右键?</font><br>
&lt;body oncontextmenu=&quot;return false&quot;&gt;<br>
********************************<br>
<font color="#FF0000">怎样在同一页面内控制不同链接的CSS属性?</font><br>
a:active{}<br>
a:link{}<br>
a:visited{}<br>
<br>
a.1:active{}<br>
a.1:link{}<br>
a.1:visited{}<br>
在DW4的CSS中定义一个新的标示,按照HTML的语法,超级连接得是<br>
A.YOURS:LINK A.YOURS:HOVER<br>
YOURS可以改作你自己的字<br>
然后在选中某个连接后,在CSS面版中点中YOURS即可。<br>
按需要,你可以定义N个标示,N种鼠标OVER的效果<br>
********************************<br>
电子邮件处理提交表单<br>
&lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;mailto:webmaster@51js.com&quot;
enctype=&quot;text/plain&quot;&gt;<br>
&lt;input type=submit&gt;<br>
&lt;/form&gt;<br>
********************************<br>
<font color="#FF0000">有没有可能用层来遮住FLASH?</font><br>
1.在flash的parameters里加入 &lt;param name=&quot;wmode&quot;
value=&quot;transparent&quot;&gt;<br>
2.&lt;body onblur=self.focus()&gt;<br>
********************************<br>
<font color="#FF0000">如何根据屏幕分辨率调用相对应的页面?<br>
onclick=alert(&quot;你的显示分辩率为:&quot;+screen.width+&quot;×&quot;+screen.height)</font><br>
先做好几个页面,比如一个htm1.htm是800*600,一个是htm2.htm是1024*768的<br>
然后在你的入口页面 index.htm 中判断:<br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;script language=javascript&gt;<br>
&lt;!--<br>
function mHref() {<br>
if (screen.width == 1024) location.href = &quot;htm2.htm&quot;;<br>
else if (screen.width == 800) location.href = &quot;htm1.htm&quot;;<br>
else return(false);<br>
}<br>
//--&gt;<br>
&lt;/script&gt;<br>
&lt;/head&gt;<br>
&lt;body onload=&quot;mHref();&quot;&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
********************************<br>
<font color="#FF0000">如何弹出只有状态栏的窗口?</font><br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;title&gt;open() close()&lt;/title&gt;<br>
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br>
&lt;!--<br>
function openWin()<br>
{<br>
var newWin=open(&quot;&quot;,&quot;&quot;,&quot;menubar=1,height=200&quot;);<br>
newWin.document.write(&quot;&lt;form&gt;&quot;);<br>
newWin.document.write(&quot;单击以下按钮关闭窗口:&lt;p&gt;&quot;);<br>
newWin.document.write(&quot;&lt;input type=button value='关闭' onclick=window.close()&gt;&quot;);<br>
newWin.document.write(&quot;&lt;/form&gt;&quot;);<br>
}<br>
&lt;/script&gt;&lt;/head&gt;<br>
&lt;body&gt;<br>
&lt;div align=center&gt;<br>
&lt;h2&gt;单击以下按钮显示新窗口...&lt;/h2&gt;<br>
&lt;form name=form1&gt;<br>
&lt;input type=button value=&quot;新窗口1[只显示地址栏]&quot; onclick=window.open('','new1','location=1')&gt;<br>
&lt;input type=button value=&quot;新窗口2[只显示状态栏]&quot; onclick=window.open('','','status=1')&gt;<br>
&lt;input type=button value=&quot;新窗口3[只显示工具栏]&quot; onclick=window.open('','new2','toolbar=1,height=200,width=450')&gt;<br>
&lt;input type=button value=&quot;新窗口4[只显示菜单栏]&quot; onclick=openWin()&gt;<br>
&lt;input type=button value=&quot;新窗口5[一个不少]&quot; onclick=window.open('','new5')&gt;<br>
&lt;input type=button value=&quot;新窗口6[光棍但可调大小]&quot;
onclick=window.open('http://www.51js.com/forumdisplay.php?forumid=32#thread','new6','resizable=1')&gt;<br>
&lt;/form&gt;<br>
&lt;/div&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
********************************<br>
<font color="#FF0000">如何让超链接没有下划线</font><br>
在源代码中的&lt;HEAD&gt;…&lt;/HEAD&gt;之间输入如下代码:<br>
&lt;style type=&quot;text/css&quot;&gt; &lt;!--<br>
a { text-decoration: none}<br>
--&gt; &lt;/style&gt;<br>
********************************<br>
<font color="#FF0000">请问如何做到让一个网页自动关闭.</font><br>
&lt;html&gt;<br>
&lt;head&gt;<br>
&lt;OBJECT id=closes type=&quot;application/x-oleobject&quot; classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;&gt;<br>
&lt;param name=&quot;Command&quot; value=&quot;Close&quot;&gt;<br>
&lt;/object&gt;<br>
&lt;/head&gt;<br>
&lt;body onload=&quot;window.setTimeout('closes.Click()',10000)&quot;&gt;<br>
这个窗口会在10秒过后自动关闭,而且不会出现提示.
&lt;/body&gt;<br>
********************************<br>
<font color="#FF0000">如何几秒后转到别的页面?</font><br>
代码片段如下:<br>
&lt;META HTTP-EQUIV=&quot;Refresh&quot;
CONTENT=&quot;10;URL=http://www.51js.com&quot;&gt;<br>
十秒中后跳到51JS.COM的首页<br>
********************************<br>
怎样才能把RealPlayer文件在网页做一个试听连接?<br>
&lt;embed height=25 src=51js.rm type=audio/x-pn-realaudio-plugin width=50
autostart=&quot;false&quot; controls=&quot;PlayButton&quot;&gt;<br>
********************************<br>
请问如何去掉IE的上下滚动条?<br>
&lt;body style='overflow:scroll;overflow-y:hidden'&gt;<br>
&lt;/body&gt;<br>
********************************<br>
解释一下event.X和event.clientX有什么区别?<br>
event.clientX返回事件发生时,mouse相对于客户窗口的X坐标<br>
event.X也一样<br>
但是如果设置事件对象的定位属性值为relative<br>
event.clientX不变<br>
而event.X返回事件对象的相对于本体的坐标<br>
event对象详解 ICOOE 2000.3.31 http://www.51js.com/<br>
event代表事件的状态,例如事件发生的的元素、鼠标的位置等等,event对象只在事件过程中才有效。<br>
<br>
event属性:<br>
<br>
altKey<br>
检索ALT键的当前状态<br>
可能的值 true为关闭<br>
false为不关闭<br>
<br>
button<br>
检索按下的鼠标键<br>
可能的值: 0 没按键<br>
1 按左键<br>
2 按右键<br>
3 按左右键<br>
4 按中间键<br>
5 按左键和中间键<br>
6 按右键和中间键<br>
7 按所有的键<br>
<br>
cancelBubble<br>
设置或检索当前事件是否将事件句柄起泡<br>
可能的值: false 启用起泡<br>
true 取消该事件起泡<br>
<br>
clientX<br>
检索与窗口客户区域有关的鼠标光标的X坐标,属性为只读,没有默认值。<br>
<br>
clientY<br>
检索与窗口客户区域有关的鼠标光标的Y坐标,属性为只读,没有默认值。<br>
<br>
ctrlKey<br>
ctrlKey 检索CTRL键的当前状态<br>
可能的值 true为关闭<br>
false为不关闭<br>
<br>
dataFld<br>
检索被oncellchange事伯影响的列<br>
<br>
aTransfer<br>
为拖放操作提供预先定义的剪贴板式。<br>
<br>
Element<br>
检索在onmouseover和onmouseout事件期间退出的对象指针<br>
<br>
keyCode<br>
设置或检索与引发事件的关键字相关联的Unicode关键字代码<br>
该属性与onkeydown onkeyup onkeypress一起使用<br>
如果没有引发事件的关键字,则该值为0<br>
<br>
offsetX<br>
检索与触发事件的对象相关的鼠标位置的水平坐标<br>
<br>
offsetY<br>
检索与触发事件的对象相关的鼠标位置的垂直坐标<br>
<br>
propertyName<br>
检索在对象上己更改的特性的名称<br>
<br>
reason<br>
检索数据源对象数据传输的结果<br>
可能的值:<br>
0 数据传输成功<br>
1 数据传输失败<br>
2 数据传输错误<br>
<br>
recordset<br>
检索数据源对象中默认记录集的引用<br>
该特性为只读<br>
<br>
repeat<br>
检索一个事件是否被重复<br>
该属性只有在onkeydown事件重复时才返回true<br>
<br>
returnValue<br>
设置或检索从事件中返回的值<br>
可能的值:<br>
true 事件中的值被返回<br>
false 源对象上事件的默认操作被取消<br>
<br>
screenX<br>
检索与用户屏相关的鼠标的水平位置<br>
<br>
screenY<br>
检索与用户屏相关的鼠标的垂直位置<br>
<br>
shiftKey<br>
检索shiftKey键的当前状态<br>
可能的值 true为关闭<br>
false为不关闭<br>
<br>
srcElement<br>
检索触发事件的对象<br>
<br>
srcFilter<br>
检索导致onfilterchange事件触发的过滤器对象<br>
<br>
srcUm<br>
检索触发事件行为的同一资源名称<br>
除非下面两个条件都为真,否则该特性被设置为null<br>
1.行为被附加到触发事件的要素上<br>
2.在前面的项目符号中定义的行为己指定了一个URN标识符和己触发的事件<br>
toElement<br>
检索作为onmouseover或者onmouseout事件结果而移动的对象<br>
type<br>
检索事件对象中的事件名称<br>
x<br>
检索相对于父要素鼠标水平坐标的整数<br>
y<br>
检索相对于父要素鼠标垂直坐标的整数<br>
********************************************<br>
<font color="#FF0000">如何让一个窗口永远在最上面?</font><br>
&lt;a onclick=aa()&gt;点这里&lt;/a&gt;<br>
&lt;script language='javascript'&gt;<br>
function aa(){<br>
y=window.showModalDialog(&quot;http://www.51js.com&quot;,&quot;&quot;,&quot;Height:
300; Width: 275; help: no&quot;);<br>
}<br>
&lt;/script&gt;<br>
********************************************<br>
<font color="#FF0000">target=&quot;_blank&quot;规定链接在新窗口中打开,那
target=&quot;_parent&quot;、 target=&quot;_self&quot; 、target=&quot;_top&quot;的作用又是什么?</font><br>
target=&quot;_parent&quot;、上一层框架<br>
target=&quot;_self&quot; 、自身窗口、框架<br>
target=&quot;_top&quot; 最顶层框架。<br>
更细点的解释,从织梦补给网找来的:<br>
_blank<br>
<br>
開啟一個新的視窗,而且是沒有命名的視窗。<br>
<br>
_self<br>
<br>
強迫連結的結果顯示在同一個子畫面,而忽略 BASE 的設定。<br>
<br>
_parent<br>
<br>
在該子畫面的「父畫面」(也就是上一層的 FRAMESET)中顯示連結的結果。<br>
<br>
_top<br>
<br>
從視窗的最上頭開始顯示畫面;換句話說就是先清除整個視窗後再載入連結。<br>
********************************************<br>
如何使网友收藏本网时,收藏夹显示的不是微软的那个一成不变的标志,而是本人选择的ICON?<br>
&lt;LINK href=&quot;fav.ico&quot; rel=&quot;shortcut icon&quot;&gt;<br>
加入HADE標簽中,圖片放入根目錄下,須是.ico格式.<br>
有的空間不支援直接放在根目錄<br>
必須加上<br>
&lt;LINK href=&quot;路徑/圖檔.ico&quot; rel=&quot;shortcut icon&quot;&gt;<br>
********************************************<br>
如何监听一个窗口被关闭了?<br>
&lt;body onunload=&quot;alert('你关闭了这个窗口')&quot;&gt;<br>
********************************************<br>
什么是innerHTML、outerHTML………还有innerText?<br>
&lt;div id=test&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;文本&lt;a&gt;链接&lt;/a&gt;另一段文本&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;<br>
&lt;input type=button onclick=alert(test.innerText) value=&quot;show innerText&quot;&gt;&lt;br&gt;<br>
&lt;input type=button onclick=alert(test.innerHTML) value=&quot;show innerHTML&quot;&gt;&lt;br&gt;<br>
&lt;input type=button onclick=alert(test.outerHTML) value=&quot;show outerHTML&quot;&gt;&lt;br&gt;<br>
********************************************<br>
window方法列表!<br>
发现经常有人问一些有关窗口操作的问题,<br>
所以花了些时间整理出这篇文章,<br>
希望以后不会再有人问这方面的问题。<br>
<br>
ie里window的method列表<br>
<br>
alert(sMsg)<br>
//弹出一个确认消息框<br>
attachEvent(sEvent,pFunction)<br>
//绑定一个函数到某个事件,事件触发时随机执行其中一个被绑定的函数<br>
blur()<br>
//令窗口丧失焦点<br>
<br>
clearInterval(iIntervalID)<br>
//清除指定定时器的关联函数<br>
clearTimeout(iTimeoutID)<br>
//清除指定延时器的关联函数<br>
close()<br>
//关闭窗口,如果窗口不是用脚本打开的,会弹出确认对话框。<br>
confirm([sMessage])<br>
//弹出“确定/取消”对话框<br>
createPopup([vArgs])<br>
//创建一个隐藏的弹出式窗口,vArgs是未来考虑提供的参数,返回窗口句柄<br>
detachEvent(sEvent,pFunction)<br>
//取消一个事件的某个绑定函数<br>
execScript(sExpression, sLanguage)<br>
//用指定的语言执行代码<br>
focus()<br>
//激活窗口<br>
<br>
moveBy(iX,iY)<br>
//用相对方式移动窗口<br>
moveTo(iLeft,iTop)<br>
//用绝对方式移动窗口<br>
navigate(sURL)<br>
//转到指定的连接<br>
<br>
open( [sURL] [, sName] [, sFeatures] [, bReplace])<br>
//打开新窗口,并返回窗口句柄<br>
//sName=(*_blank:打开一个新的未命名窗口;_parent:在父窗口中打开;_search:同时打开搜索窗口;_self:替换本窗口;
_top:在顶级窗口里打开;*)<br>
//sFeatures=(*channelmode = { yes | no | 1 | 0 };directories = { yes | no | 1 |
0 };fullscreen = { yes | no | 1 | 0 };height = number;left = number;location = {
yes | no | 1 | 0 };menubar = { yes | no | 1 | 0 };resizable = { yes | no | 1 | 0
};scrollbars = { yes | no | 1 | 0 };status = { yes | no | 1 | 0 };titlebar = {
yes | no | 1 | 0 };toolbar = { yes | no | 1 | 0 };top = number;width = number;*)<br>
<br>
print()<br>
//打印当前窗口文档内容<br>
prompt( [sMessage] [, sDefaultValue])<br>
//弹出输入对话框<br>
resizeBy(iX, iY)<br>
//以相对方式改变窗口大小<br>
resizeTo(iWidth, iHeight)<br>
//以绝对方式改变窗口大小<br>
<br>
scroll(iX,iY)<br>
滚动窗口,与scrollTo一样的效果,出于兼容性的考虑保留下来的方法<br>
scrollBy(iX, iY)<br>
//用相对方式滚动窗口<br>
scrollTo(iX, iY)<br>
//用绝对方式滚动窗口<br>
setActive()<br>
//激活目标而不将视线转向目标<br>
setInterval(vCode, iMilliSeconds [, sLanguage])<br>
//定时执行一段代码<br>
setTimeout(vCode, iMilliSeconds, sLanguage)<br>
//延时执行一段代码<br>
showHelp(sURL [, vContextID])<br>
//打开一个帮助文件,sURL为帮助文档地址,vContextID为帮助索引号<br>
showModalDialog(sURL [, vArguments] [, sFeatures])<br>
<br>
showModalDialog(sURL [, vArguments] [, sFeatures])<br>
//打开一个模式对话框<br>
//vArguments=需要向新开模式对话框传递的参数<br>
//sFeatures=(*dialogHeight:sHeight;dialogLeft:sXPos;dialogTop:sYPos;dialogWidth:sWidth;center:{
yes | no | 1 | 0 | on | off };dialogHide:{ yes | no | 1 | 0 | on | off };edge:{
sunken | raised };help:{ yes | no | 1 | 0 | on | off };resizable:{ yes | no | 1
| 0 | on | off };scroll:{ yes | no | 1 | 0 | on | off };status:{ yes | no | 1 |
0 | on | off };unadorned:{ yes | no | 1 | 0 | on | off };*)<br>
<br>
showModelessDialog(sURL [, vArguments] [, sFeatures])<br>
//打开一个非模式对话框<br>
//vArgument=需要向新开模式对话框传递的参数<br>
//sFeatures=(*dialogHeight:sHeight;dialogLeft:sXPos;dialogTop:sYPos;dialogWidth:sWidth;center:{
yes | no | 1 | 0 | on | off };dialogHide:{ yes | no | 1 | 0 | on | off };edge:{
sunken | raised };help:{ yes | no | 1 | 0 | on | off };resizable:{ yes | no | 1
| 0 | on | off };scroll:{ yes | no | 1 | 0 | on | off };status:{ yes | no | 1 |
0 | on | off };unadorned:{ yes | no | 1 | 0 | on | off };*)<br>
********************************************<br>
execCommand的完全参考(中文版)<br>
document.execCommand(sCommand[,交互方式, 动态参数])<br>
<br>
2D-Position;document.execCommand(&quot;2D-Position&quot;,&quot;false&quot;,&quot;true&quot;);使绝对定位的对象可直接拖动;ie5.5<br>
AbsolutePosition;document.execCommand(&quot;AbsolutePosition&quot;,&quot;false&quot;,&quot;true&quot;);使对象定位变成绝对定位;ie5.5<br>
BackColor;document.execCommand(&quot;BackColor&quot;,&quot;false&quot;,sColor);设置背景颜色;ie4.0<br>
BlockDirLTR;none;使块级元素排版方式为从左到右?;不支持<br>
BlockDirRTL;none;使块级元素排版方式为从右到左?;不支持
Bold;document.execCommand(&quot;Bold&quot;,&quot;false&quot;,null);使选中区域的文字加粗;ie4.0<br>
BrowseMode;none;设置浏览器模式?;不支持 Copy;<br>
document.execCommand(&quot;Copy&quot;,&quot;false&quot;,null);复制选中的文字到剪贴板;ie4.0
CreateBookmark;document.execCommand(&quot;CreateBookmark&quot;,&quot;false&quot;,sAnchorName);设置指定锚点为书签;ie4.0<br>
CreateLink;document.execCommand(&quot;CreateLink&quot;,&quot;false&quot;,sLinkURL);将选中文本变成超连接,若第二个参数为true,会出现参数设置对话框;ie4.0<br>
Cut;document.execCommand(&quot;Cut&quot;,&quot;false&quot;,null);剪贴选中的文字到剪贴板;ie4.0<br>
Delete;document.execCommand(&quot;Delete&quot;,&quot;false&quot;,null);删除选中的文字;ie4.0<br>
DirLTR;none;排版方式为从左到右?;不支持 DirRTL;none;排版方式为从右到左?;不支持<br>
EditMode;none;设置编辑模式?;不支持<br>
FontName;document.execCommand(&quot;FontName&quot;,&quot;false&quot;,sFontName);改变选中区域的字体;ie4.0<br>
FontSize;document.execCommand(&quot;FontSize&quot;,&quot;false&quot;,sSize|iSize);改变选中区域的字体大小;ie4.0<br>
ForeColor;document.execCommand(&quot;ForeColor&quot;,&quot;false&quot;,sColor);设置前景颜色;ie4.0<br>
FormatBlock;document.execCommand(&quot;FormatBlock&quot;,&quot;false&quot;,sTagName);设置当前块的标签名;ie4.0<br>
********************************************<br>
如何把页面加入用户的收藏夹?<br>
&lt;a href=&quot;javascript:window.external.AddFavorite('http://www.51js.com','无忧脚本')&quot;&gt;收藏无忧脚本&lt;/a&gt;<br>
********************************************<br>
如何让浏览器在保存页面时保存失败?<br>
&lt;NOSCRIPT&gt;<br>
&lt;IFRAME SRC=&quot;*.html&quot;&gt;<br>
&lt;/IFRAME&gt;<br>
&lt;/NOSCRIPT&gt;<br>
********************************************<br>
<font color="#FF0000">一个页面内所有复选框的全选功能如何实现?</font><br>
&lt;input type=checkbox&gt;&lt;input type=checkbox&gt;<br>
&lt;input type=checkbox&gt;&lt;input type=checkbox&gt;<br>
&lt;button onclick=SelectAll()&gt;SelectAll&lt;/button&gt;<br>
&lt;script&gt;<br>
function SelectAll()<br>
{<br>
var cInput=document.all.tags('INPUT');<br>
for(var i in cInput)<br>
if(cInput[i].type=='checkbox')cInput[i].checked=true;<br>
}<br>
&lt;/script&gt;<br>
********************************************<br>
<font color="#FF0000">如何在不刷新页面的情况下刷新css?</font><br>
&lt;style&gt;<br>
button{ color:#000000;}<br>
&lt;/style&gt;<br>
&lt;button onclick=document.styleSheets[0].rules[0].style.color='red'&gt;点击按钮直接修改style标签里button选择符使按钮改为红色&lt;/button&gt;<br>
********************************************<br>
<font color="#FF0000">推荐几本asp方面的好书</font><br>
初级入门<br>
《24小时ASP》<br>
《网页数据库设计与发布》<br>
《asp与web数据库》 推荐<br>
<br>
中级提高<br>
《ASP实务经典》中国铁道出版社出版 台湾 林金霖著 48 推荐<br>
《Active Server Pages详解》,电子工业出版社,76<br>
《Active Server Pages 宝典》 电子工业 69元<br>
《asp 3.0彻底研究》中国铁道出版社,廖信彦著<br>
<br>
高级开发<br>
《ASP3高级编程》<br>
《Active Server Pages 3 开发指南》<br>
********************************************<br>
<font color="#FF0000">如何使用asp连接数据库?</font><br>
第一种 - 这种方法用在ACCESS中最多<br>
<br>
strconn = &quot;DRIVER=Microsoft Access Driver (*.mdb);DBQ=&quot; &amp;
Server.MapPath(&quot;aspfree.mdb&quot;)<br>
<br>
set conn = server.createobject(&quot;adodb.connection&quot;)<br>
<br>
conn.open strconn<br>
<br>
第二种-这种方法用在SQL SERVER中多<br>
<br>
strconn = &quot;Driver={SQL<br>
Server};Description=sqldemo;SERVER=127.0.0.1;UID=LoginID;PWD=Password;DATABASE=Database_Name<br>
<br>
set conn = server.createobject(&quot;adodb.connection&quot;)<br>
<br>
conn.open strconn<br>
<br>
第三种<br>
<br>
strconn=&quot;Driver={MicrosoftAccessDriver(*.mdb)};&quot; &amp;_<br>
<br>
&quot;DBQ=F:\Inetpub\wwwroot\somedir\db1.mdb;DefaultDir=f:\Inetpub\wwwroot\somedir;uid=LoginID;&quot;
&amp;_<br>
<br>
&quot;pwd=Password;DriverId=25;FIL=MSAccess;&quot; set conn =
server.createobject(&quot;adodb.connection&quot;)<br>
<br>
conn.open strconn<br>
<br>
第四种运用系统数据源<br>
<br>
The following uses a Data Source Name:<br>
<br>
set conn = server.createobject(&quot;adodb.connection&quot;)<br>
<br>
conn.open &quot;Example&quot;<br>
<br>
第五种运用ODBC数据源,前提是你必须在控制面板的ODBC中设置数据源<br>
<br>
set rs = server.createobject(&quot;adodb.recordset&quot;)<br>
<br>
rs.open &quot;tblname&quot;, &quot;DSNName&quot;, 3, 3<br>
********************************************</p>
</body>
</html>

<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> ----------------------------------------------------------------------------------------
欢迎来到中国素材网!