[sIFR3-dev] Fwd: Random line-breaks

Fredrik Bränström branstrom at gmail.com
Sat Jul 8 16:42:08 GMT 2006


So... that would just be
    modifyContent: function(node) { node.innerHTML =
node.innerHTML.toUpperCase(); }
then. Great, thanks. I should have been able to figure that out by myself,
from the code where I stuck my ugly hack.

On 7/8/06, Mark Wubben <mark at novemberborn.net> wrote:
>
> On Jul 8, 2006, at 8:56 AM, Fredrik Bränström wrote:
> > Off topic: I added
> >        contentObj.content = contentObj.content.toUpperCase();
> > below
> >        var contentObj = handleContent(contentNode);
> > to accomodate for a font that needed to be all caps... but could it
> > be made into an option instead? I can't seem to accomplish it by CSS.
>
> You can use the `modifyContent()` method (introduced somewhere in the
> nigthlies) to do this. Just refer to it in the arguments to the
> replacement function (`modifyContent: function(node) { ... },'). I'ts
> passed a copy of the element you are replacing, and by iterating over
> it using DOM methods, or just plain innerHTML, you can change the
> text going to the Flash.
> --
> Mark Wubben
> http://novemberborn.net/
>
>
>
>


-- 
Fredrik Bränström
http://fredrik.branstrom.nu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.novemberborn.net/pipermail/sifr3-dev/attachments/20060708/31b3ce61/attachment.htm 


More information about the sifr3-dev mailing list