how can I give Css in Javasript document.Write

T

techy techno

Hii

Just wanted to know how can I decorate my texboxes and Listmenu which is
called from a JS file using the following code below:

document.write("<SELECT NAME='cur2' ONCHANGE='cconv1();'>");

document.write("<OPTION VALUE='0.345066110642241'>Argentina Peso
[ARS]</OPTION>");
document.write("<OPTION VALUE='0.790200069503053'>Australia Dollar
[AUD]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Austria Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='2.6595749482112'>Bahrain Dinars
[BHD]</OPTION>");
document.write("<OPTION VALUE='-1'>Bangladesh Taka [BDT]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Belgium Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.209286931771169'>Botswana Pula
[BWP]</OPTION>");
document.write("<OPTION VALUE='0.343913744003105'>Brazil Real
[BRL]</OPTION>");
document.write("<OPTION VALUE='1.88449555376031'>Britain Pound
[GBP]</OPTION>");
document.write("<OPTION VALUE='0.59733661893221'>Brunei Dollar
[BND]</OPTION>");
document.write("<OPTION VALUE='0.760629679608978'>Canada Dollar
[CAD]</OPTION>");
document.write("<OPTION VALUE='0.00172842960709713'>Chile Peso
[CLP]</OPTION>");
document.write("<OPTION VALUE='0.120492719479961'>China Yuan
[CNY]</OPTION>");
document.write("<OPTION VALUE='0.000367058862466696'>Colombia Peso
[COP]</OPTION>");
document.write("<OPTION VALUE='0.17100158111924'>Denmark Krone
[DKK]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Europe Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Finland Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>France Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Germany Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Greece Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='-1'>Hong Kong Dollar [HKD]</OPTION>");
document.write("<OPTION VALUE='0.0147015656239704'>Iceland Krona
[ISK]</OPTION>");
document.write("<OPTION VALUE='0.0220994134363543'>India Rupee
[INR]</OPTION>");
document.write("<OPTION VALUE='0.000119062340628145'>Indonesia Rupiah
[IDR]</OPTION>");
document.write("<OPTION VALUE='0.000119196231791178'>Iran Rial
[IRR]</OPTION>");
document.write("<OPTION VALUE='-1'>Iraq Dinar [IQD]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Ireland Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.225224493357344'>Israel Shekel
[ILS]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Italy Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.00948316506674249'>Japan Yen
[JPY]</OPTION>");
document.write("<OPTION VALUE='3.39328347768004'>Kuwait Dinar
[KWD]</OPTION>");
document.write("<OPTION VALUE='0.778524459207575'>Libya Dinar
[LYD]</OPTION>");
document.write("<OPTION VALUE='0.263157815558153'>Malaysia Ringgit
[MYR]</OPTION>");
document.write("<OPTION VALUE='2.97719788361699'>Malta Liri
[MTL]</OPTION>");
document.write("<OPTION VALUE='0.091379214374796'>Mexico Peso
[MXP]</OPTION>");
document.write("<OPTION VALUE='0.0135961962874538'>Nepal Rupee
[NPR]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Netherland Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.70109926149245'>New Zealand Dollar
[NZD]</OPTION>");
document.write("<OPTION VALUE='0.144585907729432'>Norway Kroner
[NOK]</OPTION>");
document.write("<OPTION VALUE='2.60078318808399'>Oman Rial
[OMR]</OPTION>");
document.write("<OPTION VALUE='0.0174132227302063'>Pakistan Rupee
[PKR]</OPTION>");
document.write("<OPTION VALUE='-1'>Philippines Peso
PHP:
</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Portugal Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.274725109407133'>Qatar Riyal
[QAR]</OPTION>");
document.write("<OPTION VALUE='0.266666064908631'>Saudi Arabia Riyal
[SAR]</OPTION>");
document.write("<OPTION VALUE='0.59733661893221'>Singapore Dollar
[SGD]</OPTION>");
document.write("<OPTION VALUE='0.0053685090993337'>Slovenia Tolar
[SIT]</OPTION>");
document.write("<OPTION VALUE='0.150601983695366'>South Africa Rand
[ZAR]</OPTION>");
document.write("<OPTION VALUE='0.000861475300089211'>South Korea Won
[KRW]</OPTION>");
document.write("<OPTION VALUE='1.27409928104959'>Spain Euro
[EUR]</OPTION>");
document.write("<OPTION VALUE='0.0101483333558993'>Sri Lanka Rupee
[LKR]</OPTION>");
document.write("<OPTION VALUE='0.139372877862676'>Sweden Kronor
[SEK]</OPTION>");
document.write("<OPTION VALUE='0.807754855811253'>Switzerland Franc
[CHF]</OPTION>");
document.write("<OPTION VALUE='-1'>Taiwan Dollar [TWD]</OPTION>");
document.write("<OPTION VALUE='0.0256904045167958'>Thailand Baht
[THB]</OPTION>");
document.write("<OPTION VALUE='0.15919809724109'>Trinidad Dollar
[TTD]</OPTION>");
document.write("<OPTION VALUE='0.272294006941279'>UAE Dirham
[AED]</OPTION>");
document.write("<OPTION VALUE='1'>US Dollar [USD]</OPTION>");
document.write("<OPTION VALUE='0.000626567015535888'>Venezuela Bolivar
[VEB]</OPTION>");


document.write("<BR>&nbsp;</TD></TR></TABLE><br>");

}


I would be more then happy if some JS experts writes the css in js and
adds to my code plzzzzzzzzzzz as I tried a lot doing it but failed . I
used this code to do it which is below :

/*function addStyle()
{

var newStyle = document.createStyleSheet()
newStyle.addRule("P", "font-size:16pt; color:white;
background:#336699;border-style: solid; border-top-width: thin;
border-color:black")
}*/


but still doesn't work so please help

In simple words I just want to DECORATE my TEXTBOX & LISTMENU which I am
calling from a js file.


thanks a billion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top