Reply to apply style to InnerHTML

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация