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

The Archive Base Latest Questions

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

i have a table with links to a other html doc like this <div

  • 0

i have a table with links to a other html doc
like this

<div id="gallery_box">
        <ul>
            <li>
                <a href="http://www.geestkracht.com" target="_blank"><img src="images/gallery/Geestkracht.jpg" alt="Geestkracht" /></a>
                <p>Praktijk voor psychotherapie.<a class="more" href="hd.html "><br />Meer Info <span>&raquo;</span></a></p>
            </li>

            <li>
                <a href="http://www.goskollekt.nl target="_blank"><img src="images/gallery/Goskollekt.jpg" alt="Goskollekt" /></a>
                <p>Incassoburo Bloemen en planten sector <a class="more" href="hd.html ">More Info <span>&raquo;</span></a></p>

            </li>
            <li>
                <a href="http://www.vannieropadvies.nl" target="_blank><img src="images/gallery/image_03.jpg" alt="van nierop advies" /></a>
                <p>Administratie kantoor <a class="more" href="hd.html">More info <span>&raquo;</span></a></p>

            </li>
             <li>
</ul>
</div>

on the page hd html i have :

<div class="description">
 <div class="geestkracht">
                <div class="col_w610">
                <div class="image_wrapper image_fl"><img src="images/portfolio/geestkracht.jpg" alt="image 6" /></div>
            </div>
                <div class="col_w600 last_col">
                    <h3>Geestkracht</h3>
                        <p>Praktijk voor Psychotherapie</p>
                        <p>Gebruikte Technieken</p>
                        <ul class="bla_list">
                          <li>Bla</li>
                          <li>bla</li>
                          <li>bla</li>
                          <li>bla</li>
                        </ul>
                  </div>
                </div>

</div>
<div class="description">
<div class="goskollekt">
<div class="col_w610">
            <div class="image_wrapper image_fl"><img src="images/portfolio/goskolekt.jpg" alt="image 4" /></div>

</div>
        <div class="col_w600 last_col">
            <h3>Goskollekt</h3>
                <p>Samen  met u werk ik  een projectplan uit waarin we de te zetten stappen gaan defini&euml;ren.</p>
                <p>Dit projectplan zal de leidraad zijn voor de realisatie van uw website.</p>
                <ul class="bla_list">
                  <li>bla</li>
                  <li>bla</li>
                  <li>bla</li>
                  <li>bla</li>
                </ul>

          </div>
</div>
</div>

This is my Jq

$('#gallery_box .more').each(function(i, el) { $(el).fancybox({ 
    'autoDimensions': true, 
    'type': 'ajax',
    'ajax': { dataFilter: function(data) { return $(data).find('.description')[0]; } } }); });

what i am trying to get is that when people click on the firts class”more” fancybox opens and show the content of the first div on page hd.html with class “description”

this works fine only when people click the second “more” fancybox still opens the first div instead of the second ore the third

can someone help me out

cheers guys

  • 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-24T04:41:37+00:00Added an answer on May 24, 2026 at 4:41 am

    It looks like it’s an issue of getting the target url hash.

    This should do the trick for you. I’ve tested it in firefox and safari.

    In order for this “demo” to work, make sure you either put the fancybox directory in the same location as index.html and hd.html, or change the link and script tag paths to the location of your fancybox .css and .js, files.

    Index.html

    <!DOCTYPE html>
    <html>
    <head>
        <title>Index</title>
    
        <link rel="stylesheet" href="fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
    
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
        <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    
        <script type="text/javascript">
        $(function(){
            $('#gallery_box .more').each(function(i, el) {
                var target;
                $(el).click(function(){
                    target = this.hash.replace('#','.');
                }).fancybox({ 
                    'autoDimensions': true, 
                    'type': 'ajax',
                    'ajax': { 
                        dataFilter: function(data) {
                            return target ? $(data).find(target).parents('.description') : $(data); 
                        } 
                    } 
                }); 
            });
        });
        </script>
    
    </head>
    <body>
    
        <div id="gallery_box">
            <ul>
                <li>
                    <a href="http://www.geestkracht.com" target="_blank"><img src="images/gallery/Geestkracht.jpg" alt="Geestkracht" /></a>
                    <p>Praktijk voor psychotherapie.
                    <a class="more" href="hd.html#geestkracht"><br />Meer Info <span>&raquo;</span></a></p>
                </li>
                <li>
                    <a href="http://www.goskollekt.nl2"><img src="images/gallery/Goskollekt.jpg" alt="Goskollekt" /></a>
                    <p>Incassoburo Bloemen en planten sector 
                    <a class="more" href="hd.html#goskollekt">More Info <span>&raquo;</span></a></p>
                </li>
                <li>
                    <a href="http://www.vannieropadvies.nl"><img src="images/gallery/image_03.jpg" alt="van nierop advies" /></a>
                    <p>Administratie kantoor 
                    <a class="more" href="hd.html">More info <span>&raquo;</span></a></p>
                </li>
            </ul>
        </div>
    
    
    </body>
    </html>
    

    hd.html

    <div class="description">
        <div class="geestkracht">
            <div class="col_w610">
                <div class="image_wrapper image_fl">
                    <img src="images/portfolio/geestkracht.jpg" alt="image 6" />
                </div>
            </div>
            <div class="col_w600 last_col">
                <h3>Geestkracht</h3>
                <p>Praktijk voor Psychotherapie</p>
                <p>Gebruikte Technieken</p>
                <ul class="bla_list">
                    <li>Bla</li>
                    <li>bla</li>
                    <li>bla</li>
                    <li>bla</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="description">
        <div class="goskollekt">
            <div class="col_w610">
                <div class="image_wrapper image_fl">
                    <img src="images/portfolio/goskolekt.jpg" alt="image 4" />
                </div>
            </div>
            <div class="col_w600 last_col">
                <h3>Goskollekt</h3>
                <p>Samen met u werk ik een projectplan uit waarin we de te zetten stappen gaan definiëren.</p>
                <p>Dit projectplan zal de leidraad zijn voor de realisatie van uw website.</p>
                <ul class="bla_list">
                    <li>bla</li>
                    <li>bla</li>
                    <li>bla</li>
                    <li>bla</li>
                </ul>
            </div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a link in my datalist <a href=# onclick=showHideDesc(this); return false; class=prod_details>details</a> <table
i have some troubles implementing this layout: http://deconcini.net/maurer-schneebacher/projekte/elisabethinum.html Basically i would like to display
i have a database table of website links. i have another table of tags,
I have a table in SQL that links to itself through parentID. I want
I have an Access 2002 application which links an Oracle table via ODBC with
I currently have a HTML select box like below. <select name=item_1> <option value=0>Choose one...</option>
I have a .php file with HTML code also in it. Through this file
Is it possible to open an html document with word, and have anchor links
I have added an CSS file this way: <link rel=stylesheet href=style.css type=text/css media=screen, print>
I have a page that lists all from my Post table, it looks like

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.