<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Sorry I didn't Nick; <BR>
But I did make the sugestion of what domain manipulation I'm talking<BR>
about with a simple example like: this.style.width="something" and I <BR>
think its enough to understand that we are talkin of js manipulation <BR>
on dom elements which will not affect the stylesheet in any way.<BR>
<BR>
The example method is also more secure and more certain that the <BR>
change you've made will get drawn for sure! Since it deploys these <BR>
changes inline making sure it makes it over all existing preceeding<BR>
declarations. I belive it is practicall. And yes, it is impossible to affect <BR>
the style body itself with that method. <BR>
[document.getElementById('anyElment').style.color=...etc]<BR>
<BR>
Since we are not arguing, I believe that discusing the manipulation <BR>
the style declarations could be benefituary for people in discusion. <BR>
I myself, think that manipulating the style body itself is a bit unpractical,<BR>
still not very widely supported and in most casses unnecessary. <BR>
<BR>
The only casse, when I think it will come handy, is the casse when you<BR>
are forced to change some class style declarations that will affect all <BR>
the elements belonging to that class selector. This is however very rare <BR>
situation. And beyond that, you'll have to make sure somehow that <BR>
the browser will really reflect these changes as and when expected. <BR>
(As I'm not very familiar with how will some certain browser <BR>
handle these changes in the body of the style element).<BR>
<BR>
So in my point of view:<BR>
Even in the casse we are discussing, it is better to wallk the DOM and <BR>
apply a different class to these elements allready declared in a style<BR>
than to mess with the stylesheet itself.<BR>
<BR>Regards.<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <BR> Troy III <BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: nick@customdesigns.ca<BR>> To: javascript@latech.edu<BR>> Subject: Re: [Javascript] dynamically reading/changing values in a css class from javascript<BR>> Date: Sat, 16 Jun 2007 01:13:42 -0600<BR>> CC: <BR>> <BR>> On Friday 15 June 2007 16:53, Troy III Ajnej wrote:<BR>> > Thank you Hassan,<BR>> > but I'm not interested te google anything since you could have quoted<BR>> > some of what you are saying.<BR>> ><BR>> > All the truths of the world have a limited validity. Because the truth<BR>> > resides in a certain domain.<BR>> > Even the main law of nature,the preservance of matter (mass and energy)<BR>> > is untrue if a particle falls inside a space of less than 10e-13m in<BR>> > diameter. That particle will disapear forever.<BR>> ><BR>> > I was tallking of a different domain...<BR>> <BR>> but you did not specify that in your original message, hence the response was <BR>> valid.<BR>> <BR>> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <BR>> > Troy III progressive art<BR>> > enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>> ><BR>> > > Date: Fri, 15 Jun 2007 06:50:07 -0700> From: hassan@webtuitive.com> To:<BR>> > > javascript@LaTech.edu> Subject: Re: [Javascript] dynamically<BR>> > > reading/changing values in a css class from javascript> > > > it is<BR>> > > impossible to change the CSS itself. > > Not true: google<BR>> > > 'document.styleSheets' for details...> > -- > Hassan Schroeder<BR>> > > ----------------------------- hassan@webtuitive.com> Webtuitive Design<BR>> > > === (+1) 408-938-0567 === http://webtuitive.com> opinion:<BR>> > > webtuitive.blogspot.com> > dream. code.> > ><BR>> > > _______________________________________________> Javascript mailing list><BR>> > > Javascript@LaTech.edu><BR>> > > https://lists.LaTech.edu/mailman/listinfo/javascript<BR>> ><BR>> > _________________________________________________________________<BR>> > Live Earth is coming. Learn more about the hottest summer event - only on<BR>> > MSN. http://liveearth.msn.com?source=msntaglineliveearthwlm<BR>> _______________________________________________<BR>> Javascript mailing list<BR>> Javascript@LaTech.edu<BR>> https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><br /><hr />Hotmail to go? Get your Hotmail, news, sports and much more! <a href='http://mobile.msn.com' target='_new'>Check out the New MSN Mobile</a></body>
</html>