Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Hello, need help with php load after x seconds.

    Ok so i am a developer for a car club, the site is fully designed but i have one problem, we are running a slideshow on a home page, alot of images,

    PHP Code:

    <!-- slide -->

     <script type="text/javascript">

    $(function() {

        $('#slideshow1').cycle({

        speed: 1000 ,

        random:1

     });

    });

    </script>



     <div class="dashboard">

         <div id="slideshow1">

           <img class="left" src="<?php echo BASE_URL?>show/1.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/2.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/3.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/4.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/5.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/6.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/7.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/8.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/9.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/10.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/11.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/12.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/13.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/14.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/15.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/16.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/17.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/18.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/19.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/20.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/21.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/22.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/23.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/24.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/25.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/26.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/27.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/28.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/29.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/30.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/31.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/32.jpg" alt="pic" width="400" height="300" />

           <img class="left" src="<?php echo BASE_URL?>show/33.jpg" alt="pic" width="400" height="300" />

         </div>

     </div>

     <!-- slide -->
    is it possible to load this after 5seconds or after 10seconds after the page is loaded?

    Thank You!

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    This isn't PHP... it's jQuery. The plugin you're using, "cycle", has many options that may help you achieve what you're after. If looking there fails you, check out the timers plugin, which is a great plugin for firing off events on a delay or a regular interval:

    http://plugins.jquery.com/project/timers


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •