1、在asp網頁設計中,如何實現某個radio按鈕選中,一個文本輸入框就可以輸入東西
用標簽的來id屬性聯系自,然後用document.getElement("id")獲得該對象的id值,得到id值後就可以執行相應的代碼了
<input name="input1" id="inputId1" type="text">
<input name="input2" id="inputId2" type="text">
2、網頁設計輸入框問題
用戶名那個如果用html的要用html才有
<input id="u_email" name="u_email" type="email"/>即時提醒錯誤的用js可以
<script type="text/javascript">望採納!
3、網頁製作中輸入框的樣子怎麼改變??
1、通過css+div進行輸入框樣式的調整
例如:
輸入框景背景透明:
<input style="background:transparent;border:1px solid #ffffff">
滑鼠劃過輸版入框,輸入框背景色變權色:
<INPUT value="Type here" NAME="user_pass" TYPE="text" SIZE="29" onmouseover="this.style.borderColor='black';this.style.backgroundColor='plum'"
style="width: 106; height: 21"
onmouseout="this.style.borderColor='black';this.style.backgroundColor='#ffffff'" style="border-width:1px;border-color=black">
4、css網頁設計中怎樣讓文本框變長
1、首先打開Hbuilder編輯器軟體,新建一個html文件,html文件中寫入兩個textarea文本框,並且給第二個文回本設置一個class屬性。
2、然答後先給第一個文本框添加rows和cols屬性,它們分別用來控制文本框的行數和列數,設置這兩個屬性就能改變文本框的高和寬;同時給第二個textarea設置class屬性,在上方的style標簽中設置width寬度和height高度即可,這種辦法可以精確到像素級,所以比較常用。
3、最後打開瀏覽器,就可以看到設置的兩個不同寬度的文本框效果了。
5、怎樣製作網站中的輸入框
插入》表單》文本區域 然後下面有屬性,可以選擇是一般輸入框還是密碼!
6、設計html中 表單功能中關於文本輸入框的問題
文字和抄框放到一個div里,文字和框襲用兩個div區分左右就行了,css控制好位置,display:inline,在同一行顯示。
文字用<p>來分開兩個段落。默認顯示方式display:block,所以兩個p會直接分成兩個段落。
背景色用background屬性設置即可
7、網頁設計中的輸入框是個黃色的矩形該如何處理?
邊框背景設置為background即可,如果不需要黃底,就不要添加任何參數,詳情可查閱登陸框代碼
8、網頁設計html中,在文本框中輸入文字,單擊「確認」按鈕後,將文字設置為網頁標題
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<input type="text">
<button>確認</button>
<script>
var input = document.getElementsByTagName('input')[0];
var button = document.getElementsByTagName('button')[0];
button.onclick = function () {
if(input.value.length != 0) {
document.title = input.value;
}
}
</script>
</body>
</html>
9、html網頁製作當中,如何實現編輯框使得用戶輸入內容後點提交按鈕能使輸入的內容顯示在網頁中?
Q空間的留言板是連接資料庫的,他的提交大概有2個操作,一個是把信息提交資料庫,一個是刷新留言板獲取最新的留言信息。
你的需求不連接資料庫那就很簡答了。代碼如下:
一個兩個文本域,第一個是不允許編輯的,第二個是可以編輯的,在第二個文本域輸入信息的時候,點submit按鈕,會在第一個文本域顯示出來。這只是演示,具體情況根據需求自己定義。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>test about javascript</title>
<script type="text/javascript">
function showMsgs(){
var msg = document.getElementById("msg").value;
var showMsg = document.getElementById("showMsg");
showMsg.value = msg;
}
</script>
</head>
<body><center>
<textArea id='showMsg' disabled></textArea><br>
<textArea id='msg'></textArea><br>
<input type='button' value='submit' onclick="showMsgs()">
</center>
</body></html>
10、幫忙製作個簡單的網頁 asp或html 輸入框
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文檔</title>
</head>
<body>
<%
if request.Form("text1")<>"" then
htmlfile = server.MapPath(request.Form("text1")&".html")
set filefso = server.CreateObject("scripting.filesystemobject")
if filefso.fileexists(htmlfile) then
response.Write("<script>window.open('"&request.Form("text1")&".html')</script>")
else
response.Write("<script>window.open('01.html')</script>")
end if
set filefso = nothing
end if
%>
<form id="form1" action="mytest.asp" method="post">
<input type="text" name="text1" id="text1" />
<input type="text" name="text2" id="text2" />
<input type="submit" />
</form>
</body>
</html>