View Full Version : Cell mouseover effect
Dzuma
01-28-2002, 10:04 PM
First of all thx to all folks in Request forum that helped me on this one. Second I don't really think you can call this a hack but here it goes.
Description:
This hack makes description forum cells to have mouseover effects. It will change the color from second alt color to the first one as you go over it with the mouse.
Enjoy! More to come! :)
Dzuma
01-28-2002, 10:06 PM
For some reson where you see that it says #some number for color that should saying firstaltcolor and secondaltcolor
XiXora
01-28-2002, 10:13 PM
put ten in [ i ] [/ i ]
Dzuma
01-28-2002, 10:23 PM
now i added it as an attachment so there wont be any problems with first/second alt color.
put ten in [ i ] [/ i ]
Hmm, I don't understand, what ten and where to put [i] [ i]
Mr. X
01-29-2002, 12:11 AM
Awesome, thanks, but I got a question:
can this be done on the threadlist, and if so, how?
Dzuma
01-29-2002, 12:35 AM
Great idea! I'm 99% that it can be done. I'm gonna try to work it out now.
Dzuma
01-29-2002, 12:52 AM
I got it working. :)
Just go to templetes and pull out forumdisplaybit and find:
<td bgcolor="{firstaltcolor}" align="left"
And replace it with this:
td onmouseover="NavRollOver(this)" onmouseout="NavRollOut(this)" bgcolor="{firstaltcolor}" align="left"
Only thing it is it doesn't work for announcements cell, you have to edit that cell too to get it working.
*If you see bgcolor="#SOMENUMBER" put firstaltcolor there.
Arsenik
01-29-2002, 01:50 AM
heres an other version
http://www.vbulletin.com/forum/showthread.php?s=&threadid=24664
It sets the mouse over localy but does show you what templates to modify. vb.org now has a template modification section to post these modifications.
https://vborg.vbsupport.ru/forumdisplay.php?s=&forumid=22
JTMON
01-31-2002, 05:19 PM
Thanks, this hack is very nice, how would I hyperlink the cell being hovered over to the actuall link in the cell?
XiXora
01-31-2002, 06:02 PM
typo =/ ne way u can do this i think {firstaltcolor}
Hi,
I know how much you guys hate newbies, but here goes.
I've tried modding every single part of VBB to get this to work, with no luck.
I suspect I'm adding it to the wrong 'head' part, can anyone explain in a little more detail? In which <head> tags where should the code be inserted?
Steve Machol
01-31-2002, 06:53 PM
That would be the 'headinclude' template. And no, we don't hate you! ;)
Damn, not working. Shame, it's an excellent hack. Had a look in headinclude, there's no <head> tags in there, looked everywhere else with so much as half a head tag, no luck there either. I'm off to play GT3, if anyone figures this out (or gets it working) post below!
Steve Machol
01-31-2002, 10:05 PM
There are no head tags in headinclude, but that is the template that is inserted into <head></head> by the script.
Smachol, you're a genius, thanks a million. I'm off to get cellhover working, god damn it, and I won't stop until those cells blink on and off..
(hums a-team theme tune)
Steve Machol
01-31-2002, 10:30 PM
No problem! :)
JTMON
02-01-2002, 04:43 PM
STEVE!!! :)
Would you know how I could link the cellover to the actual link inside that cell? please..please..please..please..please..please..pl ease..please..please.. :D
Steve Machol
02-01-2002, 04:54 PM
I wish I did, but no. Sorry! I don't use this effect myself and was only passing through to help with the <head> thing.
Originally posted by JTMON
STEVE!!! :)
Would you know how I could link the cellover to the actual link inside that cell? please..please..please..please..please..please..pl ease..please..please.. :D You need to add onclick functionality. Add something like this to the <td>:onclick="window.location.href='forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]'The url in the onlclick should mimic the url for the link in the cell.
JTMON
02-01-2002, 05:59 PM
Well, I tried that FWC but it actually removed my links, both when putting it in the <td onmouseover and by itself.
Originally posted by JTMON
Well, I tried that FWC but it actually removed my links, both when putting it in the <td onmouseover and by itself. It works on my board and has for months. This template mod (with onclick functionality) was released several months ago on vb.com. Here is the thread. There are a couple colors that are backward, and you don't want the onclick on the replies box because it breaks the javascript. But, it gives you the color change on hover with onclick.
http://www.vbulletin.com/forum/showthread.php?threadid=24664
JTMON
02-01-2002, 08:46 PM
I did see that, and there is another one posted there that I am now using as it seems much simpler then the one you posted.
It's here:
http://www.vbulletin.com/forum/showthread.php?threadid=38735
The only thing is it only links the cells on the front forum home, not in the threadlist though. When I try adding the same code to forumdisplaybit, the mouseover works but the link does not, and also the font changes for some reason.
JTMON
02-01-2002, 08:55 PM
By the way, Mods, Email notification seems to have stopped working for me for some reason.
Originally posted by JTMON
The only thing is it only links the cells on the front forum home, not in the threadlist though. When I try adding the same code to forumdisplaybit, the mouseover works but the link does not, and also the font changes for some reason. The code from the older hack works on forumdisplay. Simpler does not necessarily mean better. :)
JTMON
02-02-2002, 06:34 PM
True, but I got it, here's the link for anyone else.
http://vbulletin.com/forum/showthread.php?s=&threadid=38735
Ember
02-14-2003, 09:03 AM
Nice modification, I just added it... I didnt want the one where you can click the cells, so this is ideal :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.