MDanz Posted September 6, 2009 Share Posted September 6, 2009 onclick i click on an image and a textfield appears... how do i do this? Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 6, 2009 Share Posted September 6, 2009 Most likely Javascript. Look at the first word of your post. Quote Link to comment Share on other sites More sharing options...
BloodyMind Posted September 6, 2009 Share Posted September 6, 2009 try this: <img src='[iMAGE URL]' onclick="this.innerHTML='[<input [other attributes here]>]'" /> if it didn't work try wrapping it with a div and replace its content on the image's onclick Quote Link to comment Share on other sites More sharing options...
Jnerocorp Posted September 6, 2009 Share Posted September 6, 2009 try this code: <style type="text/css"> img { border: 0 } TEXTAREA { color: blue;border-width: 5px;border-style: inset } </style> <div> <a href="#" onclick="this.innerHTML='<img src=http://JneroCorp.com/images/imagesbox.png><br><textarea ></textarea>' "/> <img src="http://JneroCorp.com/images/imagesbox.png" border="0"></a> </div> Change the image to your image Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.