Alternate Font Color - Help

jonathan501

Member
Jul 21, 2009
74
1
8
I've seen it done but can't figure it out. Anyone know how to alternate the a font color? Ex: Title One

I know you can use some script to put a <span> around the second word but I've also seen it done where everything is under one <h2> and no <span>.

How are they pulling that off, the site I was looking at had code so bloated that it would take hours to track down.

Thanks!
 


Without manually adding SPANs, you can use JavaScript to add them "secretly". You can parse the H2 contents to words, then wrap each word with span with added style.
 
Yeah, I went back to the page and looked at their tags again in firebug. They used a script and dropped it in. I even went through their scripts and didn't see it. Do you have a link to a good script? The one's I've seen have been pretty bloated and old. Java is my weakness at this time.

Ultimately I am going to make this into a wordpress template. Has anyone ever tried this? WordPress › Support » Need help for Title css and image

Thanks Houdas!