Sunday, September 22, 2013

Normal Text To Imacros Text Converter [Html+Javascript]

I am not sure if I am posting this in correct forum. I am sorry if posting in wrong forum.

I devoped this simple tool to convert advertising text copy to imacros text form. It will replace space with <SP> tag and new line with <BR> tag. That's it.

<html> <head> </head> <body> <script> function c2MT () { var mytext = ''; lines=document.getElementById("myta").value.split('\n') for (var i=0; i < lines.length; i++) { mytext = mytext + lines[i].replace(/ /g, '<SP>') + '<BR>'; mytext = mytext.replace(/\r/,''); } document.getElementById("myta").value = mytext; } </script> <textarea id=myta cols=80 rows=20> </textarea> <button onClick="c2MT ();">Convert 2 iMacros Text Format</button> </body> </html> Store the above code in a .html file and run the .html file. Enter text in textarea and click converter button. It will display converted text in the textarea. Enjoy!

0 comments

Posts a comment

 
© Internet Marketing Downloads
Designed by Blog Thiết Kế
Back to top