Re: sIFR
Tanc <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jonathan,
Its actually really simple, just like using sIFR on any other site.
First, in your default.xt or other custom page template, just include
the JavaScript inside your head tags as usual (I like to set a
constant as my theme directory and keep scripts in a js folder):
<xar:set name="themedir">#xarTplGetThemeDir()#</xar:set>
<script src="#$themedir#/js/sifr.js" type="text/javascript"></script>
Then further down the template before the last <xar:base-render-
javascript position="body" /> tag I put the code which specifies the
sIFR options:
<script type="text/javascript">
//<![CDATA[
if(typeof sIFR == "function"){
sIFR.replaceElement(named({sSelector:".testititle", sFlashSrc:"#
$themedir#/images/handwriting.swf", sColor:"#111111",
sLinkColor:"#111111", sBgColor:"#FFFFFF", sHoverColor:"#111111",
nPaddingTop:14, sFlashVars:"textalign=left&offsetTop=0"}));
};
//]]>
</script>
For how to set up the swf file in Flash, choose the font and find out
about other options consult the documentation on the sIFR web site.
Hope that helps,
Tanc
On 30/10/2006, at 9:39 PM, Jonathan Linowes wrote:
> Tanc,
> this may not be xaraya-specific but i'd be interested in seeing a
> short article about how you integrated sIFR into your xarayaized
> website.
> :)
> Jonathan