?? 5284.js
字號(hào):
// JavaScript Document
function formonclick(k)
{
switch (k)
{
case "3":
document.getElementById('d').innerHTML=iinput("13","q","")+" - "+iinput("13","q1","");
$("option2").style.display = '';
break;
case "2":
document.getElementById('d').innerHTML=iinput("30","q","");
$("option").style.display = '';
$("option2").style.display = 'none';
break;
case "1":
document.getElementById('d').innerHTML=iinput("30","q","");
$("option2").style.display = 'none';
$("option").style.display = 'none';
break;
}
}
function iinput(s,n,aa)
{
return "<input id="+n+" maxlength=100 size="+s+" name="+n+" value='' >";
}
function setq2(value) {
$("q2").value = value;
}
function setq3(value) {
$("q3").value = value;
}
function setq4(value) {
$("q4").value = value;
}
function GetStationByChar(value) {
var uri = "ajax.asp?stype=2&char="+value;
var html = XmlHttpGetMethodText(uri);
$("station").innerHTML = html;
}
function GetStationByChar3(value) {
var uri = "ajax.asp?stype=3&char="+value;
var html = XmlHttpGetMethodText(uri);
$("station3").innerHTML = html;
}
function GetStationByChar4(value) {
var uri = "ajax.asp?stype=4&char="+value;
var html = XmlHttpGetMethodText(uri);
$("station4").innerHTML = html;
}
function $(id) {
return document.getElementById(id);
}
var XmlHttp = null;
function XmlHttpGetMethodText(uri)
{
XmlHttpGetMethod(uri);
return XmlHttp.responseText;
}
function XmlHttpGetMethod(uri)
{
XmlHttp = GetXmlHttpObj();
if(XmlHttp == null)
{
alert('很抱歉,你的瀏覽器版本不支持,操作終止');
return;
}
XmlHttp.open("GET",uri,false);
XmlHttp.send();
}
function GetXmlHttpObj()
{
var XmlHttpObj = null;
try
{
if(window.ActiveXObject)
{
for(var i = 5;i;i--)
{
try
{
if( i == 2 )
{
XmlHttpObj = new ActiveXObject( "Microsoft.XMLHTTP" );
}
else
{
XmlHttpObj = new ActiveXObject( "Msxml2.XMLHTTP." + i + ".0" );
}
XmlHttpObj.setRequestHeader("Content-Type","text/xml");
XmlHttpObj.setRequestHeader("Content-Type","gbk");
break;
}
catch(e)
{}
}
}
else if( window.XMLHttpRequest )
{
XmlHttpObj = new XMLHttpRequest();
if (XmlHttpObj.overrideMimeType)
{
XmlHttpObj.overrideMimeType('text/xml');
}
}
}
catch(e)
{}
return XmlHttpObj
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -