protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
ImageButton imb = e.Item.FindControl("ImageButton2") as ImageButton ;
imb.Attributes.Add("onMouseOver", "show();");
}show()中的代码该如何写,(datalist1中调用了数据库显示图片,显示后有N张图片),才能实现鼠标移动到某一张图片上 使它边框变色
{
ImageButton imb = e.Item.FindControl("ImageButton2") as ImageButton ;
imb.Attributes.Add("onMouseOver", "show();");
}show()中的代码该如何写,(datalist1中调用了数据库显示图片,显示后有N张图片),才能实现鼠标移动到某一张图片上 使它边框变色
解决方案 »
- repeater 全选删除之疑难杂症,第一次遇到,求华佗。急啊。
- 关于控件的消息响应函数
- 关于OWC的问题,可不可以画出不同type的图出来,比如曲线图和矩形图在一个图片框里面
- 好久没发帖了,给大家散个分~~~一点小调查
- 一个简单的判断问题
- 一个ASP。NET连接数据库的问题, 望高手指教,在线等等等~!~!
- 有关asp.net+ajax使用的问题,大家来PP哈!
- 100高分挑战word打印,少了再开贴...(很快就结贴)
- 无盘W2K服务器(30台终端)CPU占用率100%,如何解决?
- 我的IIS用不了了,帮帮忙看看怎么弄,谢谢!
- 这一段JavaScript脚本是干嘛的呢???
- 请教个有难度的问题_关于打包母版页成dll的
function show(){
$("img").hover(function(){
$(this).css({borderColor:"Red"});
},
function(){
$(this).css({border:none});
});
}
//当鼠标停留时更改背景色
e.Row.Attributes.Add ("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#00A9FF'");
当鼠标移开时还原背景色
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
imb.Attributes.Add ("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#00A9FF'");
当鼠标移开时还原背景色
imb.Attributes.Add("onmouseout", "this.style.backgroundColor=c");