| Welcome to Webforumz.com. |
|
Oct 9th, 2006, 16:05
|
#1 (permalink)
|
|
Junior Member
Join Date: Aug 2006
Location: Lancashire, UK
Age: 28
Posts: 17
|
Sifr Align Right
I'm not sure if this is the right place to come but does anyone know if and how you can right align text using Sifr?
Thanks,
|
|
|
Oct 9th, 2006, 17:32
|
#2 (permalink)
|
|
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,319
|
Re: Sifr Align Right
Not sure what it is you are referring to.
If you want to right-align some text, use css and set 'text-align: right;' for the element in question.
__________________
Regards
Geoff
|
|
|
Oct 10th, 2006, 10:09
|
#3 (permalink)
|
|
Junior Member
Join Date: Aug 2006
Location: Lancashire, UK
Age: 28
Posts: 17
|
Re: Sifr Align Right
I meant the Scalable Inman Flash Replacement text, it allows you to render browser text with custom typefaces using a mix of javascript, CSS and Flash.
|
|
|
Oct 10th, 2006, 22:55
|
#4 (permalink)
|
|
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,319
|
Re: Sifr Align Right
Moving this to the Flash forum. You might get a better response there.
__________________
Regards
Geoff
|
|
|
Oct 11th, 2006, 01:26
|
#5 (permalink)
|
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
|
Re: Sifr Align Right
I have never heard of the "Scalable Inman Flash Replacement text". Do you have a URL, or a sample file I could look at to better assist you?
|
|
|
Oct 11th, 2006, 12:16
|
#6 (permalink)
|
|
Junior Member
Join Date: Aug 2006
Location: Lancashire, UK
Age: 28
Posts: 17
|
Re: Sifr Align Right
|
|
|
Oct 11th, 2006, 13:04
|
#7 (permalink)
|
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
|
Re: Sifr Align Right
I would guess you could do it within the CSS file for your page. But I am not experienced with this language. But for all of the people that don't want to read a bunch but want to know what it is here....
Quote:
sIFR is meant to replace short passages of plain browser text with text rendered in your typeface of choice, regardless of whether or not your users have that font installed on their systems. It accomplishes this by using a combination of javascript, CSS, and Flash. Here is the entire process:- A normal (X)HTML page is loaded into the browser.
- A javascript function is run which first checks that Flash is installed and then looks for whatever tags, ids, or classes you designate.
- If Flash isn't installed (or obviously if javascript is turned off), the (X)HTML page displays as normal and nothing further occurs. If Flash is installed, javascript traverses through the source of your page measuring each element you've designated as something you'd like "sIFRed".
- Once measured, the script creates Flash movies of the same dimensions and overlays them on top of the original elements, pumping the original browser text in as a Flash variable.
- Actionscript inside of each Flash file then draws that text in your chosen typeface at a 6 point size and scales it up until it fits snugly inside the Flash movie.
This all happens in a split-second, so all of the checking, replacing, and scaling is not visible to the user. It is not uncommon to notice a very short delay as the Flash loads, but to the user, none of the internals of this process are exposed.
|
|
|
|
Oct 11th, 2006, 13:08
|
#8 (permalink)
|
Join Date: Dec 2005
Location: On Internet
Posts: 5,550
|
Re: Sifr Align Right
Also you might be able to center it within the flash file for that page. Or as I said the CSS file. Or even the XHTML part of the page. But I have never used it so I don't know what you are seeing. But I would assume you could center it within those documents.
|
|
|
Apr 2nd, 2008, 13:31
|
#9 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: Dundee
Posts: 1
|
Re: Sifr Align Right
inside the javascript function being used to replace the header elements, add the following flash vars:
sFlashVars:"textalign=right"
should sort out your problem
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|