REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
JavaScript Forum
You are currently viewing our JavaScript Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
JavaScript Forum
>
Alter the CSS?
Link Back
Thread Tools
Search this Thread
Alter the CSS?
05-31-2009, 06:51 PM
#
1
(
permalink
)
Alter the CSS?
egillsigurdur
Novice Talker
Posts: 7
Trades:
0
Talkupation:
Lets say I have this CSS code:
<style
type
=
"text/css"
>
.list li
{
background-color:
#E5AD41
;
}
</style>
How would I let JavaScript change it to background-color: #83E553?
I am not wanting to change bgcolor where class is list, that is all Google brings me.
Register
now for full access!
05-31-2009, 10:35 PM
#
2
(
permalink
)
Re: Alter the CSS?
JeremyMiller
WT Moderator
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades:
0
Talkupation:
I'd recommend creating classes that you want to switch between and updating the className when you want to change the background color.
__________________
Jeremy Miller
Please login or register to view this content.
Registration is FREE
06-01-2009, 07:06 AM
#
3
(
permalink
)
Re: Alter the CSS?
egillsigurdur
Novice Talker
Posts: 7
Trades:
0
Talkupation:
No, that really doesn't work. I'd like to be able to change everything in the CSS, not just couple of things. Ok, I guess this is maybe not possible.
06-01-2009, 09:18 AM
#
4
(
permalink
)
Re: Alter the CSS?
wayfarer07
Poo on You
Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades:
0
Talkupation:
It's possible, but there are compatibility issues.
http://msdn.microsoft.com/en-us/libr...71(VS.85).aspx
https://developer.mozilla.org/Es/DOM/Stylesheet_object
and you'll have to do some research, because last I heard it won't work in Safari, though I hope this has changed by now.
__________________
Join me on
Please login or register to view this content.
Registration is FREE
06-04-2009, 03:29 AM
#
5
(
permalink
)
Re: Alter the CSS?
harish
Average Talker
Posts: 26
Name: Harish kumar
Trades:
0
Talkupation:
you can change the background of the list using that code also..
Code:
ul { background-image: url(pics/cssT/smallPic.jpg); background-repeat: repeat-y; color: green; }
__________________
Please login or register to view this content.
Registration is FREE
||
Please login or register to view this content.
Registration is FREE
||
Please login or register to view this content.
Registration is FREE
« Reply to
Alter the CSS?
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
JavaScript Forum
>
Alter the CSS?
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.15373
seconds with
12
queries