Я новичок, и некоторое время я боролся с этим. Я пытаюсь создать прокручиваемый div, используя плагин jQuery Cycle с текстом sIFR 3 внутри прокручиваемого div. Я могу заставить это работать должным образом в Firefox, и это об этом. Любые предложения или помощь будет принята с благодарностью!
Вот моя ссылка: http://dev.bandspecial.com/test.html
JQuery:
$(document).ready(function() {
$('#slideshow').cycle({
fx: 'scrollLeft',
cleartypeNoBg: true
});
});
SIFR:
sIFR.replace(rockwell, {
selector: 'h1',
css: [ '.sIFR-root { color:#ffffff; }' ,'a { text-decoration: none }' ,'a:link { color: #E31824 }' ,'a:hover { color: #E31824 }' ], wmode: 'transparent'
});
Код тела:
<div id="slideshow">
<div> <img src="http://malsup.com/jquery/cycle/images/beach1.jpg" height="200" width="200">
<h1>St Andrews State Park - Panama City, FL</h1>
<p>This park is one of the most popular outdoor recreation spots in Florida. </p>
</div>
<div> <img src="http://malsup.com/jquery/cycle/images/beach2.jpg" height="200" width="200">
<h1>Located in the Florida panhandle,</h1>
<p> the 1,260 acre park is situated on a scenic peninsula and is well known for its sugar white sands and brilliant blue water. </p>
</div>
<div> <img src="http://malsup.com/jquery/cycle/images/beach3.jpg" height="200" width="200">
<h1>The ocean provides opportunity for endless fun. </h1>
<p>From boogie boarding to snorkeling to swimming and boating, there is always something to do.</p>
</div>
</div>