Welcome, Guest. Please Login or Register.
November 24, 2024, 05:53:03 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Graphics and Templates  |  Table Background color on mouseover « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Table Background color on mouseover  (Read 5374 times)
adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Table Background color on mouseover
« on: December 27, 2001, 01:50:02 AM »
Reply with quote

I've seen  on someones board where when the mouse hovers over the <td> of a topic or board cat. the whole <td> bgcolor changes. Anyone have the css handy for doing this?
Logged

adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #1 on: December 27, 2001, 01:55:29 AM »
Reply with quote

The effect in case I wasn't clear enough is similar to the menu in the top right hand corner of this page.
Logged

Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Table Background color on mouseover
« Reply #2 on: December 27, 2001, 03:16:46 AM »
Reply with quote

This is the YaBB 1 Gold cell color change mod for the BoardIndex.php and MessageIndex.php in your Sources Folder.

The part that does the work:

onmouseover="this.style.backgroundColor='$color[windowbg]'" onmouseout="this.style.backgroundColor=''"  

Here's the link to the download in the "Mod Ideas" Board.
http://www.yabb.info/community/index.php?board=141;action=display;threadid=2706;start=45
« Last Edit: December 27, 2001, 04:19:30 AM by Shaun » Logged

This guy uses objects like women man!
adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #3 on: December 27, 2001, 06:13:38 AM »
Reply with quote

Wonderful. Thats where I saw the mod in action =D

I'm just looking at your mod file.... should

<edit file>
Sources/BoardIndex.pl
</edit file>

be

<edit file>
Sources/BoardIndex.php
</edit file>

 ???
« Last Edit: December 27, 2001, 06:22:25 AM by adams » Logged

Matt Siegman
Super Duper Developer
YaBB God
*****
Posts: 927


Red Hot!

ICQ - 95930457 WWW
Re:Table Background color on mouseover
« Reply #4 on: December 27, 2001, 05:59:11 PM »
Reply with quote

yes

PS: make your signiture not so wide, it is screwing up my browser screen
Logged

Shaun
Wannabe Mod Writer
Sr. Member
****
Posts: 361


YaBB SE Rules.

Re:Table Background color on mouseover
« Reply #5 on: December 27, 2001, 06:07:27 PM »
Reply with quote

Okay, it's fixed.

I did notice your signature is quite large at work here on 800x600.
Logged

This guy uses objects like women man!
adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #6 on: December 27, 2001, 09:15:12 PM »
Reply with quote

In case people wern't following we were talking about a mod to be used manually or with BoardMod. You can get the mod at Shaun's site http://www.nextcelica.net/downloads/mouseover_cell.txt

Shaun I notice that you want to make a wallpaper section. I think this would be a great mod and not that hard to do when combined with the attachments now available.

http://www.outersurf.com/YaBBSE/index.php?board=5;action=display;threadid=534



and the mod does not work for the latest version of YaBBSE (at least the one that I installed) I'm going to try it manually.
« Last Edit: December 27, 2001, 09:21:01 PM by adams » Logged

adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #7 on: December 27, 2001, 09:45:31 PM »
Reply with quote

Shaun, why not use the <td

onclick="document.location.href='http://board.bla.bal.bal'">
feature as well so that people can click anywhere in the <td> rather then having to click on the words inside the table....
Logged

adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #8 on: December 27, 2001, 09:53:00 PM »
Reply with quote

=D

I've never made a mod but you can check out the results of Shauns and my work at http://www.outersurf.com/YaBBSE/

In MessageIndex.php
<td class="windowbg" valign="middle" width="48%" bgcolor="$color[windowbg2]" onmouseover="this.style.backgroundColor='$color[windowbg]'" onmouseout="this.style.backgroundColor=''" onclick="document.location.href='$cgi;action=display;threadid=$mnum'"><font size="2"><a href="$cgi;action=display;threadid=$mnum">$msub</a> $new $pages</font></td>
In BoardIndex.php
<td class="windowbg2" onclick="document.location.href='$scripturl?board=$row_board[ID_BOARD]'" bgcolor="$color[windowbg2]" onmouseover="this.style.backgroundColor='$color[windowbg]'" onmouseout="this.style.backgroundColor=''" align="left" width="60%">
Logged

certifyd
Guest
Re:Table Background color on mouseover
« Reply #9 on: December 28, 2001, 02:39:33 AM »
Reply with quote

changing this piece of code

onmouseover="this.style.backgroundColor='$color[windowbg]'"
to this

onmouseover="this.style.backgroundColor='$color[windowbg]'; this.style.cursor='hand';""
will give you a "hand" style cursor..
Logged
adams
Jr. Member
**
Posts: 80


http://outersurf.com http://jadz.com

WWW
Re:Table Background color on mouseover
« Reply #10 on: December 28, 2001, 05:54:35 AM »
Reply with quote

thats a good point.

I can see people not figuring out that you can click anywhere in the <td>

it worked out well.

http://outersurf.com/YaBBSE/
« Last Edit: December 28, 2001, 08:00:08 AM by adams » Logged

Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:Table Background color on mouseover
« Reply #11 on: December 28, 2001, 02:05:00 PM »
Reply with quote

You have to change the "mouseover" in the boardindex (I think). When you move the mouse over the cells with the posts and views the colour changes, too.
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:Table Background color on mouseover
« Reply #12 on: December 29, 2001, 04:13:16 AM »
Reply with quote

Quote from: adams on December 27, 2001, 01:50:02 AMI've seen  on someones board where when the mouse hovers over the <td> of a topic or board cat. the whole <td> bgcolor changes. Anyone have the css handy for doing this?
In the YaBB 1 Gold Graphics & Templates board there is a nice tutorial about this subject:

TUTORIAL: Hypercells

It should not be necassary to install a mod for that, you can achieve it by just making the template according to the tutorial. Since 1 Gold and SE are using the same template structure until now, the tutorial should apply for SE, too.
« Last Edit: December 29, 2001, 04:15:34 AM by andrea » Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Table Background color on mouseover « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.054 seconds with 21 queries.