试了试没问题呀!lz还是贴代码吧!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="[email protected]" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
</head>
<body>
<img src="http://zi.csdn.net/12060_8.gif" onclick="window.open('','_blank','');" />
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="[email protected]" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
</head>
<body>
<img src="http://zi.csdn.net/12060_8.gif" onclick="window.open('','_blank','');" />
</body>
</html>
解决方案 »
- jquery如何获取另一个页面上的指定内容
- 求 document.getElementById("brandul").getElementsByTagName("li") 里面的具体值,请看代码更清楚
- 请问如何优化一个大循环?
- table点击单行,选中当前行的checkbox,其他行取消选中!
- 这个循环怎么搞?
- 我要找得控件原来csdnBLOG就有.请问在哪能下载到
- 请问高手我怎么可以用鼠标在屏幕上拖动画一个方框呀
- 用JS代码使浏览器窗口全屏怎么做?
- 如何屏蔽“查看源文件”中的javascript代码?
- 询问一个问题,关于菜单展开的问题
- 关于js打开窗口的问题
- 求思路: 过滤页面正文的内容,给一些特定的文字或者词汇加上事件响应
var xmlhttp;
var page=1;//当今页
var pagesize=0;//总页
var settime;
function cretateXMLHttpRequest()
{
if(window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
function doStart(states)//提交数据参数比如传页面参数
{
cretateXMLHttpRequest();
var url="comSend.aspx?state="+states;
xmlhttp.open("GET",url,false);
xmlhttp.send();
return xmlhttp;
}
function newData()//查询新信息
{
var xmlhttp=doStart("new");
var imgs= new Array();
imgs=xmlhttp.responseText.split(',');
for(var i=0;i<imgs.length-1;i++)
{
document.getElementById(imgs[i]).src="../images/kakayaki.gif";
}
}
function takersel(str)//设置接受人
{
clearInterval(settime);
var img=document.getElementById(str);
img.src="../images/ico1.jpg";
window.open("xxx.html","","width=350,height=400");
settime=setInterval("newData()",8000);
}
function beginData()
{
settime=setInterval("newData()",8000);
}
window.onload = function()
{
beginData();
}
----------------------------------------后台------------------------------------------
Label1.Text = "<div style='width:120px;height:100px;overflow:auto;'>";
for (int i = 0; i < coms.m_table.Rows.Count; i++)
{
this.Label1.Text += "<div><img src='../images/ico1.jpg' id='" + coms.m_table.Rows[i]["name"].ToString() + "'><a href='javascript:takersel(\"" + coms.m_table.Rows[i]["name"].ToString() + "\")'>" + coms.m_table.Rows[i]["taker"].ToString() + "</a></div>";
}
Label1.Text += "</div>";
-------------------------------------问题---------------------------------------
如题所说.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="Gao YiXiang" />
<meta name="email" content="[email protected]" />
<meta name="keywords" content="javascript dhtml dom" />
<meta name="description" content="I love web development." />
</head>
<body>
<img src="http://zi.csdn.net/12060_8.gif" onclick="document.location='http://www.sex.com';;" />
</body>
</html>我也遇到过
就是重定向后。。