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 1091159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:28:53+00:00 2026-05-16T23:28:53+00:00

Seem to be having some issues with executing jQuery code in the caption class.

  • 0

Seem to be having some issues with executing jQuery code in the “caption” class.

My class “.showmore” lies within the caption section, however when I perform a hover function, it does not seem to execute this jQuery function.

Is there anything within the Galleriffic jQuery that is preventing me from executing this???

<html>
    <head>
        <link rel="stylesheet" href="<?php echo $siteurl; ?>css/galleriffic-2.css" type="text/css" />
        <script type="text/javascript" src="<?php echo $siteurl; ?>js/jquery.galleriffic.js"></script>
        <script type="text/javascript" src="<?php echo $siteurl; ?>js/jquery.opacityrollover.js"></script>
    </head>

    <script type="text/javascript">
        $('.showmore').hover(function(){
            $(this).fadeTo('fast', 1);
        });
    </script>

    <div class="caption">    
        <div class="showmore">+</div>
    </div>
  • 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-16T23:28:54+00:00Added an answer on May 16, 2026 at 11:28 pm

    Try moving your <script> to the bottom of the page. Currently $('.showmore').hover(...) is executed before the .showmore div is written to the page.

    Alternatively you can try something like this:

    $(function() {
        $('.showmore').hover(function(){
            $(this).fadeTo('fast', 1);
        });
    });
    

    This ensures that you’re code is executed after the DOM is finished loading. See .ready() for more information.

    Also try passing two functions into the hover event. It really shouldn’t matter (see source code), but typically, hover takes in two functions as parameter — the first is executed when the mouse enters the element and the second is executed when the mouse leaves the element. Here’s an example:

    $('.showmore').hover(function() { $(this).fadeIn('fast'); },
                         function() { $(this).findOut('fast'); });
    

    When only one function is passed in, that function is executed both when the mouse enters and leaves the element.

    Also, make sure that you’re including jquery to the page. In the example you posted, it seems you’re including the galleriffic and opacityrollover plugins but not jquery core.

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

Sidebar

Related Questions

Having some issues with code not executing within the classes I created and thought
Seem to be having some issues storing the current date in a core data
I'm creating a database using entity framework code first and I'm having some issues
I seem to be having some issues while attempting to implement logging into my
Evening guys, This may seem like a stupid question but im having some issues
I installed scala 2.8.0 last night and I seem to be having some issues
Just having some issues with building a function using nodeJS. It doesn't seem to
I am having some issues with a parameterized SQL Lite query. I can't seem
I seem to be having some issues with my domain controller when trying to
I seem to be having trouble with my code. I need to say: if

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.