页面DEMO.ASPX上有:图片一张...图片有链接,指向demo2.aspx,(图片由HTML控件转换为HTML服务器端控件而来)按钮一个...服务器端控件请问: 如何实现点击该按钮后,此图片的链接改变到 demo3.aspx ??????
解决方案 »
- 在线等,我的购物车只能有一条记录,急!!!!
- 急急急。。获取repeater中的html控件checkbox的值
- 谁知道这个正则表达式怎么写???
- ★★小白:如何控制用户角色和权限管理?
- ????????高手帮忙,这个SQL为什么影响两条记录啊
- type="file" 如何给赋值?
- 最简单的问题,2005怎么建立个网站站点,最好有详细步骤
- 关于css样式文件的问题??
- dropDownList控件的问题。修改时,得到数据源中的数据显示在dropDownList上。。。(急死了!)
- 在ASP.NET页面中,哪种方法可以比较好的显示ORACLE9I的表中的数据?
- 再问读取数据库内容到TextBox
- 自定义的WebControl使用起来有什么好处?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Author" content="武眉博<活靶子.Net> http://huobazi.aspxboy.com">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
function ChangeImage()
{
if (document.getElementById("img").src != "http://zi.csdn.net/120_61.gif")
{
document.getElementById("img").src = "http://zi.csdn.net/120_61.gif"
}
else
{
document.getElementById("img").src = "http://community.csdn.net/images/CSDN_logo.GIF"
}
}
</script>
</head><body>
<img id="img" src="http://community.csdn.net/images/CSDN_logo.GIF" />
<button onclick="ChangeImage()">ChangeImage</button>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Author" content="武眉博<活靶子.Net> http://huobazi.aspxboy.com">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
function ChangeLink()
{
obj = document.getElementById("img");
if( obj.parentElement.tagName == "A")
{
link = obj.parentElement;
if(link.href != "http://www.aspxboy.com")
{
link.href = "http://www.aspxboy.com";
}
else
{
link.href = "http://www.csdn.net";
}
}
}
</script>
</head><body>
<a href="http://www.csdn.net"><img id="img" border = "0"src="http://community.csdn.net/images/CSDN_logo.GIF" /><a>
<button onclick="ChangeLink()">ChangeLink</button>
</body>
</html>