Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   05-22-2008, 04:00 AM
bb911s will become famous soon enough Join Date: May 2008 Posts: 6
Hover over Background & change color?


I have seen a vb site that the background in forum headings changes color as you mouse over it. Does anyone know how. VB did not know, VB.org did not know and that sent me here.
Thanks in advance for any help.
bb
Quote   |  



#2   05-22-2008, 04:43 AM
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz Magnumutz has a spectacular aura about Join Date: Dec 2006 Posts: 535 Location: Romania
Re: Hover over Background & change color?


Look into that Page's Source and see what piece of code is doing that.
Quote   |  



#3   05-22-2008, 05:45 AM
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman Caddyman is a jewel in the roughCaddyman is a jewel in the rough Join Date: Dec 2006 Posts: 1,999 Location: Delaware
Re: Hover over Background & change color?


if you posted a link to the site you're talking about we could figure it out for you.
--------------------
Philly Sports
Delaware Online
PA Forums
Quote   |  



#4   05-22-2008, 02:37 PM
bb911s will become famous soon enough Join Date: May 2008 Posts: 6
Re: Hover over Background & change color?


Thank you here is the site the first alternating color changes

JustBreastImplants.com Forums - Breast Augmentation, Breast Implants, and Plastic Surgeons
Quote   |  



#5   05-23-2008, 09:08 AM
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz Magnumutz has a spectacular aura about Join Date: Dec 2006 Posts: 535 Location: Romania
Re: Hover over Background & change color?


That's a mod on vb.org... search for it !
Quote   |  



#6   05-23-2008, 10:40 AM
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman Caddyman is a jewel in the roughCaddyman is a jewel in the rough Join Date: Dec 2006 Posts: 1,999 Location: Delaware
Re: Hover over Background & change color?


awesome site, ima have the wife sign up......seriously.
--------------------
Philly Sports
Delaware Online
PA Forums
Quote   |  



#7   05-23-2008, 07:26 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 610 Location: Tasmania, Australia
Re: Hover over Background & change color?


This is the code they're using:
Code:
<td class="alt1Active" colspan="2" align="left" id="f32" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?f=32';">
Which means that normally the cells are displayed as the alt1Active class (white bg), but when they're hovered over they turn to the alt2Active class (purple bg)
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#8   05-24-2008, 01:26 AM
bb911s will become famous soon enough Join Date: May 2008 Posts: 6
Re: Hover over Background & change color?


Quote:
Originally Posted by bdude View Post
This is the code they're using:
Code:
<td class="alt1Active" colspan="2" align="left" id="f32" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?f=32';">
Which means that normally the cells are displayed as the alt1Active class (white bg), but when they're hovered over they turn to the alt2Active class (purple bg)
Yes, I now see that with a view source of the page, helps when you know what to look forthanks. Just one more question, I tried to put the code in through style manager to no effect, both in 1st alternating style, then td, then at the bottom, zero success. What part of the process am I missing. thanks for the heads up.
Quote   |  



#9   05-24-2008, 07:24 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 610 Location: Tasmania, Australia
Re: Hover over Background & change color?


I believe you need to edit your forumhome_forumbit_level1_ templates.
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#10   05-27-2008, 09:42 PM
Chris P will become famous soon enough Join Date: May 2008 Posts: 9
Re: Hover over Background & change color?


Quote:
onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';"
Thats the javascript they are using alt2Active is the class that it changes to when you mouse over it and alt1Active is the color it usually is. You would add that javascript to any table cell that you want to have the mouse over effect, remember too that you can change the class names to meet your needs.

To do it how they did it just add that code to the desired table cells in the forumhome_forumbit_level1_post and the forumhome_forumbit_level2_post templates.

I hope this post was of some assistance to you.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you change text link color? Garala vBulletin Questions 1 04-28-2008 10:19 PM
How to change Welcome Header background? Garala vBulletin Questions 1 04-08-2008 12:48 PM
Change Color of Category on home page LinkBliss vBulletin Questions 0 09-18-2007 09:38 AM
How to change username color jerrygad vBulletin Questions 2 06-24-2007 04:55 AM
Change the color of users name? Greek76 vBulletin Questions 1 09-26-2006 02:26 PM


All times are GMT -6. The time now is 02:55 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory