Jump to content

Linking Table Row with FancyBox?


azag

Recommended Posts

I am trying to build a table that display data which can be highlight when hovered over. When clicked I would like this to launch fancybox. Is this possible? I am not an advanced web designer so as much detail on accomplishing this would be extremely helpful.

 

I'm currently using the following but this takes me to a new page with the image.

 

<tr class="url-2" onclick="location.href='images/cs.png'">

 

Thanks in advance for any help.

Link to comment
Share on other sites

It's possible. You need to review the Fancybox documentation. I believe it uses a link tank with a class name dependent for Fancybox.

 

As for this:

<tr class="url-2" onclick="location.href='images/cs.png'">

 

Not sure what the image is for but if you are going to actually grab data from a tab then it would look something like this

 

<tr>

<td>

<a href="url to table date" class="fancybox">click here for data popup</a>

</td>

</tr>

 

There are several variables you can use to allow you to either display images, contents or videos.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...