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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:36:52+00:00 2026-05-24T16:36:52+00:00

I am trying to extend fancybox to allow for a new button to open

  • 0

I am trying to extend fancybox to allow for a new button to open the current image in a new window. I was planning on adding this via the onComplete although I can find any information in the API that explains how to get teh current image from:

'onComplete' : function(currentArray, currentIndex, currentOpts){
    alert(currentArray.title);
}

Or if you can point me in the direction of some documentation on how I can use the “currentArray, currentIndex, currentOpts”

  • 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-24T16:36:52+00:00Added an answer on May 24, 2026 at 4:36 pm

    Try this (demo):

    CSS (I used the right arrow icon, but change and/or move this icon whereever you want)

    #external-link {
      position: absolute;
      top: -15px;
      right: 10px;
      width: 30px;
      height: 30px;
      background: transparent url('http://i56.tinypic.com/s5wupy.png') -40px -60px;
      cursor: pointer;
      z-index: 1103;
    }
    

    Script

    $('.popbox').fancybox({
      onComplete: function(currentArray, currentIndex, currentOpts){
        var currentUrl = currentArray[currentIndex].href,
          link = '<a target="_blank" id="external-link" title="Open in a new tab" href="' + currentUrl + '"></a>';
        $('#fancybox-close').before(link);
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to extend my new WPF Touch Screen Keyboard (DLL) Library, to allow
I am trying to extend dijit.form.Button with an extra attribute but this is not
I'm trying to extend Object functionality this way: Object.prototype.get_type = function() { if(this.constructor) {
I'm trying to extend the PHP mailer class from Worx by adding a method
I trying to extend ConuntDownTimer to add the methods pause and resume in this
I'm trying to extend (not sure what is the correct term for this kind
I'm trying to extend Python 3 with C++ in MSVC++ 2010. I'm completely new
I'm trying to extend PHP Markdown to allow the use of {{ and }}
I am trying to extend a scalable image viewer in Android to use two
I am trying to extend the android.content.Intent class by adding a private attribute of

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.