It pains me to ask this, but my client wants a scrolling marquee on her website with about 10 short phrases randomly cycling. Is there an action that could help me do this?
Better yet, is there an alternative someone could think of that I could suggest to her? Scrolling marquee feels so circa 1980…is it just me??? I’m thinking of suggesting attaching an image to to the phrase and have it be more of a slideshow deal. But, I better be prepared in case she doesn’t go for that!
Where do you put the additional text? I downloaded your file, but you are over my head again. (Not hard to do with FreeWay!) I’m not understanding how the action works.
I am just now getting back to this. I have downloaded your newsticker example and the protaculous action. I have lots of questions.
why/how in your example do the html boxes have dashed lines on the vertical parts of the box. This may be more of a curiosity than anything, but it makes me think there may be something going on here I need to understand. I’ve not seen that before in any of my freeway files.
can I apply this to a master page and have it work on all the child pages? I tried adding it to the site folder and it didn’t appear in the list, so I’m guessing that’s not the right approach.
how did you get the code that you put into the protaculous action - function body? Did you have to write that by hand?
These are my initial questions. No doubt, there will be more!
I did this before I got your reply, so I already applied it to my master page. I want the marquee on each page, so does that not necessitate adding the javascript to each page?
Even though I don’t understand everything that is happening, I was able to make it work using your example FW file, so THANK YOU!
The only thing I would like to be different is if there is a way to “randomize” the effect. If you click on all the pages, it always starts at the top of the “list.” Is there a way to make it more random?
Otherwise, I think I’m good to go! (At least until my client sees it!) Ha!
var rand = Math.floor(Math.random() * (entries.length - 1));
news.update(entries[rand]);
And that should choose a random number between 0 and the number of
quotes - 1, so you get a different quote much of the time.
A word about randomness, should anyone ask you (client, cough cough).
The larger the pool, the more random the results will seem. They will
always be very very random, but if you are choosing from a short list,
the odds are that a random choice will appear not so random.
Walter
On Dec 9, 2010, at 2:26 PM, Doty wrote:
The only thing I would like to be different is if there is a way to
“randomize” the effect. If you click on all the pages, it always
starts at the top of the “list.” Is there a way to make it more
random?