PDA

View Full Version : popup menu open event replacing


Asgoth
11-07-2008, 12:35 AM
Good DAy!

I have adv_portal_navigation module with next code:

<tr>
<td>
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<td align="center" class="tcat"><span class="smallfont" style="color: #bbff00"><strong>$vba_options[portal_blockbullet] $mods[title]</span></strong></td></tr>

<tr><td id="usercptools" class="vbmenu_control">
<strong>
<span id="warhammer_online">
<a href="#warhammer_online">Warhammer Online</a>
</span>
</strong>
<script type="text/javascript">
vbmenu_register("warhammer_online");
</script>
</td></tr>

<if condition="$show['admincplink']"><tr class="alt2">
<td class="tcat" align="left" style="border-top: 1px solid; border-bottom: 1px solid;"><span id="other"> <div class="smallfont">
<strong><a href="$admincpdir/" arget="_blank">$vbphrase[admin]</a></strong></div></span></td></tr></if>

</td></tr></table>


<!-- Menus / -->
<!-- Warhammer Online Menu Start -->
<div class="vbmenu_popup" id="warhammer_online_menu" style="display:none;
margin-left:154px;
margin-top: -18px;
border-style: solid;
border-width: 1px;
border: 1px 0px 1px 0px;">
<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0">
<tr><td class="thead">Warhammer Online</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/index.php?pageid=bod">Black Ork Down</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/guild-application-warhammer/">Guild App</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/index.php?pageid=liveroster">Guild Roster</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/black-ork-down/">Guild Forum</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/index.php?pageid=guildladder">Guild Ladder</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.wpgamers.com/project.php?projectid=1">Bugs / Requests</a></td></tr>
</table></div>
<!-- / Warhammer Online end -->

<!-- Other End / -->

Does anybody know how I can change popup submenu show event from main_menu_item onclick() to onmouseover()?

eJM
11-07-2008, 03:26 AM
Apparently you are unfamiliar with the BBCode used in vBulletin forums. This is the second post you have made using code in the message area. Please put your code between tags. It makes it easier to read. You can also use and tags, depending on the kind of code it is. Most people use just plain .

You can find information about using onmouseover here: http://www.htmlgoodies.com/beyond/javascript/article.php/3470771 There are many other articles available by using Google to search for using onclick and onmouseover: http://www.google.com/search?hl=en&rlz=1T4GZAZ_enUS227US228&q=using+onclick+and+onmouseover&btnG=Search

You should not use the underscore character in id's or classes in CSS. Use the hyphen instead.

R'gards,

Jim

Our Sponsors
 

Asgoth
11-07-2008, 07:16 AM
You don't understand my needs. I have vbulletin forum with vbadvanced and want make menu with popup submenus. My menu use standart vbadvanced functions and classes and, therefore, i can't use onclick events manually for popup menu set visible (because I don't know what functions using for this and where they are placed). And I don't know how I can replace onclick method by onmouseover. Can anybody help me?

eJM
11-07-2008, 08:03 AM
I DO understand your needs. I provided you information that would help you learn how to do what you want. I do not know how to do it myself. But in addition to my assistance, I asked you to stop posting code in the open message area. Most webmasters know how that works. Editing your previous messages to put your code between code tags would indicate that you have a little consideration for your fellow forum members.

I then gave you a tip to help you with your CSS - something I DO know a little about.

Take what you like and leave the rest.

Jim