Main Menu
Articles
- How to install Recent Blog Mod vbulletin
- Changing username colors on vbulletin
- How to remove powered by vBulletin from your vb forum title
- Change the postbit to legacy vbulletin
- Make a mouse over script for your buttons/Navbar
- Make an Image preloader script
- Show number of arcade titles in postbit V3 Arcade
- Random Image/Banner Rotater
| Make a mouse over script for your buttons/Navbar |
|
|
|
|
It is recommended you read this first: Make an image preloader script HTML Code:
<script type="text/javascript"> What this does is get's the target element and changes it's class to the hover class or if it already is the hover class changes it to the normal class. Code:
.nav_hover Add code in those 2 classes as you require. If you need any help then just ask here or make a new topic in the modification questions forum. Code:
<div id="home" onmouseover="changein(this.id); onmouseout="changeout(this.id);" class="nav_normal"><a href="/home.html">Home</a></div> Now to explain; first of all we define the id. The we say when the mouse comes over the div execute the function to change it's class. You may also notice the "this.id" that fetches the id of the div the code is in and uses that as the target. When you move the mouse out again you can see it uses similar code to revert the class back to normal. Then you can see the class which would be the normal class before you put your mouse over it - nav_normal. |





