Hi there,
I have a content slider on our home page @ I've Got Kids!: Home
You will see that it slides through 4 featured articles, giving you the option on the right to skip straight to one of your choosing…
There is a problem with this feature… I haven’t changed anything since it worked last but for some reason, now when you choose one from the list on the right, the “info” tab that should appear at the bottom of the main picture doesn’t show up with it.
The slider is written in jQuery & PHP so I hope I’m posting this in the right section. If somebody could help me figure out why it is behaving like this ASAP, I would be very grateful.
Here is the code that controls the slider:
<script type="text/javascript" src="<?php echo FCG_PLUGIN_URL; ?>/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?php echo FCG_PLUGIN_URL; ?>/scripts/jquery-ui-1.7.3.custom.min.js"></script>
<script type="text/javascript" >
var slider_speed = '<?php echo get_option("speed_slider"); ?>';
var animation_style = '<?php echo get_option("animation_style"); ?>';
var show_caption = '<?php echo get_option("show_caption");?>';
$(document).ready(function(){
if(show_caption == 'No') {
$("#featured .ui-tabs-panel .info").hide();
}
if( animation_style == 'Slide Up/Down'){
FCGSlideInOut();
}
else if( animation_style == 'Fade In/Out'){
FCGFadeInOut();
}
});
function FCGSlideInOut(){
$("#featured").tabs(
{
fx:{opacity: "toggle"},
select : function(){
if( show_caption != 'No') {
$("#featured .ui-tabs-panel .info").animate({top:'280px'}, 500 ).animate({top:'180px'}, 500 );
}
}
}
).tabs("rotate", <?php echo get_option("speed_lefttxt");?>, true);
$("#featured").hover(function() {
$("#featured").tabs("rotate",0,true);
},
function() {
$("#featured").tabs("rotate",<?php echo get_option("speed_lefttxt");?>,true);
});
}
function FCGFadeInOut(){
// $("#featured .ui-tabs-panel .info").css('top','280px');
$("#featured").tabs(
{
fx:{opacity: "toggle"},
select : function(){
if( show_caption != 'No') {
//$("#featured .ui-tabs-panel .info").fadeOut("slow");
}
}
}
).tabs("rotate", slider_speed, true);
$("#featured").hover(function() {
$("#featured").tabs("rotate",0,true);
},
function() {
$("#featured").tabs("rotate",slider_speed,true);
});
}
</script>
And here is the CSS that controls how the slider is displayed:
#featured{
width:370px;
padding-right:230px;
position:relative;
border:5px solid #F6C;
height:250px;
background:#fff;
overflow:hidden;
margin:0;
}
#featured ul.ui-tabs-nav{
position:absolute;
top:0px; left:370px;
list-style:none;
padding:0; margin:0;
width:230px;
}
#featured ul.ui-tabs-nav li{
padding:0px 0; padding-left:13px;
font-size:12px;
color:#666;
}
#featured ul.ui-tabs-nav li img{
float:left; margin:2px 5px;
background:#fff;
width:80px;
height:50px;
padding:2px;
border:1px solid #eee;
}
#featured ul.ui-tabs-nav li span{
font-size: <?php if(get_option("tab_fontsize")){echo get_option("tab_fontsize");}else{echo "11";}?>px;
font-family: <?php if(get_option("tab_fontfamily")){echo get_option("tab_fontfamily");}else{echo "Verdana, Arial, Helvetica, sans-serif";}?>;
line-height:18px;
}
#featured li.ui-tabs-nav-item a{
display:block;
height:63px;
padding-right:5px;
color:#333;
background:#fff;
line-height:20px;
text-decoration:underline;
}
#featured li.ui-tabs-nav-item a:hover{
background:#f2f2f2;
}
#featured li.ui-tabs-selected{
background:url('<?php echo FCG_PLUGIN_URL; ?>/images/selected-item.png') top left no-repeat;
z-index: 997;
}
#featured ul.ui-tabs-nav li.ui-tabs-selected a{
background:#ff99ff;
}
#featured .ui-tabs-panel{
width:370px;
height:250px;
background:#FCF; position:relative;
z-index:999;
}
#featured .ui-tabs-panel .info{
position:absolute;
width:370px;
top:180px;
left:0;
height:80px;
overflow:hidden;
background: url('<?php echo FCG_PLUGIN_URL; ?>/images/transparent-bg.png');
z-index:2000;
}
#featured .info h2{
font-size: <?php if(get_option("heading_fontsize")){echo get_option("heading_fontsize");}else{echo "18";}?>px;
font-family: <?php if(get_option("heading_fontfamily")){echo get_option("heading_fontfamily");}else{echo "Georgia, 'Times New Roman', Times, serif";}?>;
color:#fff; padding:5px; margin:0;
overflow:hidden;
}
#featured .info p{
margin:0 5px;
font-family:<?php if(get_option("captiontext_fontfamily")){echo get_option("captiontext_fontfamily");}else{echo "Verdana, Arial, Helvetica, sans-serif";}?>;
font-size:<?php if(get_option("captiontext_fontsize")){echo get_option("captiontext_fontsize");}else{echo "11";}?>px;
line-height:15px; color:#f0f0f0;
}
#featured .info a{
text-decoration:none;
color:#fff;
}
#featured .ui-tabs-hide{
display:none;
}
</style>
If you need any more info, please let me know.