Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Graphics & Style in Snitz!
 making forum link cell change when hoverd over
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rollerblast
New Member

76 Posts

Posted - 06 April 2005 :  04:42:53  Show Profile  Visit rollerblast's Homepage
how do you change the cell the forum link is in to a different colour when hovered over? it would also be good to make the hole cell a link not just the text. any ideas? would i use css? if so what would it be!

cool guy

Ghostnetworks
New Member

95 Posts

Posted - 06 April 2005 :  10:07:01  Show Profile  Visit Ghostnetworks's Homepage
I think it's probably best to change the entire row color on mouseover

The simplest method:

Create two classes in your CSS file

tr.rowNormal
{
	background:#fff; /* Or whatever color you like */
	cursor:pointer; /* This will make your cursor turn into a pointer */
}

tr.rowHover
{
	background:#ddd; /* The mouseover color */
	cursor:ponter;
}


The next step is to edit the ASP file


	<tr onmouseover=""this.className='rowHover';"" onmouseout=""this.className='rowNormal';"">

The "" are there because that part will be a Response.Write() line and it'll throw an error if you use a single set of double quotes.

Remember...
This will only work if each cell background in the table is set to "transparent".
You'll have to fix that in the forum configuration.

As for installing what's written above..

Find these lines in default.asp..

if chkDisplayHeader then
       Call DoHideCategory(CatID)
       Response.Write	"              <tr>" & vbNewline & _

That's for each forum.. It's around lines 467 - 470 ( I'm not sure since you've added a news mod ) Change <tr> to what I wrote above...

Then in forum.asp, find these lines...

if AdminAllowed = 1 and Topic_UReplies > 0 then
       Topic_Replies = Topic_Replies + Topic_UReplies
end if
Response.Write	"              <tr>" & vbNewLine & _

It's around lines 477 - 481 ( Again, it could be different depending on what other mods you've installed on forum.asp )
Change <tr> agan, and you should have a decent hover effect.

edit_
Before you do any editing, make copies of default.asp and forum.asp..
Just in case


Edited by - Ghostnetworks on 06 April 2005 10:12:02
Go to Top of Page

rollerblast
New Member

76 Posts

Posted - 06 April 2005 :  13:14:05  Show Profile  Visit rollerblast's Homepage
which fields do i make transparent. I do it by entering #transparent yeh?

cool guy
Go to Top of Page

Ghostnetworks
New Member

95 Posts

Posted - 06 April 2005 :  17:16:37  Show Profile  Visit Ghostnetworks's Homepage
transparent Without the #

The forum cell colors are in the admin section of the forum configuration

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07