<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0011)about:blank -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
</HEAD>
<BODY>
<form action="http://www.baidu.com">
<table>
<tr>
<td onmouseover="this.style.backgroundImage='url(xg.jpg)'" onmouseout="this.style.backgroundImage='url(xgg.jpg)'" style="{width:680;height:384}">test
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
<!-- saved from url=(0011)about:blank -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
</HEAD>
<BODY>
<form action="http://www.baidu.com">
<table>
<tr>
<td onmouseover="this.style.backgroundImage='url(xg.jpg)'" onmouseout="this.style.backgroundImage='url(xgg.jpg)'" style="{width:680;height:384}">test
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
解决方案 »
- 0000000jq库的问题000000000
- jquery json时 在ie中总是error
- ckeditor怎么插入图片?怎么把浏览服务器等不相关的选项卡隐藏
- ext3.2 ajax传值
- 关于this关键字问题!!
- 用正则表达式验证输入的用户名只能由字母,数字,下划线组成,求一个完整的例子50分
- 如何使软键盘位于FLASH的上面?
- 请问: 在ascx里面写javascript要用到页面上的某个控件,要怎么找到呢 ?我是用document.getElementID()但是好像找不到
- 关于树形目录
- 当在js动态设置select的值大量使用options.add的问题
- 我想注册一个域名,选了几个都不理想,请大家出主意
- 如何验证输入的是否为email
for (i=0;i<=12;i++)
{
var id;
id="img" + MenuId;
document.getElementById(id).style.backgroundImage ="url(http://localhost/test/Frame/layout/menu_bg_no.png)";
event.srcElement.style.backgroundImage=": url(http://localhost/test/Frame/layout/menu_bg_yes.png)";
}
{
var id;
id="img" + MenuId;
document.getElementById(id).style.backgroundImage ="url(http://localhost/test/Frame/layout/menu_bg_no.png)";
event.srcElement.style.backgroundImage="url(http://localhost/test/Frame/layout/menu_bg_yes.png)";
}
private void InitToolBar()
{
// 可以通过传递参数来控制单元格的宽度和高度
lblCode.Text += "<TABLE id='Table1' cellSpacing='1' cellPadding='1' width=100% height='40' border='0'><TR>"; for(int k = 0 ; k < ds.Tables[0].Rows.Count ; k++)
{
string title = ds.Tables[0].Rows[0]["UserName"].ToString();
string id = "img" + k.ToString();
lblCode.Text +="<TD id = " + id + " align = center style='BACKGROUND-IMAGE: url(http://localhost/test/Frame/layout/menu_bg_no.png)'><A onclick='javascript:ShowMenu();' href='#'>" + title + "</a></TD>";
}
lblCode.Text += "</TR></TABLE>";
}
function ShowMenu(){
var id;
//var tab;
//var bag2 = "Frame/layout/1.png";
// 如何替换指定单元格的背景图片
//bag2 = " url(" + bag2 + ")no-repeat top center";
//document.getElementById("id").style.backgroundImage=bag2;
for (i = 0 ; i < 12 ; i++)
{
id = "img" + i;
document.getElementById(id).style.backgroundImage = "url(http://localhost/test/Frame/layout/menu_bg_no.png)";
event.srcElement.style.backgroundImage = "url(http://localhost/test/Frame/layout/1.png)";
}
}但好象还是替换不了哦,不知道怎么回事情,指点点了哪个连接后其就变白了,郁闷中,还望大家鼎力相助啊!!!