473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how can I give Css in Javasript document.Write


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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 2848
You may want to ask here:

http://www.codingforums.com/forumdis...p?s=&forumid=2

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: monika | last post by:
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments, strikethrough. In fact all the privileges I...
8
by: Bartosz Wegrzyn | last post by:
Please look at my code. I do validation of my form before I submit it. I want to be able to to press one form button without running validating script. I just want to go directly to my php...
7
by: Fendi Baba | last post by:
The function is called from opencalendar(targetfield). Thanks for any hints on what could be the problem. .............................................................. var...
3
by: Charles | last post by:
I use URL parameters to track the source of a click and track Pay-Per-Click results. For example, if a click originates from Google AdWords, the URL is www.mysite.com/?source=google. For Google...
6
by: Luca | last post by:
Hi everyone, I'm super-newbie here... so thanx in advance for any help I shoud give a "value" to an DIV's ID that change following the name of the directory where the file is. For example the...
5
by: JCCDEVEL | last post by:
Hello All, I'm getting frustrated with the syntax of a jscript edit I'm using on a VBScript page. Here is what I have: var re = /\+\_\{\}\`\~\=\|]/; if...
18
by: sandeepdesai | last post by:
Hi.. i am new to javascripts, i am using a addRow scipt to add rows to a table dynamically. one of the cells(say cell2) in a Nth row needs to be hyperlinked to another script. for example: ...
9
by: AAaron123 | last post by:
In my javascript I have: qq=document.getElementById("TextBox1") The only way I know to debug javascript is with the debugger statement, which I'm using. QuickWatch shows a null for...
4
by: dupdupdup | last post by:
Hello there, im needed to develop a gallery for this website. im using hotspots to go to my frames in my flash Each hotspot goes to each frame. The flash is loaded properly. When i right click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.