Marquee style scrol...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Closed] Marquee style scrolling text?

4 Posts
3 Users
0 Reactions
382 Views
RatboyJim
(@ratboyjim)
Eminent Member Registered
Joined: 7 months ago
Posts: 21
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).


   
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1546
 

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....

 


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

Yes please. Thanks


   
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1546
 

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.


   
Glenn's Page