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

  • SEARCH
  • Home
  • 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 6933573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:50:59+00:00 2026-05-27T11:50:59+00:00

Both the thumbnail tooltip and the gallery image title are ofc taken from the

  • 0

Both the thumbnail tooltip and the gallery image title are ofc taken from the same title HTML attribute.

I would like to have different content for the thumbnail tooltip and the image title.

eg I would like the tooltip to say: Sculpture name and the image title to say: Sculpture name: Height 123cm

Is there a way to do this?

Many thanks.

My current HTML:

<a class="fancybox" rel="works" title="Sculpture1 Height:1232mm"     href="images/Sculpture1_large_res.jpg"><imagetag alt="Sculpture1 Height:1232mm" src="images/thumbs/Sculpture1_thumb.jpg" class="thumb"></a>  

<a class="fancybox" rel="works" title="Sculpture2 Height:1232mm" href="images/Sculpture2_large_res.jpg"><imagetag alt="Sculpture2 Height:1232mm" src="images/thumbs/Sculpture2_thumb.jpg" class="thumb"></a> 

UDATE:

My current options;

$(document).ready(function() {

$(".fancybox").fancybox({
    openEffect  : 'elastic',
    closeEffect : 'elastic',
    'arrows' :    false,
        helpers     : { 
        buttons : {}
    }

});

});

  • 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-27T11:51:00+00:00Added an answer on May 27, 2026 at 11:51 am

    What I would do is to set the titles to appear in Fancybox in a hidden DIV so my tooltip will show a different content from the title in Fancybox:

    UPDATE : edited to match your content sample

    Your HTML:

    <a class="fancybox" rel="works" title="Sculpture1" href="images/Sculpture1_large_res.jpg"><img alt="Sculpture1 Height:1232mm" src="images/thumbs/Sculpture1_thumb.jpg" class="thumb"></a>  
    <a class="fancybox" rel="works" title="Sculpture2" href="images/Sculpture2_large_res.jpg"><img alt="Sculpture2 Height:1232mm" src="images/thumbs/Sculpture2_thumb.jpg" class="thumb"></a>
    

    Notice the title attribute values.

    NEW: (anywhere within your <body> tag) the Fancybox titles:

    <div id="fancyboxTitles" style="display: none;">
        <div>Sculpture1 Height: 1232mm</div>
        <div>Sculpture2 Height: 1232mm</div>
    </div>
    

    Notice that you have to have a nested <DIV> (with the new title) for each image in your gallery.

    Then, the script:

    $(document).ready(function() {
     $(".fancybox").fancybox({
      afterLoad : function() {
       this.title = $("#fancyboxTitles div").eq(this.index).html();
      }
     }); //fancybox
    }); // ready
    

    UPDATE #2 (Dec09, 13:43PT): Show how to integrate the proposed solution into the original posted script:

    $(document).ready(function() {
        $(".fancybox").fancybox({
                openEffect  : 'elastic',
                closeEffect : 'elastic',
                arrows :    false,
                helpers : { 
                        buttons : {}
                }, // helpers
                afterLoad : function() {
                    this.title = $("#fancyboxTitles div").eq(this.index).html();
                } // afterload
        }); // fancybox
    }); // ready
    

    UPDATE #3 – Jun 03, 2012: For fancybox v2.0.6, use beforeShow instead of afterLoad

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

Sidebar

Related Questions

I currently have the following HTML markup: <td class=title> <img src=my-image.png class=thumbnail /> <span
I have several divs with class image and several with class thumbnail (both can
Both Ruby and Python have the ability of calling the debugger from code (
I'm trying to upload images to server, create a thumbnail from the uploaded image,
I would like to have a div which changes its content on the page
I have this YouTube thumbnail/title grabber, inside my message system. So when a message
I'm going to write a function for thumbnail creation. I can use both Imagemagick
Both Network.Socket.ByteString and Network.Socket.ByteString.Lazy have a send function. Network.Socket.ByteString has a sendTo function, but
Goal: I have lots of pictures in many sizes (both dimensions and file size)
I want to show a big Image when I press the small thumbnail. A

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.