vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [HELP] adding a menu (https://vborg.vbsupport.ru/showthread.php?t=208775)

Lautaro 03-19-2009 08:03 AM

[HELP] adding a menu
 
Hi, I'm trying to add a menu with a Javascript image rollover fading effect in my forum portal, but there's a problem when I add tables / TR's / TD's to the module code..

this is how it looks with a test code:
http://img.gamezeventos.com/images/596357untitled.bmp

and this is the code I used on that module:
Code:

<table CELLPADDING="0" CELLSPACING="0">
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
<tr>
<td>asdasddas</td>
</tr>
</table>

I don't understand why there's all that space between the top of the module and the information the tables contain...

that's not exactly what I want to add but thats not letting me continue adding the meu I want..

So how can I fix this issue?

Lynne 03-19-2009 02:15 PM

I looks like you need to add some alignment to the table cell you are putting the menu links in (the module?) - <td valign="top">

Lautaro 03-19-2009 03:46 PM

I tried everything, and always having the same issue... this is the code I want to put there:

Code:

<link rel="stylesheet" href="./gestyle/portalmenu/style.css" type="text/css" />

<SCRIPT LANGUAGE=JavaScript SRC="./gestyle/portalmenu/JSFX_FadingRollovers.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
    JSFX.Rollover("forums",    "./gestyle/portalmenu/s1.png");
    JSFX.Rollover("muen",  "./gestyle/portalmenu/s2.png");
    JSFX.Rollover("mues",  "./gestyle/portalmenu/s3.png");
    JSFX.Rollover("staff",  "./gestyle/portalmenu/s4.png");
    JSFX.Rollover("arcade",  "./gestyle/portalmenu/s5.png");
//-->
</SCRIPT>

</HEAD>


<table align="center" CELLPADDING="0" CELLSPACING="0">
<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button1"><A HREF="#" onMouseOver="JSFX.fadeIn('forums')" onMouseOut="JSFX.fadeOut('forums')"><img name="forums" class="imgFader" src="./gestyle/portalmenu/s1.png" border="0"></A></TD>

</TR>
<!-- *** END  THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button2"><A HREF="#" onMouseOver="JSFX.fadeIn('muen')" onMouseOut="JSFX.fadeOut('muen')"><img name="muen" class="imgFader" src="./gestyle/portalmenu/s2.png" border="0"></a></TD>
</TR>
<!-- *** END  THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button3"><A HREF="#" onMouseOver="JSFX.fadeIn('mues')" onMouseOut="JSFX.fadeOut('mues')"><img name="mues" class="imgFader" src="./gestyle/portalmenu/s3.png" border="0"></a></TD>
</TR>
<!-- *** END  THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button4"><A HREF="#" onMouseOver="JSFX.fadeIn('staff')" onMouseOut="JSFX.fadeOut('staff')"><img name="staff" class="imgFader" src="./gestyle/portalmenu/s4.png" border="0"></a></TD>
</TR>
<!-- *** END  THE ROLLOVER IMAGE LINK*** -->

<!-- *** START THE ROLLOVER IMAGE LINK*** -->
<TR>
<TD CLASS="button5"><A HREF="#" onMouseOver="JSFX.fadeIn('arcade')" onMouseOut="JSFX.fadeOut('arcade')"><img name="arcade" class="imgFader" src="./gestyle/portalmenu/s5.png" border="0"></a></TD>
</TR>
<!-- *** END  THE ROLLOVER IMAGE LINK*** -->
</table>

With that code I can get to work this menu: http://forum.gamezeventos.com/gestyle/portalmenu/

But im having this problem and can't fix it.. mabe someone knows which is the template name of the portal index so i can just put the code on the template..

Lynne 03-19-2009 03:58 PM

That is just the code to put *in* the module. You need to change the alignment in the box it is in, not in the code you posted above. Is that vBa? You should be posting over there for help with this.

Lautaro 03-19-2009 04:36 PM

Ok, I posted it on vBAdvanced forums and got my problem fixed.
The problem was that i had to remove all the line breaks .. now its fixed..

thanks for your help.


All times are GMT. The time now is 11:47 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
  • Page Generation 0.00931 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete