Jump to content

Featured Content Slider


anthelo

Recommended Posts

Hello,

What im trying to do is ''Featured Content Slider Using jQuery http://demo.webdeveloperplus.com/featured-content-slider/''

 

When click on an thumb show in the content.

 

Any help please, i could only make work the thumbs cant make the content

 

	<div id="featured">

	  <ul class="ui-tabs-nav">
<?php 
	$query = "SELECT * FROM tblnews AS tbln ORDER BY tbln.Id DESC LIMIT 4";
	$result = mysql_query($query);
	$tabID = array(1, 2, 3, 4);

	foreach ($tabID as $id) {
	$row = mysql_fetch_assoc($result);

?>
        <li class="ui-tabs-nav-item" id="nav-fragment-<?php echo($id);?>"><a href="#fragment-<?php echo($id);?>"><img src="<?php echo html_entity_decode($row['Thumb']);?>" alt="" /><span><?php echo html_entity_decode($row['Title']);?></span></a></li>
<?php } ?>
		</ul>
<?php 		
	foreach ($tabID as $id) {
	$row = mysql_fetch_assoc($result);

?>

    <div id="fragment-<?php echo($id);?>" class="ui-tabs-panel">
		<img src="<?php echo html_entity_decode($row['Thumb']);?>" alt="" />
		 <div class="info" >
			<h2><a href="#" ><?php echo html_entity_decode($row['Title']);?></a></h2>

			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#" >read more</a></p>
		 </div>
    </div>

	<?php }  ?>



    </div>
[code]

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/238755-featured-content-slider/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.