apply style to InnerHTML
am 01.08.2007 05:36:14 von rob.fahndrich
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 = "
" & objNet.ComputerName
& "
"
this code will not work and generates errors.
how can I use the .redtext class for my InnerHTML code???
Re: apply style to InnerHTML
am 01.08.2007 06:15:14 von John Hosking
rob.fahndrich@gmail.com wrote:
>
>
>
You've lost your
. You're also missing the .
>
>
>
> this code above "ComputerName.InnerHTML" formats my text as I would
> like it to be.
Well, that's a happy surprise.
> I would like to use something like the following to
> format my text instead:
>
> ComputerName.InnerHTML = "" & objNet.ComputerName
> & "
"
>
> this code will not work and generates errors.
> how can I use the .redtext class for my InnerHTML code???
What errors, then?
What is the innerHTML supposed to be within? Your first example was
inline content, now you're adding a element. Where's the URL to the
rest of the code?
Have you tried different delimiters:
ComputerName.InnerHTML = "
" & objNet.ComputerName
& "
" ?
--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
Re: apply style to InnerHTML
am 13.08.2007 18:04:10 von rob.fahndrich
On Aug 1, 12:18 am, "rf" wrote:
> wrote in message
>
> news:1185939374.302645.327180@d55g2000hsg.googlegroups.com.. .
>
> > ComputerName.InnerHTML= "" & objNet.ComputerName
> > & "
"
>
> ComputerName.InnerHTML= "" & objNet.ComputerName &
> "
"
>
> --
> Richard.
thank you. it was the ' not the " that worked...
here is the code that I was working on:
------------------------------------------------------------ ---------
HTA Test
ID = "oApp"
APPLICATIONNAME = "TEST"
BORDER = "normal"
BORDERSTYLE = "normal"
CAPTION = "no"
ICON = "explorer.exe"
SHOWINTASKBAR = "no"
SINGLEINSTANCE = "yes"
SYSMENU = "no"
WINDOWSTATE = "normal"
SCROLL = "no"
SCROLLFLAT = "no"
VERSION = "1.2"
INNERBORDER = "yes"
SELECTION = "no"
MAXIMIZEBUTTON = "no"
MINIMIZEBUTTON = "no"
NAVIGABLE = "no"
CONTEXTMENU = "no"
>
------------------------------------------------------------ ------------------------------------------------------------ ---
save as an .hta file
Thanks.
Re: apply style to InnerHTML
am 13.08.2007 18:06:20 von rob.fahndrich
On Aug 1, 12:15 am, John Hosking
wrote:
> rob.fahndr...@gmail.com wrote:
> >
> > .bluetext {font-family: Comic Sans MS; font-size: 18pt; color:
> > #000066;text-decoration: none;}
>
> Points? Is this a print stylesheet? In color??
>
> > .redtext {font-family: Comic Sans MS; font-size: 18pt; color:
> > #000066;text-decoration: none;}
>
> Nothing red about #000066.
>
> >
>
> >
>
> You've lost your . You're also missing the .
>
>
>
> >
>
> > this code above "ComputerName.InnerHTML" formats my text as I would
> > like it to be.
>
> Well, that's a happy surprise.
>
> > I would like to use something like the following to
> > format my text instead:
>
> > ComputerName.InnerHTML= "" & objNet.ComputerName
> > & "
"
>
> > this code will not work and generates errors.
> > how can I use the .redtext class for myInnerHTMLcode???
>
> What errors, then?
> What is theinnerHTMLsupposed to be within? Your first example was
> inline content, now you're adding a element. Where's the URL to the
> rest of the code?
> Have you tried different delimiters:
> ComputerName.InnerHTML= "
" & objNet.ComputerName
> & "
" ?
>
> --
> John
> Pondering the value of the UIP:http://blinkynet.net/comp/uip5.html
in fairness that was only a small snippet of the code. I was wanting
to use a stylesheet to the innerHTML but am not real good with HTML.
the ' did the trick, not the "
here is the code that i am currently working on:
------------------------------------------------------------ ---------
HTA Test
ID = "oApp"
APPLICATIONNAME = "TEST"
BORDER = "normal"
BORDERSTYLE = "normal"
CAPTION = "no"
ICON = "explorer.exe"
SHOWINTASKBAR = "no"
SINGLEINSTANCE = "yes"
SYSMENU = "no"
WINDOWSTATE = "normal"
SCROLL = "no"
SCROLLFLAT = "no"
VERSION = "1.2"
INNERBORDER = "yes"
SELECTION = "no"
MAXIMIZEBUTTON = "no"
MINIMIZEBUTTON = "no"
NAVIGABLE = "no"
CONTEXTMENU = "no"
>
------------------------------------------------------------ ------------------------------------------------------------ ---
thanks for pointing out the typo with the hex code for red not being
correct. I feel like a schmuck now.