[REQ] MouseOver Effect

betty02

New Member
Not sure the name but for example if i hovered over the Announcmeants box on the forum it would highlight, and same with general etc, like on this ProBoards forum

ProBoards® Support - Home

When you hover over a certain forum/cat the hole cell highlights, need this gfor vBulleting 3.8

Thanks
Simon
 
========================================
Mouse Over Effect on Forum Home by ZombieAndy
========================================

WHAT IT DOES
This hack will simply make the cells on your forum homepage switch between the first and second alternating color when the user moves their mouse cursor over.

========================================
TEMPLATE EDITS
========================================

Open template "forumhome_forumbit_level1_post"

FIND
PHP:
<td class="alt1Active" colspan="2" align="$stylevar[align=left]" id="f$forum[forumid]">
REPLACE WITH
PHP:
<td class="alt1Active" colspan="2" align="$stylevar[align=left]" id="f$forum[forumid]" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';">
==========================================
==========================================

Open Template "forumhome_forumbit_level2_post"

FIND
PHP:
<td class="alt1Active" align="$stylevar[align=left]" id="f$forum[forumid]">
REPLACE WITH
PHP:
<td class="alt1Active" align="$stylevar[align=left]" id="f$forum[forumid]" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';">
==========================================
==========================================

OPTIONAL - if you want the same effect on topics in forumview

==========================================
==========================================

Open Template "threadbit"

FIND
PHP:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
REPLACE WITH
PHP:
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='<if condition="$show['gotonewpost']">showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]<else />showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]</if>';">

==========================================
==========================================

Enjoy!
 
Excellent! But is there a way to get it to highlight using a hex color rather then the second alternate color?

Much appreciated though!
 
Back
Top