Ed’s note: This is an outdated material. Please visit the article with a new version.
I’m honored to present my fellow colleague Vanja Bertalan to be a guest speaker at my blog. Today’s topic is how to implement two color sIFR, in a way that we did on our recent project, www.24sata.hr. Here’s Vanja’s brief article:
The whole process basically involves 2 things:
- modification of the javascript source file to make it understand that
<span class="sifr-alt-color"> has a special meaning
- modification of actionscript source files to handle coloring
sIFR javascript currently understands only <a> and <br> elements within headings, and strips everything else out. I needed additional notation, a marker, that will tell flash to color the text within markers differently. Decision was made to use <span class="sifr-alt-color"> for that purpose. That notation will be transformed to ­ character, before it’s passed to flash. ­ is a character very similar to dash (note the difference between ­ and –—more about en dash). Continue reading ›