 |
18-06-2011, 05:19 PM
|
#1 (permalink)
|
|
Wise Old Owl
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
|
xhtml help
i need to write an xhtml code with a paragraph where i need to assign colors based on their words. for example, all prepositions with color red. how do i do that?
now what i know is, i can use css to assign colors, or use javascript to pass events. but how do i put up an if for a particular text (word)
Enjoy~!
__________________
No Pain...No Gain
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
18-06-2011, 05:45 PM
|
#2 (permalink)
|
|
BIOS Terminator
Join Date: Apr 2008
Location: Ranchi
Posts: 816
|
Re: xhtml help
you need to use javascript to achieve that.
|
|
|
18-06-2011, 08:09 PM
|
#3 (permalink)
|
|
Wise Old Owl
Join Date: Sep 2009
Posts: 1,624
|
Re: xhtml help
__________________
Core 2 duo E4500 2.2gHz , ASUS P5GCMX , 3GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG W2243T 21.5" LCD, I-Ball Baton
|
|
|
19-06-2011, 02:15 PM
|
#4 (permalink)
|
|
Wise Old Owl
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
|
Re: xhtml help
Ya but can u guide me with that. Im not able to figure out how to validate text words...
Enjoy~!
__________________
No Pain...No Gain
|
|
|
20-06-2011, 12:30 PM
|
#5 (permalink)
|
|
Wise Old Owl
Join Date: Sep 2009
Posts: 1,624
|
Re: xhtml help
can you mention the different criteria based on which you want to highlight the words??
__________________
Core 2 duo E4500 2.2gHz , ASUS P5GCMX , 3GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG W2243T 21.5" LCD, I-Ball Baton
|
|
|
21-06-2011, 01:26 PM
|
#6 (permalink)
|
|
Wise Old Owl
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
|
Re: xhtml help
take for simple example... an html paragraph <p> with all prepositions (like a,the,this,that,it etc) be colored red.
Enjoy~!
__________________
No Pain...No Gain
|
|
|
21-06-2011, 01:34 PM
|
#7 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: xhtml help
|
|
|
23-06-2011, 09:44 AM
|
#8 (permalink)
|
|
XLr8
Join Date: Sep 2008
Posts: 637
|
Re: xhtml help
^^ that was a good find. i included the source in my bank
__________________
Quote:
There are more things in heaven and earth, Horatio,
Than are dreamt of in your philosophy.
|
|
|
|
23-06-2011, 11:50 AM
|
#9 (permalink)
|
|
Wise Old Owl
Join Date: Aug 2004
Location: Bangalore/Jamshedpur
Posts: 1,173
|
Re: xhtml help
seriously very good find.... thanks a lot...
Enjoy~!
__________________
No Pain...No Gain
|
|
|
23-06-2011, 01:22 PM
|
#10 (permalink)
|
|
Wise Old Owl
Join Date: Sep 2009
Posts: 1,624
|
Re: xhtml help
cool....got u got ur answer....
nice find @garbage
__________________
Core 2 duo E4500 2.2gHz , ASUS P5GCMX , 3GB Transcend , Corsair VX 550w, MSI R5770 HAWK Edition 1GB, CM HAF-922, LG W2243T 21.5" LCD, I-Ball Baton
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|