I just need a nice, easy script that will let me name four or five images and rotate through them when the page loads. Anybody got one they can recommend?
SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
Javascript Slide Show
#1
Posted 11 August 2010 - 04:02 PM
I just need a nice, easy script that will let me name four or five images and rotate through them when the page loads. Anybody got one they can recommend?
#2
Posted 11 August 2010 - 04:24 PM
You create one container element, and add one line of JavaScript for the most simple version.
http://jquery.malsup.com/cycle/
#3
Posted 11 August 2010 - 05:09 PM
#4
Posted 11 August 2010 - 11:27 PM
#5
Posted 12 August 2010 - 03:48 AM
#6
Posted 12 August 2010 - 11:12 AM
Since I made the leap from the dreaded IE years ago and switched to Firefox as my main browser (back when it was still called Firebird or something like that), I've been coding for standards-compliant browsers and then tweaking things to get IE to work. As a non-designer, the tweaking part has always been a real hassle for me, but I've always found that if a page works in FF, it's going to work in Opera, Chrome, and Safari (for Windows, at any rate).
So I coded up this page. It's a very straightforward (and not all that pretty) design, intended to emulate a client's current site but taking it out of tables and using valid code. I checked it for valid HTML 4.01 Strict and the only errors involved the presence of Google Analytics code. I tried it out in FF and IE 8, and everything was fine. It wasn't until after I added the slide show to one of the pages that I tested it in Opera, Safari and Chrome, and it didn't work in Chrome! I had to futz around and specify the width of a block-level element that should have inherited its width from its parent (and does in other browsers).
So that's fixed, although it's not clear to me why it was necessary to fix it in Chrome if it worked everywhere else, but there's still a problem with Chrome. The CSS of the site contains the following:
Simple, right? All of the text on the page uses the same sans-serif font (although colors and sizes differ for various elements). But in Chrome, the page (and not just the page containing the slide show) has all Serif fonts. I had to go into the browser's font setting and set the default Serif font to Verdana -- a sans-serif font -- in order to get it to display properly, and I can't very well put a note on the site telling all Chrome users to do the same.
What could be causing this?
#7
Posted 12 August 2010 - 11:38 AM
Running the CSS through W3C validation does give one warning:
"Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space."
So, have you tried quoting the "sans-serif 76%" to see if Chrome is just picky on that?
#8
Posted 12 August 2010 - 11:53 AM
Anyway, thanks. One less reason to yank out my hair.
#9
Posted 16 August 2010 - 08:28 AM
here's a link to w3schools with full details
http://www.w3schools...r_font_font.asp
#10
Posted 16 August 2010 - 11:00 AM
#11
Posted 17 August 2010 - 04:17 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









