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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.