Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6631345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:31:59+00:00 2026-05-25T22:31:59+00:00

I’m using a script – for a pretty small image gallery within a tabbed

  • 0

I’m using a script – for a pretty small image gallery within a tabbed content area.

I’m using; http://www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/ But customized to almost a fourth the size, only 3 images, and realigned to have the thumbs sit directly below the ‘main view’ image area. I’ve done it successfully, and visually it’s great.

The thumbs are about 50px, that expand to about 60px on hover and when clicked – it takes the main view area with the correct image as it’s supposed too.

Problem is, and is really weird as I’ve used this script over and over again – for some reason the parameters of the 3 thumbs are duplicated above the main view as well – but the actual images are not visible. When a user put their mouse above the main view – anywhere between the 50px 60px square/rectangle parameter – the hover of the below images appear.

I’ve been going through the code over and over again – I know it’s something stupid – if anyone could throw me a suggestion that’d be great.

Here’s a screenshot visual of the situation – check it out; http://tinypic.com/r/2nt8o7t/7

The mark-up:

<!-- Thumb Gall Mark-Up -->

<div class="containerslide">

<ul class="thumb">

    <li><a href="img/appimg_1.jpg"><img src="img/appimg_1.jpg" alt="" /></a></li>
    <li><a href="img/appimg_2.jpg"><img src="img/appimg_2.jpg" alt="" /></a></li>
    <li><a href="img/appimg_3.jpg"><img src="img/appimg_3.jpg" alt="" /></a></li>


</ul>

<div id="main_view">

    <img src="img/appimg_1.jpg" alt="" /></a><br />

</div>
</div>

<!--End Thumb Gall Mark-Up-->

The query:

        <script src="js/modernizr.custom.37797.js"></script> 

        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> 
<script type="text/javascript"> 
$(document).ready(function(){

//Larger thumbnail preview 

$("ul.thumb li").hover(function() {
    $(this).css({'z-index' : '10'});
    $(this).find('img').addClass("hover").stop()
        .animate({
            marginTop: '0px', 
            marginLeft: '0',
            top: '360px', 
            left: '0',  
            width: '65px', 
            overflow: 'hidden',
            height: '80px',
            padding: '3px' 
        }, 200);

    } , function() {
    $(this).css({'z-index' : '0'});
    $(this).find('img').removeClass("hover").stop()
        .animate({
            marginTop: '0', 
            marginLeft: '0',
            top: '360px', 
            left: '0', 
            width: '60px', 
            overflow: 'hidden',
            height: '60px', 
            padding: '3px'
        }, 200);
});

//Swap Image on Click
    $("ul.thumb li a").click(function() {

        var mainImage = $(this).attr("href"); //Find Image Name
        $("#main_view img").attr({ src: mainImage });
        return false;       
    });

});
</script> 

The CSS;

<!--minSlide Show Styles -->

* { padding: 0;}
img {border: none;}
.containerslide {
    margin-top: -71px;
}

ul.thumb {
    float: left;
    list-style: none outside none;
    padding: 12px;
    width: 360px;
}

ul.thumb {
    width: 360px;

}


ul.thumb li {
    padding: 3px;
    float: left;
    position: relative;
    width: 60px;
    height: 60px;

}
ul.thumb li img {
    width: 60px; height: 60px;
    border: 1px solid #ddd;
    padding: 3px;
    background: #f0f0f0;
    position: absolute;
    left: 0; 
    -ms-interpolation-mode: bicubic; 
    margin-top: 365px;

}
ul.thumb li img.hover {
    background:url(thumb_bg.png) no-repeat center center;
    border: none;


}
#main_view {
    float: left;
    margin-left: -217px;
    margin-top: 41px;
    padding: 9px 0;
}




<!-- End Slide Show Styles -->
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:31:59+00:00Added an answer on May 25, 2026 at 10:31 pm

    I see an unnecessary a tag here,

    <div id="main_view">
    
        <img src="img/appimg_1.jpg" alt="" /></a><br />
    
    </div>
    

    What is this doing there. Maybe this is creating an issue and disturbing the whole script, please post a fiddle, if issue still persists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.