JavaScript Editor Ajax software     Free javascripts 



Main Page

Figure 6-8
Figure 6-9
After all the configuration work is done, sIFR is really easy to use! For starters, you needed to create a
Flash application that contains the font you want to distribute to your users. You could use different
fonts for various elements, but for the purposes of this exercise just one font was enough.
In order to be able to effectively use sIFR, you needed to reference the sIFR JavaScript library and its
two CSS files in your
catalog.php
script:
<script src=”sifr/sifr.js” type=”text/javascript”></script>
<link rel=”stylesheet” href=”sifr/sIFR-screen.css” type=”text/css”
i
media=”screen” />
<link rel=”stylesheet” href=”sifr/sIFR-print.css” type=”text/css”
i
media=”print” />
After referencing the JavaScript library, you need, of course, to use it. Just referencing
sifr.js
doesn’t
have any effect by itself — and here the fun part comes. The following code, which you added at the end
135
Chapter 6: SE-Friendly HTML and JavaScript
c06.qxd:c06 10:55 135


JavaScript Editor Ajax software     Free javascripts