Image Tag Maker 

Joined:
07/03/2015
Posts:
3

July 03, 2015 02:57:05    Last update: July 03, 2015 02:57:05
<html>
<script language="javascript" type="text/javascript" src="Img_maker.js"></script>

<script language="javascript" type="text/javascript">
function x() {
var image = document.getElementById("input").value ;
var x = imgtag(image);

document.getElementById("output").value = x ;
}

function c() {
var k=document.getElementById("input").value.split("").join("").replace(/\s*/gm,'').replace(/\n/gm,'') ;document.getElementById("input").value=k; }

</script>
<body onload="" bgcolor="ccccfc">
<button type="button" onClick="x();"><noBr>Create JPEG Image Element using SRC of Base64 encoded string of the bellow textarea value.</button>
<br><br>

Input Field::
<textarea id="input" rows="20" cols="100%" wrap="hard" onclick="c();" style="color:blue;background-color:#ccccfc;font-size:12px;">San jay Kum ar Moh
anta</textarea>
<br><br>

Output Field::
<textarea id="output" rows="20" cols="100%" wrap="hard" style="color:blue;background-color:#ccccfc;font-size:12px;" onClick=''></textarea>
<br><br><br>
</body>
</html>
Share |
| Comment  | Tags