Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 07-03-2007, 12:15 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, here is the javascript:

HTML Code:
function gotocat(cat)
    {
        switch(cat) 
        {
            //forum tabs
            case 'as':
                //toggle the tabs
                document.getElementById('as').style.display = 'block';
                document.getElementById('gk').style.display = 'none';
                document.getElementById('t').style.display = 'none';
                document.getElementById('ets').style.display = 'none';
                //change the tab-header image
                document.getElementById('kartelesmenu').src = "karteles/as.gif";
                break;
            case 'gk':
                //toggle the tabs
                document.getElementById('as').style.display = 'none';
                document.getElementById('gk').style.display = 'block';
                document.getElementById('t').style.display = 'none';
                document.getElementById('ets').style.display = 'none';
                //change the tab-header image
                document.getElementById('kartelesmenu').src = "karteles/gk.gif";
                break;
            case 't':
                //toggle the tabs
                document.getElementById('as').style.display = 'none';
                document.getElementById('gk').style.display = 'none';
                document.getElementById('t').style.display = 'block';
                document.getElementById('ets').style.display = 'none';
                //change the tab-header image
                document.getElementById('kartelesmenu').src = "karteles/t.gif";
                break;
            case 'ets':
                //toggle the tabs
                document.getElementById('as').style.display = 'none';
                document.getElementById('gk').style.display = 'none';
                document.getElementById('t').style.display = 'none';
                document.getElementById('ets').style.display = 'block';
                //change the tab-header image
                document.getElementById('kartelesmenu').src = "karteles/ets.gif";
                break;
            //top tabs
            case 'ts':
                //toggle the tabs
                document.getElementById('ts').style.display = 'block';
                document.getElementById('sx').style.display = 'none';
                document.getElementById('s').style.display = 'none';
                //change the tab-header image
                document.getElementById('kartelesmenu2').src = "karteles/ts.gif";
                break;
            case 'sx':
                //toggle the tabs
                document.getElementById('ts').style.display = 'none';
                document.getElementById('sx').style.display = 'block';
                document.getElementById('s').style.display = 'none';
                //change the tab-header image
                document.getElementById('kartelesmenu2').src = "karteles/sx.gif";
                break;
            case 's':
                //toggle the tabs
                document.getElementById('ts').style.display = 'none';
                document.getElementById('sx').style.display = 'none';
                document.getElementById('s').style.display = 'block';
                //change the tab-header image
                document.getElementById('kartelesmenu2').src = "karteles/s.gif";
                break;
            default: alert('error');
        }
    
    }
and here is the html (part):

HTML Code:
<table cellpadding="0" cellspacing="0" width="742">

        <tr>
            <td><img src="karteles/ts.gif" usemap="#karteles2" id="kartelesmenu2" border="0" height="40" width="742"></td>
        </tr>
</table>
<table style="border-top:0px;" class="gradient_blue3 border_blue letters_white" id="ts" cellpadding="5" width="742">
        <tr><td>k</td></tr>
</table>
    <table style="border-top:0px;" class="gradient_orange3 border_orange letters_orange" id="sx" cellpadding="5" width="742">
        <tr><td style="padding-top: 0px;" height="1" width="100%"></td></tr>

        <tr>
            <td style="padding-top: 0px;" >
                <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_right.png" alt="" class="roundcorners"></td>
                            </tr>
                            <tr>

                                <td class="roundedbody" width="12"></td>
                                <td class="roundedbody" width="90">
                                    <img src="eikonidia/wol.png" alt="" border="0">
                                </td>
                                <td class="roundedbody" align="left">
                                    <h1>
                                        <a href="online.php" rel="nofollow">Συνδεδεμένοι Χρήστες  </a>: 1 (1 μέλη &amp; 0 επισκέπτες)    
                                    </h1>

                                            
                                                <span class="smallfont">
                                                    <em>Ρεκόρ : 533 χρήστες.  στίς 25/06/07 ώρα: 03:12</em><br>
                                                    <!-- BEGIN TEMPLATE: forumhome_loggedinuser -->
<a href="member.php?u=179" rel="nofollow"><font color="#ff0000"><b>Michelle</b></font></a>
<!-- END TEMPLATE: forumhome_loggedinuser -->
                                                </span>
                                    <!-- end logged-in users -->
                                    
                                </td>
                        
                                <td class="roundedbody" width="12"></td>

                            </tr>
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_right.png" alt="" class="roundcorners"></td>
                            </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td style="padding-top: 0px;" width="100%">
                <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_right.png" alt="" class="roundcorners"></td>
                            </tr>
                            <tr>

                                <td class="roundedbody" width="12"></td>
                                <td class="roundedbody" width="90">
                                    <img src="eikonidia/wvt.png" alt="" border="0">
                                </td>
                                <td class="roundedbody" align="left">
                                    <!-- start wvt --><!-- who has visited -->
