Ajax software
Free javascripts
↑
Main Page
you’ll need Macromedia Flash. At the time of writing, Macromedia Flash 8 Basic costs $349
and Macromedia Flash 8 Professional costs $699. You can download a trial version from
http://www.adobe.com/downloads/
after you register with Adobe; the download size is
about 100MB.
?
You need to have a license to distribute the fonts you’re using for the replacement.
You put sIFR to work in the next exercise, where you modify your product catalog to use a font that isn’t
supported by default by many web browsers. Look ahead at Figures 6-8 and 6-9 to see the difference
between the “before” and “after” versions of the catalog’s title.
Using sIFR
1.
Start by creating a subfolder in your site where you store the sIFR code. Create a folder named
sifr
under your
seophp
folder, so the complete path to it will be
/seophp/sifr/
.
2.
Download sIFR. Navigate to
http://www.mikeindustries.com/sifr/
and find the Down
-
load link at the bottom of the page. At the time of writing, the direct link to the latest zip package
is
http://www.mikeindustries.com/blog/files/sifr/2.0/sIFR2.0.2.zip
.
3.
Unzip the package into your
/seophp/sifr
folder. The contents of the folder should look the
same as Figure 6-4.
4.
You need to open the
sifr.fla
file located in your
sifr
folder with Macromedia Flash (not the
Flash Player!). If you don’t have it, you can find the trial download at
http://www.adobe.com/
downloads/,
or at a software catalog web site such as
http://www.softpedia.com
.
5.
If you installed Macromedia Flash correctly, it should open up
sifr.fla
(see Figure 6-5).
Using sIFR Properly
If you decide to use sIFR for your projects, we recommend that you also check its
documentation at
http://wiki.novemberborn.net/sifr/
, and its description at
http://www.mikeindustries.com/sifr/
, because they contain more tips and
hints that we could not include in the book. You can find a very useful walkthrough
at
http://wiki.novemberborn.net/sifr/How+to+use
. This quote is particularly
pertinent:
“sIFR is for headlines, pull quotes, and other small swaths of text. In other words,
it is for display type — type which accents the rest of the page. Body copy should remain
browser text. Additionally, we recommend not replacing over about 10 blocks of text per page.
A few more is fine, but once you get into the 50s or so, you’ll notice a processor and speed hit.”
In this exercise you learn how to embed a font into an
.swf
file. If you don’t have
Macromedia Flash, or you don’t want to install a trial version, you can use one of the
two Flash files that ship with sIFR. To do that, instead of following steps 4 through 9
of the exercise, simply rename
tradegothic.swf
or
vandenkeere.swf
from the
sirf
folder to
super_font.swf
.
131
Chapter 6: SE-Friendly HTML and JavaScript
c06.qxd:c06 10:55 131
Ajax software
Free javascripts
→