Welcome visitor
* Login
* Register
It is currently July 23rd, 2019, 2:43 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Change text content with mouse events
PostPosted: November 24th, 2009, 7:21 am 

Posts: 19
Do you know the script so when you do something with the mouse some text elsewhere on the page changes?

For example:
if you have an image of a tree, and a text that says "put the mouse over the tree" and when the mouse is over the tree the text change to "correct!"

That's a basic example of what I want to do, can you tell me where I can learn to do this things?


Top
 Profile  
 
  Re: Change text content with mouse events
PostPosted: November 24th, 2009, 8:07 am 

Posts: 56
It isn't really a big deal, you just need a few things...
<img src="tree.jpg" 
onmouseover="document.getElementById('instruction').innerHTML='correct!';" <!--this is what you are looking for-->
/>
<span id="instruction">put the mouse over the tree</span>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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