Welcome visitor
* Login
* Register
It is currently May 26th, 2019, 3:01 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Adding format to a specific text
PostPosted: February 4th, 2009, 1:10 am 
User avatar

Posts: 61
Hi,

Im tryng to use a js function on a KeyDown event, and for some reason it's not working, any help would be highly appreciated, thanks..

this is what im using to call the function..
<input type="text" name="name" onMouseOver="filled();" >


and this is the function that im calling..
function filled(){
event.srcElement.style.backgroundColor = 'd2b9b2';
}


Last edited by bob on February 4th, 2009, 1:21 am, edited 1 time in total.

Top
 Profile  
 
  Re: Adding format to a specific text
PostPosted: February 4th, 2009, 1:20 am 
User avatar

Posts: 71
bob wrote:
event.srcElement.style.backgroundColor = 'd2b9b2';


Well i noticed that you were missing the "#" symbol on the code you posted, maybe this is what is causing all the problem, chex that and let me know if there's something else. :mrgreen:


Top
 Profile  
 
  Re: Adding format to a specific text
PostPosted: February 4th, 2009, 1:24 am 
User avatar

Posts: 61
Thanks joe!! that was a silly error, ;) , but thanks again for your help!!
think need to be more careful the next time!!


Top
 Profile  
 
  Re: Adding format to a specific text
PostPosted: February 4th, 2009, 1:27 am 
User avatar

Posts: 71
Good to know that!! :mrgreen:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron