<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<Script>
function replaceFilters_requestString( str ){
str = str.replace(/=/g,':')
str = str.replace(/:/g,':"')
str = str.replace(/ /g,' ')
str = str.replace(/:"\/\//g,'://')
str = str.replace(/javascript:"/g,'javascript:')
str = str.replace(/&/g,'",')
str = str + '"'
str = str.replace(/""/g,'"')
str = str.replace(/:"&/g,':"",')
str = "{" + str + "}"
return str
}
function requestString( str ){
var getURL = window.location.href
var getString = null
var strFilter = {}
if( getURL.indexOf("?") > 0 ){
getString = getURL.split("?")[1]
if( getString.indexOf("=") < 0){
return ""
}else{
eval( "strFilter=" + replaceFilters_requestString(getString))
}
}
oString = strFilter[str] if( oString == undefined || oString == null ){
oString = ""
}else{
oString = unescape(strFilter[str])
}
return oString
}if ( requestString("reload") == "" ){
url = window.location.href + "?reload=no"
setTimeout(function(){window.location.href=url},3000)
}
</Script>
<body></body>
</html>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<Script>
function replaceFilters_requestString( str ){
str = str.replace(/=/g,':')
str = str.replace(/:/g,':"')
str = str.replace(/ /g,' ')
str = str.replace(/:"\/\//g,'://')
str = str.replace(/javascript:"/g,'javascript:')
str = str.replace(/&/g,'",')
str = str + '"'
str = str.replace(/""/g,'"')
str = str.replace(/:"&/g,':"",')
str = "{" + str + "}"
return str
}
function requestString( str ){
var getURL = window.location.href
var getString = null
var strFilter = {}
if( getURL.indexOf("?") > 0 ){
getString = getURL.split("?")[1]
if( getString.indexOf("=") < 0){
return ""
}else{
eval( "strFilter=" + replaceFilters_requestString(getString))
}
}
oString = strFilter[str] if( oString == undefined || oString == null ){
oString = ""
}else{
oString = unescape(strFilter[str])
}
return oString
}if ( requestString("reload") == "" ){
url = window.location.href + "?reload=no"
setTimeout(function(){window.location.href=url},3000)
}
</Script>
<body></body>
</html>
解决方案 »
- extjs 与数据库的关联的问题请教
- PHP读取JS变量值
- 求一个正则表达式
- JavaScript学习方法
- 急,如何设置以下层显示的初始位置?点击显示菜单后层出现在左边?高分,即结!
- 点击展开的效果是怎么做的??
- 紧急求救,解决后立刻给分!我的IE在访问某个网站时提示“Your need to enable javascript in your browser” 然后就显示空白。怎么解决
- 如何往table里动态加入如下一行数据?
- 我想取得页面中一个table的top值?
- 在框架里,我的是分上面一面,底下两页,我要在顶上放一个关闭的链接,怎样点击后把整个框加关闭??
- 如何用JS控制IE的前进、后退、刷新、关闭等事件?
- 高手们有没有既能在IE又能在fire fox下拖动层的js代码啊?
<html>
<head>
<Script>
var getURL = window.location.href;
var index = getURL.indexOf("?reload=no");
if ( index == -1 ){
url = window.location.href + "?reload=no"
setTimeout(function(){window.location.href=url},3000)
}
</Script>
</head>
</html>
<html>
<head>
<Script>
var getURL = window.location.href;
var index = getURL.indexOf("?reload=no");
if ( index == -1 ){
url = window.location.href + "?reload=no"
setTimeout(function(){window.location.href=url},3000)
}
</Script>
</head>
</html>正解
<head>
<Script>
var getURL = window.location.href;
var index = getURL.indexOf( "?reload=no ");
if ( index == -1 ){
url = window.location.href + "?reload=no "
setTimeout(function(){window.location.href=url},3000)
}
</Script>
</head>
</html>
终于找到了