Team:Tsinghua/try

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<script>  
+
<html>
-
function Ok_OnClick(event)
+
 
-
{
+
 
-
if(document.getElementsByName("textName")[0].value == ""){
+
<!-- SiteSearch Google -->
-
alert("请输入内容");
+
<form method="get" action="http://www.google.com/search">
-
return;
+
        <div style="background-color:white">
-
}//getElementById
+
                <a href="http://www.google.com/">
-
var table;
+
                        <img src="http://www.google.com/logos/Logo_40wht.gif" border="0" alt="Google" />
-
var tableList = document.getElementsByTagName("TABLE");
+
                </a>
-
for(var i = 0 ; i < tableList.length ; i++) {
+
                <input type="text" name="q" size="31" maxlength="255" value="html" />
-
if(tableList[i].name == "tableName") {
+
                <input type="hidden" name="ie" value="GB2312" />
-
table = tableList[i]
+
                <input type="hidden" name="oe" value="GB2312" />
-
break;
+
                <input type="hidden" name="hl" value="zh-CN" />
-
}
+
                <input type="submit" name="btnG" value="Google Search" />
-
}
+
                <input type="hidden" name="domains" value="http://www.dreamdu.com/" />
-
var value = document.getElementsByName("textName")[0].value;
+
                <br />
-
var index = table.rows.length;
+
                <input type="radio" name="sitesearch" value=" " />
-
table.insertRow(index);
+
                <label for="sitesearch">搜索WWW</label>
-
table.rows(index).insertCell(0);
+
                <input type="radio" name="sitesearch" value="www.dreamdu.com" checked="checked" />
-
table.rows(index).cells(0).innerText = value;
+
                <label for="sitesearch">搜索梦之都</label>
-
document.getElementsByName("textName")[0].value = "";
+
        </div>
-
}
+
</form>
-
</script>
+
<!-- SiteSearch Google -->
 +
</html>
 +
 

Revision as of 14:10, 26 August 2010

Google


Contents

Follow us on:




Until the Jamboree: 载入天数...载入秒数...




网页特效观止|JsCode.CN|---在您的网页里加入北京奥运倒计时的代码 距离北京奥运会开幕还有:
小时