1.請將抽獎名單張貼到【來源】
2.將樂透號碼貼在【亂數】
3.再按底下【樂透抽獎】
2.中獎名單就會顯示在【目的】
買滴雞精抽7-11禮卷100元2張(中獎機率10%)
http://shop.bestdaylong.com/shop-award-1.htm
網頁工具網址:http://bestdaylong.com/tools.htm
|
廣告 |
<script type="text/javascript">
<!--
function gup( name )//取得url上的變數
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );
if( results == null )
return "";
else
return results[1];
}
var tab=gup('tab');
if(tab=='')
tab=2;
else
tab=parseInt(tab,10);//將文字轉為數字,後面的10代表10進位
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:tab});
//-->
</script>
$sSQL="insert into Personal(Account,Password,Sex,Mobile,Email,Birthday,Tel,Address,Job,Marriage,Children,Edu,Epaper,ModifyDate)
values('$Account','$Password','$Sex','$Mobile','$Email','$Birthday','$Tel','$Address','$Job','$Marriage','$Children','$Edu','$Epaper',now())";
$result=mysql_query($sSQL,$conn);
if(!$result)
echo $sSQL;
else
{
echo "<script language=\"javascript\">alert('".iconv("UTF-8","big5","會員資料已新增完成")."');location.href='./'</script>";
exit;
}
<FORM NAME="MyForm" ACTION="../cgi-bin/mycgi.pl">
name: <INPUT NAME="realname"><BR>
email: <INPUT NAME="email"><BR>
</FORM>
在body之後要加入onLoad="document.forms.MyForm.realname.focus()"
<BODY onLoad="document.forms.MyForm.realname.focus()">
參考資料:Automatically Putting the Cursor in a Field
<SCRIPT TYPE="text/javascript">
<!--
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
{
myfield.form.submit();
return false;
}
else
return true;
}
//-->
</SCRIPT>
底下為form的內容
<FORM ACTION="../cgi-bin/mycgi.pl">
name: <INPUT NAME=realname SIZE=15><BR>
password: <INPUT NAME=password TYPE=PASSWORD SIZE=10
onKeyPress="return submitenter(this,event)"><BR>
<INPUT TYPE=SUBMIT VALUE="Log In">
</FORM>
參考資料:Submit The Form When The User Presses Enter
範列網址:http://f272586.googlepages.com/table_color.htm
新增全選,全不選,反項選取,訊息框:http://f272586.googlepages.com/table_color_v2.htm