Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

MouseOver highlight for table cells?

Aloittaja Desktop, helmikuu 10, 2006, 05:48:40 AP

« edellinen - seuraava »

Desktop

I'm trying to have the catagory tablecells as links to the boards. This is what I tried...

In Boardindex.template.php I changed this :
<td class="windowbg2" align="left" width="60%">

to this :

<td class="windowbg2" align="left" width="60%" onmouseover="this.className=\'windowbg\'" onmouseout="this.className = \'windowbg2\'" onClick="document.location=\'', $board['link'], '\'">


Which didn't work exactly:



So what can I use instead of  ', $board['link'], ' to link each sell to it's board? Or is there another way of doing it? Please help! Thanks!

Acf


onClick="document.location=\'', $settings['default_theme_url'], 'index.php?board=', $board['id'], '\'"
i am not sure but think that this will work.

Sigh...

Desktop

That worked thanks so so much! It rocks!

I tried to work out how to do that for the boards themselves too but I couldn't figure out where to put the code or what the code was. Would that be in messageindex.template.php? Where abouts would it go?

trenchteam

I tried this over and over with no success. In the default template around 137 I found this to work.

<td class="windowbg2" onmouseover="this.className=\'windowbg\'" onmouseout="this.className = \'windowbg2\'" onClick="document.location=\'', $settings['default_theme_url'], 'index.php?board=', $board['id'], '\'">

Just thought I'd share that with everyone.

niko

make a block element with 100% width and height? <a href="" style="display: block; width: 100%; height: 100%;">Text</a>
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Advertisement: