Title: Building HTML codes automatically, just copy&paste your content Post by: Daniel Franklin on September 29, 2007, 10:34:43 AM <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> function seo(tit, src, alt, vlink1, link1, h1, p1) { text = '<html> <head> <title>'+tit+'</title> <body> '; text += '<img src='+src+' alt=' +alt+ '>'; text += ''+link1; text += ''; text += '<h1>'+h1+'</h1>'; text += ' '+p1+' '; text += ' </body> </html> '; setTimeout('een(text)'); } function een(tit, src, alt, vlink1, link1, h1, p1) { newWindow = window.open('','newwin','width=780,height=400,top=118,left=5'); newWindow.document.write(text); } function endar(tit, src, alt, vlink1, link1, h1, p1) { document.write(' <html> ');+ document.write('<head> ');+ document.write('<title>'+tit+'</title> ');+ document.write('</head> ');+ document.write('<body> ');+ document.write('<p> ');+ document.write('<img alt="' +alt+ '" border="0" src="' +src+ '.gif"> ');+ document.write('<p> ');+ document.write('<a href="'+vlink1+'">'+link1+'[/url]</p> ');+ document.write('<h1 align="center">'+h1+'</h1> ');+ document.write('<p> '+p1+' ');+ document.write('</body> ');+ document.write('</html> '); } </script> </head> <body><form> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="92%" id="AutoNumber1"> <tr> <td width="24%">Title</td> <td width="76%"> <input type="text" name="tit" size="20"> </td> </tr> <tr> <td width="24%">Image Source</td> <td width="76%"> <input name="src" type="text" size="20"></td> </tr> <tr> <td width="24%">Alt attribute for image</td> <td width="76%"> <input name="alt" type="text" size="20"></td> </tr> <tr> <td width="24%">Texts Link1</td> <td width="76%"> <input name="link1" type="text" size="20"></td> </tr> <tr> <td width="24%">Value Link1</td> <td width="76%"> <input name="vlink1" type="text" size="20"></td> </tr> <tr> <td width="24%">Heading1</td> <td width="76%"> <input name="h1" type="text" size="20"></td> </tr> <tr> <td width="24%">Paragraph1</td> <td width="76%"> <input name="p1" type="text" size="20"></td> </tr> <tr> <td width="76%"> <input type="button" value="Preview" onclick="seo(tit.value, src.value, alt.value, vlink1.value, link1.value, h1.value, p1.value)" size="20"></td> <td width="76%"> <input type="button" value="Get the Codes" onclick="endar(tit.value, src.value, alt.value, vlink1.value, link1.value, h1.value, p1.value)" size="20"></td> </tr> </table> </form> </body> </html> Articles Source - Free Articles |