• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Simple News Slider
PostPosted: Tue May 08, 2012 8:08 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11866
Location: Arizona
The simplest most basic news slider using the cycle script...

In the <head> of page template...

<script type="text/javascript" src="uploads/jq/jquery162.js"></script>
<script type="text/javascript" src="uploads/jq/cycle.js"></script>
<script type="text/javascript">{literal}
$(document).ready(function() {
$('#newsslider').cycle({
fx: 'scrollUp'
});
});{/literal}
</script>

News Summary template...

<!-- Start News Display Template -->
**********************
<div id='newsslider'>
{foreach from=$items item=entry}
<div class="NewsSummary">

********** normal news calls******************

</div>
{/foreach}
</div>
<!-- End News Display Template -->

See it here...

http://dezertdesign.com/drippy.html

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Wed May 09, 2012 9:44 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Fri Nov 30, 2007 9:15 am
Posts: 332
Hi Dr.CSS,

Thanks for sharing, seems great!
I'm looking forward to testing the various effects for fun but i guess the "cleanest" one to use will indeed be the scrollUp one :)

Greetings,
Manuel

_________________
Do you like your open source cms? Buy from the CMSMS partners || Donate
(or at least share some knowledge :D >> See some of my stuff )


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Wed May 16, 2012 10:53 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 11, 2007 9:16 pm
Posts: 212
Hi Dr. CSS,

Great idea! I was able to convert it to make a more useful quotes scroller.

Thank you for sharing!!!


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Sun Jul 15, 2012 11:17 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 11, 2007 9:16 pm
Posts: 212
I can't seem to find the correct line of code in the jQuery to slow the scrolling speed down. Can anyone assist?

Thanks!


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Mon Jul 16, 2012 6:38 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 5145
Location: The Netherlands
elkman wrote:
I can't seem to find the correct line of code in the jQuery to slow the scrolling speed down.
Have you looked here
http://malsup.com/jquery/cycle/options.html?

Grtz. Rolf

_________________
Dutch CMSMS community website cmsms.nl and Wiki wiki.cmsms.nl
--------------------------
My CMSMS Tips and Tricks Weblog and website about Pneumatic Tube Systems / Rohrpost
My other (Dutch) website: Smakelijk eten zonder zout (Design: Compufairy)


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Mon Jul 16, 2012 10:24 am 
Offline
Forum Members
Forum Members

Joined: Thu Jan 11, 2007 9:16 pm
Posts: 212
Hi Rolf,

Yes, I did look here and tried several modifications of the "Speed" and "Timeout" functions without viewing any change to the scrolling speed.

Code:
    speed:         1000,  // speed of the transition (any valid fx speed value)
    speedIn:       null,  // speed of the 'in' transition
    speedOut:      null,  // speed of the 'out' transition
    startingSlide: 0,     // zero-based index of the first slide to be displayed
    sync:          1,     // true if in/out transitions should occur simultaneously
    timeout:       4000,  // milliseconds between slide transitions (0 to disable auto advance)


I've also tried changing it here:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="uploads/jq/cycle.js"></script>
<script type="text/javascript">{literal}
$(document).ready(function() {
$('#newsslider').cycle({
fx: 'scrollUp'
});
});{/literal}
</script>


as shown in the example located here: http://jquery.malsup.com/cycle/begin.html

I believe it's here but changing timeout: to 12000 caused no change in the scrolling speed. Any ideas?


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Mon Jul 16, 2012 2:55 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 5145
Location: The Netherlands
Just checked, I use "timeout" for timing the time to display.

_________________
Dutch CMSMS community website cmsms.nl and Wiki wiki.cmsms.nl
--------------------------
My CMSMS Tips and Tricks Weblog and website about Pneumatic Tube Systems / Rohrpost
My other (Dutch) website: Smakelijk eten zonder zout (Design: Compufairy)


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Mon Jul 16, 2012 5:23 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 11, 2007 9:16 pm
Posts: 212
Thanks for the feedback Rolf. I have changed the "timeout" multiple times now with apparently no effect on the scrolling speed.

On the malsup forum it was suggested to try the "easing". I am now wondering if my problem is caused due to using the Showtime module and the Cycle JQuery on the same page. Perhaps they are interfering with each other.

Thanks again for your response. It is appreciated!

Elkman


Top
 Profile  
 
 Post subject: Re: Simple News Slider
PostPosted: Mon Jul 16, 2012 5:40 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 11, 2007 9:16 pm
Posts: 212
Ok, found the source of the problem. I blocked out the Showtime module and then the scrolling functioned correctly using the "timeout" parameter.

Now I have to learn how to get them both to work on the same page.

Elkman


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting