cineweekly.com
12-03-2012, 11:48 PM
I'm not familiar with Javascript yet and I'm trying to combine these (functions?) to reduce space. Not sure of the syntax.
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowA').cycle({
fx: 'fade',
speed: 4000,
delay: 0
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowB').cycle({
fx: 'fade',
speed: 4000,
delay: -1000
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowC').cycle({
fx: 'fade',
speed: 4000,
delay: -2000
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowA').cycle({
fx: 'fade',
speed: 4000,
delay: 0
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowB').cycle({
fx: 'fade',
speed: 4000,
delay: -1000
});
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshowC').cycle({
fx: 'fade',
speed: 4000,
delay: -2000
});
});
</script>