www.webdeveloper.com
Results 1 to 4 of 4

Thread: need some help with simpleSli.de

  1. #1
    Join Date
    Aug 2011
    Posts
    3

    Question need some help with simpleSli.de

    Hello i am new to jquery but i am trying to make a text slide show but i dont now what i am doing wrong.
    can anyone help me.
    Thanks.

    Code:
    <script type="text/javascript" src="scripts/jquery.simpleSlide.js"></script>
    <script type="text/javascript" src="scripts/jquery.js"></script>
    <script type="text/javascript"> 
    	simpleSlide();
     
    	$('.auto-slider').each( function() {
    		var related_group = $(this).attr('rel');
    		clearInterval($.autoslide);
    		window.setInterval("simpleSlideAction('.right-button', " + related_group + ");", 1000);
    	});
    </script>
     
    <div style="width:500px; height:200px; left:20px; position:absolute;">
    	<div class="simpleSlide-window" rel="1">
    		<div class="simpleSlide-tray" rel="1">
    			<div class="simpleSlide-slide" rel="1" alt= "1" >
    				<p>jkgkhg 1</p>
    			</div>
    			<div class="simpleSlide-slide" rel="1" alt= "2" >
    				<p>jkgkhg 2</p>
    			</div>
    		</div>
    		<div class="right-button" rel="1"></div>
    		<div class="auto-slider" rel="1"></div>
    	</div>
    </div>

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,111
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

  3. #3
    Join Date
    Aug 2011
    Posts
    3

    Unhappy

    yes i have already read that but in my code i already have that there.
    i have already try the code they say in different place but cant get it to work.

    i just cant get the slides to loop it only shows the 1st one

  4. #4
    Join Date
    Aug 2011
    Posts
    3

    resolved

    this worked for me:

    changed:
    Code:
    $.autoslide = setInterval("simpleSlideAction('.right-button', " + related_group + ");", 4000);
    to

    Code:
    $.autoslide = setInterval("simpleSlideAction('.right-button', '" + related_group + "');", 4000);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles