![]() |
rollover buttons
Hey all,
I have been trying to code some rollover buttons on my forum but something seems to go wrong, can you help me figure out what exactly? In headeInclude: Code:
<script type="text/javascript"> Code:
<td width="100%" height="33" align="left" valign="top" style="background-image:url($stylevar[imgdir_misc]/xnav.gif)"><table width="100%" border="0" cellpadding="0" cellspacing="0"> |
Rollovers work like this..
Code:
<script type="text/JavaScript"> |
http://chrispoole.com/scripts/javasc...mage-rollover/
This works great for me in the past. Up the js file(possibly to your clientscript directory). Then add PHP Code:
|
Wouldn't CSS be an easier and less resource-consuming alternative? Seems like a LOT of code just for rollover images.
|
1 Attachment(s)
Try this instead. It is an old vB 2 hack but works great to this day.
|
Quote:
EDIT: Only works on vbadvanced homepage ............ any ideas ? EDIT AGAIN: Added code to the bottom of forumhome is now working there also. |
Quote:
Quote:
ta anyone ??? |
gee thanks...
|
As Aken has stated, why not use CSS to manage these things, the images can automatically preload as well.
|
Thank you X! :)
|
All times are GMT. The time now is 08:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|