Form chọn một trong các liên kết cần đến
Chủ Nhật, 18 tháng 7, 2010
Có thể dùng để tạo một box bình chọn ý kiến.
<SCRIPT language="JavaScript">
<!--
var thesites= new Array()
thesites[0]="http://www.code1k.com/search?q=pageindex.aspx";
thesites[1]="http://www.code1k.com/";
thesites[2]="http://panel.code1k.com/";
var gosite="";
function geturl(thenum)
{
gosite=thesites[thenum];
}
function gothere()
{
if ((gosite==null) || (gosite==""))
alert("Chọn trang bạn cần đến!");
else
window.location=gosite;
}
//-->
</SCRIPT>
<FORM>
<input type="radio" name="r1" onClick="geturl(0)">Trang chủ<br>
<input type="radio" name="r1" onClick="geturl(1)">Đăng nhập<br>
<input type="radio" name="r1" onClick="geturl(2)">Bảng điều khiển
<br>
<input type=button value="GO" onClick="gothere()">
</FORM>
<!--
var thesites= new Array()
thesites[0]="http://www.code1k.com/search?q=pageindex.aspx";
thesites[1]="http://www.code1k.com/";
thesites[2]="http://panel.code1k.com/";
var gosite="";
function geturl(thenum)
{
gosite=thesites[thenum];
}
function gothere()
{
if ((gosite==null) || (gosite==""))
alert("Chọn trang bạn cần đến!");
else
window.location=gosite;
}
//-->
</SCRIPT>
<FORM>
<input type="radio" name="r1" onClick="geturl(0)">Trang chủ<br>
<input type="radio" name="r1" onClick="geturl(1)">Đăng nhập<br>
<input type="radio" name="r1" onClick="geturl(2)">Bảng điều khiển
<br>
<input type=button value="GO" onClick="gothere()">
</FORM>
Nguồn: code1k.
Tăng cỡ chữ
Mặc định
Giảm cỡ chữ
Liên hệ mail: tpm1512@yahoo.com và xem tất cả bài viết trang này
Tại đây
Nhấn vào theo dõi thăm trang web của Trần Phúc Minh
-
https://yogaso1.blogspot.com/2010/07/form-chon-mot-trong-cac-lien-ket-can-en.html?m=0
Minh cám ơn bạn đã quan tâm và rất vui vì bài viết đã đem lại thông tin hữu ích cho bạn.
MENU
Sản phẩm
Trang chủ
Nổi bậc
Tiện ích
Tài khoản
Tác vụ
YOUTUBE
Trang chủ
Lên trên
Tổng số Bình luận [ 0]
Đăng nhận xét