Marquee style scrol...
 
Notifications
Clear all

Marquee style scrolling text?

4 Posts
3 Users
0 Reactions
142 Views
RatboyJim
(@ratboyjim)
Active Member Registered
Joined: 2 months ago
Posts: 10
Topic starter  

Is there a way to make a COMMENT or TEXT display like a scrolling marquee? If not, would it be difficult to implement that in a future version?

Currently for the weather section of my desktopinfo I have it display a link if there is a weather alert for my area, but I would like to be able to have the alert "text" scroll across like a ticker or marquee (and a bonus make it a hyperlink I can click).

 

If anyone is interested, I can post the code for my weather section for USA based weather (I'm still tweaking it every so often).


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1369
 

Posted by: @ratboyjim

Is there a way to make a COMMENT or TEXT display like a scrolling marquee? If not, would it be difficult to implement that in a future version?

Currently for the weather section of my desktopinfo I have it display a link if there is a weather alert for my area, but I would like to be able to have the alert "text" scroll across like a ticker or marquee (and a bonus make it a hyperlink I can click).

 

If anyone is interested, I can post the code for my weather section for USA based weather (I'm still tweaking it every so often).

interesting idea....

 


   
ReplyQuote
 Vinz
(@vinz9000)
Active Member Registered
Joined: 1 year ago
Posts: 6
 

Yes please. Thanks


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1369
 

I had a look at this today. It's do-able but because the timing only has a granularity of seconds, it's not a very smooth scroll.

In v3.17 you'll be able to do something like this:

# initialise the variable
begin-onload
set mx={{%width%-100}}
end-onload

# update the variable every cycle (every second)
set mx={{%mx%-10}}
if=value1:%mx%, comp:lt, value2:0
set mx={{%width%-100}}

# my marquee
COMMENT=x:%mx%, y:0, text:Desktop Info by Glenn Delahoy

This only works with absolute positioning.

This post was modified 2 weeks ago 3 times by Glenn

   
ReplyQuote
Glenn's Page