Re: [haml] How to write this tag in Haml ?

Fri, 06 May 2011 23:51:33 -0700

2011/5/7 kadoudal <kadou...@gmail.com>:
> I am re-writing a piece of html code from an old site, written by a
> 3rd -party and there is a specific <marquee> tag to handle a
> 'scrolling text'.. I don't have any clue on how to rewrite it using
> Haml ?  can you help me ?  thanks
>
> <div id='latestnews_ticker' style='padding:0 10px;white-space:nowrap'>
>
>     <marquee onMouseOver='this.stop();' onMouseOut='this.start();'
> scrolldelay='10' scrollamount='4' behavior='scroll';>
> LATEST NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LATEST
> NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LATEST
> NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LATEST
> NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;....(lot more) ..LATEST
> NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LATEST
> NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LATEST NEWS
> </marquee>
>
> </div>

#latestnews_ticker{:style=>"padding:0 10px;white-space:nowrap"}
  %marquee{:onMouseOver=>"this.stop();", :onMouseOut=>"this.start();",
    :scrolldelay=>10, :scrollamount=>4, :behavior=>"scroll"}
    LATEST NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    LATEST NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    LATEST NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    LATEST NEWS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-- 
Kit

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to