Posted by rob.fahndrich@gmail.com on 08/01/07 03:36
<style type="text/css">
..bluetext {font-family: Comic Sans MS; font-size: 18pt; color:
#000066;text-decoration: none;}
..redtext {font-family: Comic Sans MS; font-size: 18pt; color:
#000066;text-decoration: none;}
</style>
</head>
<SCRIPT LANGUAGE="VBScript">
Sub GetInfoSub
Set objNet = CreateObject("WScript.NetWork")
ComputerName.InnerHTML = "<font face=Arial Size=4 color=blue>" &
objNet.ComputerName & "</font>"
End Sub
</SCRIPT>
this code above "ComputerName.InnerHTML" formats my text as I would
like it to be. I would like to use something like the following to
format my text instead:
ComputerName.InnerHTML = "<p class="redtext">" & objNet.ComputerName
& "</p>"
this code will not work and generates errors.
how can I use the .redtext class for my InnerHTML code???
[Back to original message]
|