MyBB Community Forums
[How To?] Mouseover Link Colspan - Printable Version

+- MyBB Community Forums (
+-- Forum: 1.8 Support (
+--- Forum: General Support (
+--- Thread: [How To?] Mouseover Link Colspan (/thread-188804.html)

Mouseover Link Colspan - kylesw555 - 2016-02-07


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?


RE: Mouseover Link Colspan - .m. - 2016-02-07

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

<td onclick="event.cancelBubble=true;" ___________ ____________ ___________

RE: Mouseover Link Colspan - kylesw555 - 2016-02-07

Perfect, thank you very much Big Grin.