Welcome visitor
* Login
* Register
It is currently January 17th, 2019, 12:30 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
  Populate textboxes
PostPosted: August 14th, 2009, 6:42 am 

Posts: 30
Hi, i dont know if javascript can do this or if i need a server side code, any advice is welcomed.
I have many images as a gallery and there is a textbox that i want to populate with the name of the file when the mouse is over that image.
Is this possible with javascript?


Top
 Profile  
 
  Re: Populate textboxes
PostPosted: August 14th, 2009, 7:07 am 
User avatar

Posts: 71
<script type="text/javascript">
function populate(val){
document.getElementById('thename').value=val;}
</script>
<input id="thename" style="width: 600px" />
<img src="file.bmp" onmouseover="populate(this.src);" />
<img src="file.png" onmouseover="populate(this.src);" />
<img src="file.jpg" onmouseover="populate(this.src);" />


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