Fancybox from search engine

8 views
Skip to first unread message

P_J_F

unread,
May 20, 2012, 11:21:36 AM5/20/12
to fancybox
Hi,

I have multiple divs that are loaded into my "main_index.php" page. On
each div there is a "More information" link "<a
href="advert_details.php?advert_id=<?php print $advert_id?>" id="more<?
php print $advert_id?>">More</a>"

On the "main_index.php" page, I have the lightbox script

$('a').filter(function() {
return this.id.match(/more[0-9]/);
}).fancybox({
'overlayColor' : '#000',
'overlayOpacity' : 0.1,
'width' : 640,
'height' : 940,
'type' : 'iframe'
});

This opens the details in the fancybox.

When one of these pages "advert_details.php" are shown by a search
engine, when you follow the link, the page "advert_details.php" opens
with all of the information but I would like it to open the
"main_index.php" page first and then the advert_details.php.

Can anyone suggest a way to do this please.

Thanks

Peter

P_J_F

unread,
Jun 1, 2012, 6:34:13 AM6/1/12
to fancybox
Any suggestions to this problem, complete novice needing help. Please
Reply all
Reply to author
Forward
0 new messages