[jQuery] possibility complicated color coding question...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2>That's
not a bad idea...</FONT></SPAN></DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff
size=2>Problem is that DIV is going to have at least three different color
possibilites.</FONT></SPAN></DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2>One
color based on population (the default), one based on total villages and another
based on growth.</FONT></SPAN></DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=109271619-03082006><FONT face=Arial color=#0000ff size=2>That's
the part I'm working on...how to indicate (in the id) which values a DIV might
have for each of those three possibilities.</FONT></SPAN></DIV>
<P><FONT size=2><!----------------//------<BR>andy matthews<BR>web
developer<BR>certified advanced coldfusion programmer<BR>ICGLink,
Inc.<BR>andy@icglink.com<BR>615.370.1530
x737<BR>--------------//---------></FONT> </P>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com]<B>On Behalf Of </B>Jonathan
Sharp<BR><B>Sent:</B> Thursday, August 03, 2006 1:45 PM<BR><B>To:</B> jQuery
Discussion.<BR><B>Subject:</B> Re: [jQuery] possibility complicated color
coding question...<BR><BR></FONT></DIV>
<DIV>Are you going to do the color coding based upon a range of say cities or
on specific counts? You could add classes such as cityCount_100
populationCount_1000 populationCount_1500 and then jQuery based upon
those...<BR><BR><BR>$('.cityCount_100').addClass('MyNewStyleClass');<BR></DIV>
<DIV><SPAN class=sg><BR>-js</SPAN></DIV><BR><BR>
<DIV><SPAN class=gmail_quote>On 8/2/06, <B class=gmail_sendername>Andy
Matthews</B> <<A href="mailto:andy@icglink.com"> andy@icglink.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I'm
creating a map of sorts for use in a personal site. It's a 40x40 grid
<BR>with a few hundred points (see link below). There are usually around
300-500<BR>points on the map and by default each point is color-coded by
population.<BR>Right now the color comes from the query which generates the
map, but what <BR>I'd like to do is have a default color for each row (maybe
from from the SQL<BR>query), but changeable based on a dropdown list which
would change the color<BR>coding based on a few options, for example total
cities.<BR><BR>The question I have is what would be the best way to indicate
the unique id<BR>for a div? Currently each DIV on the map looks like
this:<BR><BR><div id="v_240445" class="lgtpurple"
style="left:330px;top:370px;"
<BR>onMouseOver="pInfo('60,-213','creole','Romans', 'Mute
Butte','4',<BR>'338','0:28:17','Veritas', '94',
'349');" onMouseOut="reset();htm();"
><img<BR>src="images/dd.gif" width="3" height="3" class="blink"
/></div> <BR><BR>I'm thinking I could change the id of each div to
something like
this:<BR><BR>id="uniqueid_totalcities_population"<BR><BR>Then, when the
dropdown changes, I could sort through every DIV contained<BR>inside #map
and change them based on the user's selection. <BR><BR>Am I making any
sense?<BR><BR>Here's the live site I've built for reference<BR><A
href="http://www.commadelimited.com/travian/">http://www.commadelimited.com/travian/</A><BR><BR><!----------------//------<BR>andy
matthews <BR>web developer<BR>certified advanced coldfusion
programmer<BR>ICGLink, Inc.<BR><A
href="mailto:andy@icglink.com">andy@icglink.com</A><BR>615.370.1530
x737<BR>--------------//---------><BR><BR><BR>_______________________________________________
<BR>jQuery mailing list<BR><A
href="mailto:discuss@jquery.com">discuss@jquery.com</A><BR><A
href="http://jquery.com/discuss/">http://jquery.com/discuss/</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/