Fire Fancybox from a css rollover

55 views
Skip to first unread message

Nezz Strooger

unread,
Mar 24, 2012, 11:23:39 AM3/24/12
to fancybox
I have Fancybox working great when I fire it from a simple link,
However, when I try to fire it from a css rollover I get, 'The
requested content cannot be loaded. Please try again later.' in the
modal.

This is the code I'm using:

</li>
<li class="top fancybox"><a href="http://www.shoestring-mln.co.uk/
contactus/contactform.php" class="top_link fancybox"><span>Advice
Centre</span></a>
</li>

Any ideas?

Bit of a beginner here :-(

Thanks!

JFK

unread,
Mar 25, 2012, 2:59:39 AM3/25/12
to fancybox
the class="top fancybox" should be in the <a> tag since fancybox gets
the content from the href attribute.
<li class="top fancybox"> doesn't say to fancybox where it should load
the content from hence the message.

Nezz Strooger

unread,
Mar 25, 2012, 9:54:36 AM3/25/12
to fancybox
Hi JFK, thanks for that. I've got class="top_link fancybox" in the <a>
tag, shouldn't it be called from there?

Nezz Strooger

unread,
Mar 25, 2012, 11:29:30 AM3/25/12
to fancybox
Sorted, just needed to remove the first 'top' class. Thanks.
Reply all
Reply to author
Forward
0 new messages