GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is it possible to make everything inside a table or div a single link? (https://gfy.com/showthread.php?t=360896)

Big Monkie 09-23-2004 12:30 PM

Is it possible to make everything inside a table or div a single link?
 
Have never been able to figure out a way to do this, but its often needed. When you do a gallery or freesite you are limited with the number of links you can have. So if you slice up a large image it fucks your ability to make it all one link (to the sponsor), or at least i think it does. I know you can make multiple items a single link, but only if they are inside the same cell. But when you slice something up you have multiple cells. Here is an example of a sliced image and some text below it, is there a way to make the entire table contents (in other words, the entire displayed image and the text below it) a single link?

<table align="center" width="590" height="205" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2"><img src="s_01.gif" width="300" height="205"></td>
<td rowspan="2"><img src="s_02.jpg" width="140" height="205"></td>
<td colspan="2"><img src="s_03.gif" width="150" height="96"></td>
</tr>
<tr>
<td><img src="s_04.jpg" width="29" height="109"></td>
<td><img src="s_05.gif" width="121" height="109"></td>
</tr>
<tr>
<td colspan="4" align="center">TEXT COPY GOES HERE</td>
</tr>
</table>

fusionx 09-23-2004 12:58 PM

<table onClick="window.location.href='http://www.gofuckyourself.com'";>

It works in IE, haven't tried anything else.

Will some scripts catch and refuse this? I dunno..

Big Monkie 09-23-2004 02:02 PM

Quote:

Originally posted by fusionx
Will some scripts catch and refuse this? I dunno..
Good question, but only safe way to go with galleries is no scripting of any kind on the page, period, no exceptions. I was wondering if there was some html or css trick i had never heard of. Years ago i remember first trying to figure this out, kept trying to surround everything with the standard <a> tags and couldnt figure out why it wouldnt work. And still cant.


All times are GMT -7. The time now is 07:13 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123