34 lines
755 B
HTML
34 lines
755 B
HTML
<html>
|
|
<head>
|
|
<title>Switch Viewer Detail</title>
|
|
<script type="text/javascript">
|
|
HTTP_GET_VARS=new Array();
|
|
strGET=document.location.search.substr(1,document.location.search.length);
|
|
if(strGET!='') {
|
|
gArr=strGET.split('&');
|
|
for(i=0;i<gArr.length;++i) {
|
|
v='';vArr=gArr[i].split('=');
|
|
if(vArr.length>1) {
|
|
v=vArr[1];
|
|
}
|
|
HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);
|
|
}
|
|
}
|
|
|
|
function GET(v) {
|
|
if(!HTTP_GET_VARS[v]) {
|
|
return 'undefined';
|
|
}
|
|
return HTTP_GET_VARS[v];
|
|
}
|
|
|
|
function init() {
|
|
document.getElementById('textbox').innerHTML = GET('text');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="init()">
|
|
<div id="textbox">
|
|
</div>
|
|
</body>
|
|
</html> |