<h1>
            Οι χρήστες που επισκεφθήκαν το e-steki τις τελευταίες 24 ώρες ήταν:  3
</h1>
<span class="smallfont">

<a rel="nofollow" href="member.php?u=178" title="02:58"><font color="#ff0000"><b>Exposed_Bone</b></font></a>*, <a rel="nofollow" href="member.php?u=179" title="03:40"><font color="#ff0000"><b>Michelle</b></font></a>, <a rel="nofollow" href="member.php?u=304" title="03:17"><span style="font-weight: bold; color: rgb(255, 120, 0);">Petros</span></a>
</span>
<!-- end who has visited -->
                                </td>
                        
                                <td class="roundedbody" width="12"></td>
                            </tr>
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_left.png" alt="" class="roundcorners"></td>

                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_right.png" alt="" class="roundcorners"></td>
                            </tr>
                </table>
            </td>
        </tr>
        
        <tr>
            <td style="padding-top: 0px;" width="100%">
                <table cellpadding="0" cellspacing="0" width="100%">

                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_right.png" alt="" class="roundcorners"></td>
                            </tr>
                            <tr>
                                <td class="roundedbody" width="12"></td>
                                <td class="roundedbody" width="90">
                                    <img src="eikonidia/birthday.png" alt="" border="0">

                                </td>
                                <td class="roundedbody" align="left">
                                    <h1><a href="calendar.php?do=getday&amp;day=2007-07-03&amp;sb=1">Χρόνια πολλά στους:</a></h1>
                                    <span class="smallfont"><!--rlm--><a href="member.php?u=1336">ZEUS</a> <!--rlm-->(23), <!--rlm--><a href="member.php?u=2295">black_feather</a> <!--rlm-->(20)</span>
                                </td>                        
                                <td class="roundedbody" width="12"></td>

                            </tr>
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_right.png" alt="" class="roundcorners"></td>
                            </tr>
                </table>
            </td>
        </tr>

        
    </table>
    <table style="border-top:0px;" class="gradient_green2 border_green letters_green" id="s" cellpadding="5" width="742">
        <tr><td style="padding-top: 0px;" height="1"></td></tr>
        <tr>
            <td style="padding-top: 0px;">
                <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>

                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_top_right.png" alt="" class="roundcorners"></td>
                            </tr>
                            <tr>
                                <td class="roundedbody" width="12"></td>
                                <td class="roundedbody" width="90">
                                    <img src="eikonidia/stats.png" alt="" border="0">
                                </td>
                                <td class="roundedbody" align="left">
                                        <h1>Στατιστικά του e-steki forum </h1>

                                    <span class="smallfont">
                                        Θέματα: <strong>5.382</strong>,
                                        Μηνύματα: <strong>267.281</strong>,
                                        Μέλη: <a href="http://www.exposedbone.uni.cc/forum/memberlist.php"><strong>2.785</strong></a>
                                    
                                        <br> 
                                        Μέσος όρος ηλικίας: 29.22 <br>
                                        Καλωσορίζουμε το νεότερο  μέλος μας: <a href="member.php?u=2966">LasTins</a>

                                    </span>
                                    
                                </td>
                        
                                <td class="roundedbody" width="12"></td>
                            </tr>
                            <tr>
                                <td align="right" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_left.png" alt="" class="roundcorners"></td>
                                <td colspan="2" class="roundedbody" height="12"></td>
                                <td align="left" height="12" valign="bottom" width="12"><img src="layout_graphics/corner_bottom_right.png" alt="" class="roundcorners"></td>
                            </tr>

                </table>
            </td>
        </tr>
    </table>
<map name="karteles2" id="karteles2">
<area shape="rect" coords="25,5,237,33" alt="Τελευταίες συζητήσεις" onclick="gotocat('ts')"  />
<area shape="rect" coords="245,5,340,33" alt="Συνδεδεμένοι χρήστες" onclick="gotocat('sx')"  />
<area shape="rect" coords="350,5,455,33" alt="Στατιστικά" onclick="gotocat('s')"  />
</map>
Sorry for not posting code earlier, I thought it would be very boring for you to go through the whole thing so I thought it was better to describe the problem...

Ι was able to reproduce the same problem with the least possible code so if the above is too boring to scroll through (and I understand that), try the following code, it has the same td problem although the td has a width="100%" attribute. A border has been set on the table so that you can easily see the problem if you just paste it in an html page. Note that the problem only occurs with firefox afaik.

HTML Code:
<table style="display:block" border="1" width="100%">
<tr><td width="100%">test</td></tr>
</table>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:48 AM.


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.04242 seconds
  • Memory Usage 2,343KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete