New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Safari Javascript Help


Post Reply New Thread Subscribe

 
Thread Tools
bluecollar01

 
Member Since: Apr 12, 2011
Posts: 1
bluecollar01 is on a distinguished road

bluecollar01 is offline
I'm working on a WordPress based website - Harvest Retail Marketing | Marketing Solutions for Bicycle Retailers.

There is a testimonial in the lower right hand of the page that rotates through quotes with the name and company that correlate. The script handling this function works in all browsers but creates crazy characters for the name when displayed in Safari.

Any help on what the problem might be would be appreciated.

Thanks!

Code:
//set counter to 1
var x = 1;
/*
	You can edit the quotes below this line. They have been separated out by the quote, name and company.
	- Make sure to balance the following variables so that they each have the same amount of lines, if you remove one line, remove it from all of them.
	- Only edit content between the single quotes ''.
*/
var quote = [
'My customers are excited about my store\'s brand not just the brands I sell.',
'Now we use our POS system to track our ROI on all promotions.',
'Harvest is a great partner. They really know the bike business.',
'Harvest has helped make my brand the most recognizable in my market.',
'Harvest makes our email marketing look best-in-class.',
'Direct mail has been an excellent tool for growing our business.',
'Harvest is an excellent partner for marketing our stores.',
'Harvest is a great marketing company that knows bicycle retail. That is rare.',
'Harvest has been an incredible partner in my business.' // note how there is no comma on this last line
]
var name = [
'Jay Thomas',
'Tyler Klein',
'Tyler Bickel',
'Brent Hulme',
'Kent McNeil',
'Jay Thomas',
'Dave Reilly',
'Mike Olson',
'Bret Gave' // note how there is no comma on this last line
]
var company = [
'Midwest Cycling',
'Trek Store of Chattanooga',
'Bickel Cycling & Fitness',
'Salt Lake City Bicycle Co.',
'Velogear.com',
'Midwest Cycling',
'David\'s World Cycle',
'Trek Bicycle Superstore',	
'Trek Bicycle Store of Santa Rosa' // note how there is no comma on this last line
] 

//Actual function, don't edit below this line.
function testimonials ()
{
	//fade out content block, remove any data, then replace data with next set in array
	$('.testimonial-content').fadeOut("slow", function() {
		$('this').empty();
		$('p.quote').html(quote[x%quote.length]);
		$('span.green').html(name[x%name.length]);
		$('span.company').html(company[x%company.length]);
	});
	//fade in content block with new data
	$('.testimonial-content').fadeIn("slow");		

	//increase counter once every time
	x++;
}
QUOTE Thanks

Post Reply New Thread Subscribe


« Making a website | zip files download »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Safari and Skype stopped working simultaneously. Help! chiyo OS X - Operating System 5 03-30-2011 03:04 PM
safari problems swicano OS X - Apps and Games 4 11-24-2007 08:47 AM
Javascript Show/Hide in Safari Kush Web Design and Hosting 2 02-10-2006 03:02 PM
Safari is the browser to use on OS X!! Computer.Geek OS X - Apps and Games 14 04-29-2005 03:01 PM
Javascript and Frames problem in Safari HarrySpier Web Design and Hosting 3 11-09-2004 04:47 PM

All times are GMT -4. The time now is 10:53 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?