Jump to content

Text scolling rotator thing


JamesThePanda

Recommended Posts

Hey guys

There is some thing I want to do on a site I am building at the moment.

 

The person i am building it for has testimonials. I was a scrolling effect.

 

I want it so the first few lines of the testimonial are displayed. than after ten second. The text moves up and is replaced by anouther testimonial.

 

Does anyone know any ood resources for soem thign Like this?

 

Thanks

 

James

Link to comment
Share on other sites

Set a javascript timer to update the <p> or w/e with the testimonial from an array of testimonials.

 

Lookup: SetTimeout() function (or SetInterval()), and also, use the .innerHTML attribute. 

 

 

(document.getElementById("yourParagraph").innerHTML = "New testimonial";

SetTimeout("thisSameFunction()",10000);

 

you have to work out how it selects which testimonial etc to show, and where they are pulled from.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.