It would be nice if there were some settings to alter the scroll direction (horizontal, as opposed to vertical-- for example) and some settings for height and width so that the ticker can be sized within the module to match existing theming. I'm thinking of inserting this as a narrow horizontal scroll just below my header and logo... I'll probably look at hacking it myself, but for 4.7 blocks and regions it would be a powerful bit of flexibility, I think.

Comments

mathieu’s picture

You are right, this would be great! I don't have much time now to work on this, bu if you begin working on that, I'll definitely help and include it.

I don't think it's really complicated; we didn't do it because we didn't need to and we didn't have a lot of time.

bomarmonk’s picture

Maybe in the summer months... unless someone else has the time to tackle it sooner?

tanc’s picture

Version: 4.6.x-1.x-dev » 4.7.x-1.x-dev

Is it possible to change the scroll direction in the javascript code? I don't know any javascript so I don't really understand the ticker code but it looks very short and maybe uncomplicated to one who knows about these things.

Is someone able to post the changes needed to achieve right to left scrolling? Thanks.

bomarmonk’s picture

I did take a look at some of the code, and although I'm not really a programmer of any kind, I found some online content that clearly instructed how to create the proper javascript to scroll different directions. If I have some time soon, I might have a try with it, but I'm not sure if I will... busy, busy... If anyone else wants to do it, that would be great!

mathieu’s picture

I'm no javascript expert ... though, if someone contributes the javascript code to scroll in arbitrary directions, I'll make the option in the module configuration.

tanc’s picture

@ bomarmonk - I'd like to give it a try. Can you link me to the online code that explains how to do the ticker in different directions? Thanks.

mathieu’s picture

Title: Settings for width, height, and direction of scroll » Settings for width and height
Version: 4.7.x-1.x-dev » master

Renaming, as the settings for direction & speed have been added.

bomarmonk’s picture

Sorry-- I didn't post sooner... when I looked back at the scripts I had found, they were not GPL... they had limitations on how they could be used, so I couldn't just post the code here. I would think, for the sake of integrity, that the code would need to be borrowed from open source. Sorry I couldn't find anything better-- although it may be out there.

mo6’s picture

Status: Active » Closed (won't fix)