PDA

View Full Version : Mouse over effect............?


Bop2Bop
12-23-2001, 11:58 AM
How do i do this,
goto www.gsmmagic.com/forums
and hover your mouse over the forums and forum descripts, they turn a diferent colour like a mouse_over event, how can i implement this into my board ?

:stupid:

Lesane
12-23-2001, 12:15 PM
Hmm.. they taked the Copryright away http://vec.webhostuk.com/images/smilies/new/new17.gif

Back 2 your question:

Templates:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

Change the <td> tag to:

<td style="background-color:#13486D"
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';">

after:
<td bgcolor="#1C5780" valign="top"><img src="images/$forum[onoff].gif" border="0" alt=""></td>

Change #F1F1F1 to your own color.

DeeperImage
12-23-2001, 12:52 PM
Hey guys can someone explain this with a little more detail? I am a rookie, i was trying to do but i am not sure if i should delete the whole in forumbit or just the first line.. thanks

Bop2Bop
12-23-2001, 02:22 PM
hummm not working for me either, am i supposed to replace this
<td><img src="{imagesfolder}/clear.gif" width="9" height="0" border="0" alt=""></td>

with this

<td style="background-color:#13486D"
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';">

? help please

Lesane
12-23-2001, 03:54 PM
I have a edited forumhome_forumbit_level1_post &
forumhome_forumbit_level2_post template so its different.

New instructions :):

In forumhome_forumbit_level1_post search for:

<td><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>

And change it to:

<td style="background-color:#13486D"
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>

In forumhome_forumbit_level2_post search for:

<td bgcolor="#13486D" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>

And change it to:

<td align="left" style="background-color:#13486D"
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>


And change the color: #F1F1F1 to your own color and also change the above color: #13486D to { firstaltcolor } (without spaces)

DeeperImage
12-23-2001, 04:59 PM
Okay that worked... But i did not edit the first postbit template and it seems to be working, now when i say i didnt edit it, i meant i did not edit the colors on the first template. Can you guys check it out? and see if it works? thanks for the help, great little hack.. :D

Bop2Bop
12-24-2001, 11:28 AM
lookin good :p :D

Lesane
12-24-2001, 11:50 AM
Yes, looks good :)