aps瀏覽器
不能通過雙擊asp文件來瀏覽它!
瀏覽器只能運行完全由html書寫的靜態網頁。
動態網頁需要IIS來翻譯成靜態網頁,再由瀏覽器顯示結果。
所以,你需要:
1、在機器上(XP 專業版即可)安裝並設置IIS(其獨立安裝包可以從網上下載)
2、在瀏覽器地址欄上輸入localhost
3、通過鏈接進一步鏈接你的ASP文件
㈡ asp如何在瀏覽器中打開
安裝配置IIS
設置IIS主目錄到你的網頁目錄
然後,瀏覽器瀏回覽:http://localhost/你的asp頁面文件答
㈢ asp瀏覽器兼容問題
document.getElementById//是兼容所有瀏覽器的
各個瀏覽器兼容javascript的區別:
這個鏈接你可以看看:http://www.jb51.net/article/21483.htm
你可以通過jquery來實現操作解決瀏覽器兼容的問題!
這個是jquery教程網站:http://www.w3school.com.cn/jquery/index.asp
<html>
<body>
<selectid='ddl'onclick='test();'>
<optionselected>網站連接……</option>
<optionvalue="
<optionvalue="
!dea</option>
<optionvalue="
</seclect>
</body>
<scripttype='text/javascript'>
vartest=function()
{
alert(document.getElementById("ddl").
options[window.document.getElementById("ddl").selectedIndex].text);
}
</script>
</html>
這種寫法是支持谷歌瀏覽器的,兼容所有瀏覽器的!
你把那個select重新起個名字,ddlSelect在試試
GoodLuck!希望能夠幫助到你!
如果幫助到你,請點贊!謝謝!
㈣ 瀏覽器怎麼運行ASP
運行ASP要伺服器支持 不是要瀏覽器支持的 在IIS中設置你的網頁網頁目錄 然後用瀏覽器訪問127.0.0.1 就可以了 如果不會 搜索一下IIS的教程
㈤ asp怎麼獲得瀏覽器寬度
各種尺寸,最後2個是你要的,都看看吧
網頁正文全文寬: document.body.scrollWidth;
網頁正文全文高: document.body.scrollHeight;
網頁被捲去的高: document.body.scrollTop;
網頁被捲去的左: document.body.scrollLeft;
網頁正文部分上: window.screenTop;
網頁正文部分左: window.screenLeft;
屏幕解析度的高: window.screen.height;
屏幕解析度的寬: window.screen.width;
屏幕可用工作區高度: window.screen.availHeight;
屏幕可用工作區寬度: window.screen.availWidth;
㈥ ASP程序該如何獲取當前使用的瀏覽器名稱
<%
Dim Agent,Browser,version,tmpstr
Agent=Request.ServerVariables("HTTP_USER_AGENT")
Agent=Split(Agent,";")
If InStr(Agent(1),"MSIE")>0 Then
Browser="MS Internet Explorer "
version=Trim(Left(Replace(Agent(1),"MSIE",""),6))
ElseIf InStr(Agent(4),"Netscape")>0 Then
Browser="Netscape "
tmpstr=Split(Agent(4),"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent(4),"rv:")>0 Then
Browser="Mozilla "
tmpstr=Split(Agent(4),":")
version=tmpstr(UBound(tmpstr))
If InStr(version,")") > 0 Then
tmpstr=Split(version,")")
version=tmpstr(0)
End If
End If
response.Write(""&Browser&" "&version&"")
%>
㈦ asp判斷瀏覽器類型並顯示不同網頁
我一般都用這種方法來獲得瀏覽器的類型
Dim BrowserString
BrowserString = Request.ServerVariables("HTTP_USER_AGENT")
BrowserString = Lcase(BrowserString)
Dim broFirefox,broMSIE,broOpera,broWap
broFirefox = "firefox"
broMSIE = "msie"
broOpera = "opera"
broWap = "wap"
'如果是Firefox
if Instr(BrowserString, broFirefox) <> 0 then
Response.Redirect(broFirefox & ".asp")
end if
'如果是MSIE
if Instr(BrowserString, broMSIE) <> 0 then
Response.Redirect(broMSIE & ".asp")
end if
'如果是Opera
if Instr(BrowserString, broOpera) <> 0 then
Response.Redirect(broOpera & ".asp")
end if
'如果是Wap(沒有用過所以還要看HTTP_USER_AGENT表示的結果)
if Instr(BrowserString, broWap) <> 0 then
Response.Redirect(broWap & ".asp")
end if
㈧ asp網頁怎樣才能讓所有的瀏覽器兼容
去找一些寫Javascript寫的客戶端框架,如JQuery,ExtJs等,它們都有處理多瀏覽器兼容的解決方案!
㈨ ASP如何檢測瀏覽器的首頁
asp應該是不行的吧- -因為瀏覽器不會告訴你用戶的首頁的,隱私和安全的原因