Jump to content
Sign in to follow this  
cas45

feature slider rollovers

Recommended Posts

cas45

I have modified the feature footer, but can't figure out how to get a rollover. My page is here. Here is an example image with the rollover. ddsB8.jpg Got any suggestions?

Share this post


Link to post
Share on other sites
Andrew

are you trying `:hover` rules? I couldn't see the graphic you're referencing... nice design btw

Share this post


Link to post
Share on other sites
cas45

@ Andrew The graphics are placed using the "Feature Thumb" function from the Features section. The code generated by PlatformPro is:

<span class="nav_thumb" style="background:#fff url(http://sandboxes.caroline.motsa.net/sandbox3/wp-content/uploads/2011/01/sex.jpg)"><span class="nav_overlay"> </span></span>[/code]

I tried to get it to rollover by setting the background position of "nav_thub" to -123px but I think it is not working because the graphic is placed inline, or I just did not get my CSS right.

Share this post


Link to post
Share on other sites
cmunns

You are correct. You couldn't apply it to the actual CSS because the selectors wouldn't be specific enough. But we could mod it to have each nav thumb be presented by a number so you apply hover to each one instead of inline. First file to edit would be section.features.php Probably this block of code ` <?php elseif(pagelines('feature_nav_type') == 'thumbs'):?> //Overide page numbers on cycle feature with custom text $j("div#featurenav").children("a").each(function() { <?php $count = 1;?> <?php foreach($feature_posts as $feature_post => $feature_info):?> if($j(this).html() == "<?php echo $count;?>") { $j(this).html(' ');} <?php $count += 1;?> <?php endforeach;?> }); ` In the code above I've added the count variable inside of the span class so it should have a unqiue ID if you will

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×