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? Link to comment https://forums.phpfreaks.com/topic/173297-echo-textfield/ 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. Link to comment https://forums.phpfreaks.com/topic/173297-echo-textfield/#findComment-913464 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 Link to comment https://forums.phpfreaks.com/topic/173297-echo-textfield/#findComment-913476 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 Link to comment https://forums.phpfreaks.com/topic/173297-echo-textfield/#findComment-913551 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.