View Full Version : How could i connect Content slider with my news database

05-03-2011, 07:23 AM
1) Script Title: Featured Content Glider

2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm

3) Describe problem: How could i connect Content slider with my news database need to show 5 latest news from my website automatically when i add news to my site. as we are doing in word press.:)

please help me....i need it very soon

05-04-2011, 12:03 AM
It really depends on how the information is stored inside your database- there is no generic, "one size fits all" solution to doing this if that's what you're asking. Basically the idea is just to get your server to output each individual DIV content of the slider automatically, or the parts in red below:

<div id="canadaprovinces" class="glidecontentwrapper">

<div class="glidecontent">
<img src="http://i11.tinypic.com/8efzmmf.jpg" style="float: left; padding: 5px" />
British Columbia is the westernmost of Canada's provinces and is famed for its natural beauty. It's capital is Victoria, located at the southeastern tip of Vancouver Island. BC's most populous city is Vancouver, located in southwest corner of the BC mainland called the Lower Mainland.

<div class="glidecontent">
<img src="http://i15.tinypic.com/72vilba.jpg" style="float: right; padding: 5px"/>
Ontario is a province located in the central part of Canada, the largest by population and second largest, after Quebec in total area. Toronto, the capital of Ontario, is the centre of Canada's financial services and banking industry.

<div class="glidecontent">
<img src="http://i17.tinypic.com/8bg0lkx.jpg" style="float: left; padding: 5px"/>
Yukon, still commonly referred to as "The Yukon Territory", is the westernmost of Canada's three northern territories. The Yukon's major appeal is its nearly pristine nature. Tourism relies heavily on this and there are many organised outfitters and guides available to hunters and anglers and nature lovers of all sorts.


when the page loads. The slider can take it from there, rotating this dynamically generated content as if they were statically embedded.