I'm not sure why this is happening.
Let's do some investigation on your site.
Make a temporary change to display the 'fileInx' value in the testimonial, like:
As I'm looking at this and reading through the java (more like fumbling through the java) I'm noticing that the value causing "undefined" is 5. There are only 5 testimonials in the array (I'm assuming they have values 0-4). What value is limiting the random number generating to a number between 0 and 5? Eventually I'll have more than 5-6 testimonials and I'll need to generate numbers that are larger than 5.
EDIT: After looking through the code a bit more and some Googling, I changed the computation to the following:
BTW, this is still 'javascript', not 'java'. The both start with the same 4 letters, but that the only thing they have in common.
This statement sums up how little I know. I appreciate all the help as well as your patience! I THINK that fixed it. I'll let you know if it gives me anymore problems. Thanks again for the help!
A previous link by "Akki" has a delay before the change.
What do you want to do differently?
What code are you using? Show us your problem.
I added the script to Advantage-fs.com but it fades in then out before you can read the testimonials, i changed the fadeinc variable but i am sure i am just missing a line to add a pause or something. here is the code (pretty much identical to the first version)
var Testimonials = [
['“I was extremely hesitant to start, but the staff at AFS held my hand every step of the way, and I am pleased with their service and results–“ Lisa – CA'],
['“The negotiators at AFS were great! My program was completed 6 months early due to their successful negotiating! Now I have NO debt!” Michael – TX'],
['“Thanks to AFS, I now have $1200.00 in extra cash flow each month, FOR ME! - rather than it going to the creditors! It is a huge weight off of my shoulders!” Thomas – FL'],
['“If you want or need to get out debt once and for all – This is the avenue to take!” Jennifer – MA'],
['“I have tried everything over the past 5 years to eliminate my debt – Utilizing a program through AFS actually helped me do it!” Chris - AR']
// Note: no comma after last entry
];
var fileInx = 0;
var fadeCnt = 0;
var fadeInc = 3;
Bookmarks