MyBB Community Forums

Full Version: Mouseover Link Colspan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I have the following code in my forumdisplay_thread template:

<tr onclick="window.location.href='showthread.php?tid={$thread['tid']}';" style="cursor: pointer;">

Now the code itself works brilliantly as it makes the entire row of a thread become a link to the thread on mouseover however I wanted to know if there is a way I can edit it so that only the first 5 columns of the row become a link when mouseover occurs as opposed to the entire row?

Thanks,
Kyle
for the last post td cell you can try adding onclick="event.cancelBubble=true;"

<td onclick="event.cancelBubble=true;" ___________ ____________ ___________
Perfect, thank you very much Big Grin.