开发者

How to get an image onmouseover

开发者 https://www.devze.com 2022-12-29 17:06 出处:网络
I am using an image by default But i need the imag开发者_开发百科e only when i am doing my mouse over option

I am using an image by default But i need the imag开发者_开发百科e only when i am doing my mouse over option

This is the div In which Ihave the image

<div style="float:left; height:90px; width:90px; background-color:#CCCC99" 
 style="display:block" onmouseover="return mouseOver();" >
 <img src=<?=base_url()?>images/m11on.gif name=b1 width=90
  height=80 border=0 onmouseover=mouseOver() onmouseout=mouseOut()></div>

On mouse out my div must be empty This is the javascript function i am using but it doesnt seems to work properly


<div onmouseover="this.innerhtml='<img src=\"imgurl.jpg\">'" onmouseout="this.innerhtml=''"></div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号