Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Can someone explain why this doesn't work.

 

on a button I have this

onmouseover="hovereffect(this)"

 

 

function hovereffect(srcElement){

 

srcElement.bgcolor = "#ffffff"

}

 

It worked fine when I used it on tablecells but it doesn't work when I use it on a button.

Posted
I added the onmouseover event to the attributes and it works because if I put in an alert box instead of bgcolor it fires. It has something to do with the color.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...