Two colors in sIFR 2.0.1
As a result of your persistent requests, here’s the 2 color sIFR demo and a 2 color sIFR development kit. In case you were wondering, a multi color version is almost done in Pepa’s pot.
Enjoy and please, do keep reporting bugs!

17 Comments
now if only we could get the link to show up in the browser’s status bar on mouseover. other than that, all my sIFR dreams have come true. thanks so much for this
Comment (#) by Zeerus — 12th January 2006.
need to recheck the shift right click option . I am win XP and ff 1.5 and it only works if i click the very edge of the headline. I have tried it at least 25 times, same result
Comment (#) by david — 12th January 2006.
David, it works fine for me on FF 1.5 and IE 5, haven’t tested Opera or Safari yet, but I assume it works in both.
Comment (#) by Zeerus — 13th January 2006.
David, what is SHIFT + right click suppose to do?
Zeerus, URL display in a status bar is partially fixed (we’re still struggling with Safari, should work in Opera, FF and IE).
However, to see the status bar text in Firefox, one must enable it in Tools -> Options -> Content -> Enable JavaScript -> Advanced -> Change the status bar text
Comment (#) by marko — 13th January 2006.
Is there a way to have two different font-weights show up? I’m having difficulty setting up a headline that has light and bold weight to show up properly in IE and possibly Safari (haven’t checked it yet). The problems escalate across major browsers when I try to anchor the headline. Any ideas?
Comment (#) by Criss — 18th January 2006.
Criss, take a look at the multi color sIFR. It handles
strong,emandspanelements.Comment (#) by marko — 19th January 2006.
Marko, can you please provide uncompressed JS files inside multi color sIFR? Very important:) Please!
Comment (#) by Arsart — 23rd January 2006.
Hi, I am using this 2 colour sifr in our website redevelopment and it is all going well. Except that my friend tried viewing it in Firefox 1.0.7 on a pc and I also tested in Netscape 7 on a pc, and in those 2 browsers each sifr element has the word “Undefined” next to it. All other browsers seem fine. Do you know what might be causing this??
Many Thanks!
Christine
Comment (#) by Christine — 31st January 2006.
Christine,
Please see the multi-color sIFR, the
undefinedissue should be fixed.Comment (#) by marko — 31st January 2006.
Hi Marko,
Thanks for an ultra fast response. I actually did try the multi color sifr first and I had trouble making it work so I used the 2 colour instead.. Is there no way to fix it? Also if I try the multi one again, is it just a matter of popping the new js file in? Or do I have to rexport the movies?
Cheers!
Comment (#) by Christine — 31st January 2006.
Unfortuantely, you will have to re-export .SWFs and replace
sifr.js. I’ve just tested multi in Netscape 7 and FF 1.0.7. and it works. Two color display theundefinedissue, though.Sorry for troubles, but hopefully it’s solved now.
Comment (#) by marko — 31st January 2006.
Hi marko,
Thanks for all your help. I’d really appreciate just a little more (Sorry!!), it’s just I’m meant to be going live later this week and I thought I had the 2 color working fine all this time cos I run firefox 1.5..
I got the latest zip of the multi sifr and popped the new .js file in the site, then I reexported the swfs and changed the replacement calls from sAltColor to sEmColor. The text is being replaced in FF & NS and no undefined error, but its only 1 color. I then checked it in IE and it throws a javascript error and doesn’t replace the text at all.. I noticed that the js file I downloaded was updated on 29th Jan, can you confirm that this version is all good??
Do you have any ideas for me. I also remembered why I went back to the 2 color one as well, I use coldfusion and it didn’t seem to work with the any pages with a .cfm extension, I had it working with html pages but not cfm ones which I thought was weird atm, so I switched to the 2 col one got that working. But this time with the multi it kinda seems to want to work on the .cfm pages, just not in the 2 colors..
Thanks!
Comment (#) by Christine — 1st February 2006.
Is it implied or stated that the 2-color SIFR only works with Latin encoding (specifically, iso-8859-1)? Unless I explicitly set my HTML doc or browser to use this encoding, the color replacement (span,em, strong) doesn’t happen (and on IE6, a JS error – unterminated string constant – prevents the whole SIFR replacement entirely).
I’d like, if possible, to have my HTML docs use utf-8 encoding. Any idea on if/how I can do this? Would it require changing the ‘flag’ characters or their encoding in the JS and ActionScript?
Comment (#) by chris — 14th February 2006.
I am writing this in response to Christine’s question above. I was also having trouble getting multi-color sifr to work with .cfm files. But I have figured out how to get it to work. In the sifr.js there are 2 strings of code that look like this:
else if(as(v,"em")){u+="Â";}else if(as(v,"strong")){u+="Î";}else if(as(v,"span")){u+="Ô";}
Comment (#) by Chris — 15th March 2006.
Sorry, accidentally submitted the form to early above.
Find those two strings of code and replace these characters as follows:
 replace with Â
Î replace with Î
Ô replace with Ô
I did this and have multi-color working in IE and FF with .cfm files.
Hope this helps.
Comment (#) by Chris — 15th March 2006.
thanks, chris. I had the same problem and was nailing it down to the encoding characters, but didn’t resolve until I saw your post.
thanks,
chad
Comment (#) by chad — 20th March 2006.
Thanks Chris!
I am going to have a go at this straight away as we are currently using the 2 color version even though that has undefined errors.
Awesome!!
Thanks again,
Christine
Comment (#) by Christine — 21st March 2006.
Sorry, the comment form is closed at this time, but if you have anything to say, please send me a message.