capg Posted November 30, 2005 Share Posted November 30, 2005 I'm new to VB Scripting, Here I'm trying write add some values to an array and then display those values in a table.My question is how can I format the contents of the table like applying font, size etc.,Thanks in Advance. capimy text is like this<HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<FONT SIZE=2 COLOR=BLUE> <table border=1>")document.write("<tr><td>" & a(0) & "</td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML> Link to comment Share on other sites More sharing options...
kansasprog Posted December 1, 2005 Share Posted December 1, 2005 <HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<table border=1>")document.write("<tr><td><FONT SIZE=2 COLOR=BLUE>" & a(0) & "</FONT></td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML> Link to comment Share on other sites More sharing options...
capg Posted December 1, 2005 Author Share Posted December 1, 2005 kansasprog,Thanks you very much your code and it worked for me.Capi I'm new to VB Scripting, Here I'm trying write add some values to an array and then display those values in a table.My question is how can I format the contents of the table like applying font, size etc.,Thanks in Advance. capimy text is like this<HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<FONT SIZE=2 COLOR=BLUE> <table border=1>")document.write("<tr><td>" & a(0) & "</td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML><{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now