[Greasemonkey] a little help?

Bill Donnelly donnelly at snowcrest.net
Sun Sep 25 01:25:16 EDT 2005


What is the easiest way to insert the html below into
an html document via a script?

Do you have to create every tag individually with the
createElement() and appendChild() methods and then use
insertBefore() and .nextSibling with the final result?

Or can you set .innerHTML to the whole text block value for
a single created element that you can insertBefore()?

<div style="margin: 0px;">
<div align="left" style="height: 0px; width: 100%;">
<div align="center" style="border-style: none ridge ridge;">
<span style="font-family: Arial,Helvetica,Sans-serif;">
Text</span>
</div>
</div>
</div>

TIA

-- 
Not all who wander are aimless.
---------------------------------
Some of us Drink Deeply from
the Fountain of Knowledge.
Most people sip; too many gargle.
---------------------------------
I just ate your Soul.
Forgive me. It was juicy.
And tart on my tongue.



More information about the Greasemonkey mailing list