Scrolling Marquee

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??? :slight_smile: 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!

Thanks!
Doty


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here is another option - the newsticker at the top of this page http://www.deltadesign.co/newsticker.html

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

David,

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.

Thanks,
Doty


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Scroll to the pasteboard at the top of the page to see the “News” items

The code is in the protaculous action - function body

Just shout if you need more

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,

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!

Thanks David and FreewayTalk!
Doty


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

These vertical lines are displayed in FW when you choose View>HTML layout to show visually how the page is constructed in HTML

You can apply Protaculous to a Master page but I wouldn’t as it will add a javascript overhead that you don’t need/want on every page.

The code came from the source of all FW knowledge, the Master himself to whom all bow down before.

Walter

And yes the Master draws such knowledge from his brain through his hands and thence into FW (or a text editor)

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,

I think I have it working pretty well. You can see it at http://yourhappymind.com/

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!

Thanks again!
Doty


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes. You would change this line of the script:

news.update(entries[0]);

to this:

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?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Magic! Thanks, Walter!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options