Reply
Site pushes to the right on loading
Old 06-10-2007, 02:10 PM Site pushes to the right on loading
Skilled Talker

Posts: 99
I have the site looking exactly as i want it, but the loading is really annoying (for Firefox). I included the whole thing in an echo for a marquee i wanted in the layout at the lower portion. If I just use <?php include('marquee.php'); echo $newsticker; ?> instead of adding the entire thing as a echo it makes it load even worse!! what can i do to stop this... www.elitenation.org is my site

layout.php is this:

Code:
<?php
include('config.php');
include('marquee.php');

echo "

<HTML>
  <head>
   <title>&laquo; Clan Elite Nation &raquo;</title>
   <link rel='stylesheet' type='text/css' href='style.css'>
   <script language='javascript' type='text/javascript'>
    <!--
    var win=null;
    function NewWindow(mypage,myname,w,h,scroll,pos){
    if(pos=='random'){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos=='center'){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
    else if((pos!='center' && pos!='random') || pos==null){LeftPosition=0;TopPosition=20}
    settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
    win=window.open(mypage,myname,settings);}
    // -->
   </script>
   <script type='text/javascript' src='js/overlib.js'><!-- overLIB (c) Erik Bosrup --></script>
<script language='JavaScript' type='text/javascript'>
<!-- Copyright 2005, Sandeep Gangadharan -->
<!--
function openClose(theID) {
 if (document.getElementById(theID).style.display == 'block') { document.getElementById(theID).style.display = 'none' }
 else { document.getElementById(theID).style.display = 'block' } }
// -->
</script>
<script language='JavaScript' type='text/javascript'>
if(document.getElementById) {
var getRefById = function(id) {
return document.getElementById(id);
};
} else if(document.all) {
var getRefById = function(id) {
return document.all[id];
};
} else {
var getRefById = function() {
return null;
};
}

function insertText(str) {
var e = getRefById('test'), s = null, r = null;

if(e) {
if((s = document.selection) && s.createRange) {
var repos = false;

/* Element must have focus otherwise text
* will be written into other elements. */
e.focus();
if((r = s.createRange())) {
if(r.text.length) {repos = true;}
r.text = str;
/* Clear the selection to stop continuous
* overwriting of inserted text. */
if(repos && s.empty) {s.empty();}
}
} else {
e.value += str;
}
}
}
</script>
  </head>
  
<BODY ONCONTEXTMENU='return false' LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<br>
<table width='900' border='0' cellspacing='0' cellpadding='0' align='center'>
  <tr>
    <td><img src='images/layout/header.jpg' width='900'></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width=900 border=0 cellpadding=0 cellspacing=0 align='center'>
    <tr>
        <td width='140' valign='top'>
            <table width=100% border=0 cellpadding=0 cellspacing=0 align='center'>
            
                <tr>
                    <td background=images/layout/menu_01.png width=100% width=100% height=19 class='main'>
                        <div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000033'>.:. Vote For Us .:.</font> </div>
                    </td>
                    
                </tr>
                <tr>
                    <td class='small' background=images/layout/menu_02.png>
                        <center><a href='http://www.gamesites200.com/starcraft/in.php?id=16' target='_blank'><img src='images/layout/vote.jpg' alt='Vote on the StarCraft Top 200' width='88' height='31' border='0'></a>
                        </center>
                    </td>
                </tr>
                <tr>
                    <td background=images/layout/menu_03.png width=100% height=4 class='main'>
                        
                    </td>
                    
                </tr>
                <tr><td><br></td></tr>
                <tr>
                    <td background=images/layout/menu_01.png width=100% height=19  class='main'>
                        <div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000033'>.:. Navigation .:.</font> </div>
                    </td>

                </tr>
                <tr>
                    <td class='small' background=images/layout/menu_02.png>
                         &nbsp;&raquo; <a href='index.php'>Home</a><br>
                         &nbsp;&raquo; <a href='index.php?p=News'>Public News</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Members'>Members</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Diplomacy'>Diplomacy</a><br>
                         &nbsp;&raquo; <a href='index.php?p=History'>History</a><br>
                         &nbsp;&raquo; <a href='index.php?p=HallofFame'>Hall of Fame</a><br>
                         &nbsp;&raquo; <a href='index.php?p=HonorableMention'>Honorable Mention</a><br>
                         &nbsp;&raquo; <a href='index.php?p=MOM'>MOTM</a><br>
                         &nbsp;&raquo; <a href='index.php?p=GMOM'>MOTM Generals</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Squads'>Squads</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Tournaments'>Tournaments</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Calendar'>Calendar</a><br>
                         &nbsp;&raquo; <a href='http://forums.elitenation.net' target='_blank'>Enter Forum</a><br>
                         &nbsp;&raquo; <a href='index.php?p=Donate'>Donate</a><br>
                    </td>
                </tr>
                <tr>
                    <td background=images/layout/menu_03.png width=100% height=4 class='main'>
                        
                    </td>
                    
                </tr>
                <tr><td><br></td></tr>
                <tr>
                    <td background=images/layout/menu_01.png width=100% height=19 class='main'>
                        <div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000033'>.:. Members .:.</font> </div>
                    </td>
                    
                </tr>
                <tr>
                    <td class='small' background=images/layout/menu_02.png>
                        &nbsp;&raquo; <a href='console.php'>Console</a><br>
                        &nbsp;&raquo; <a href='index.php?p=Ranks'>Clan Ranks</a><br>
                        &nbsp;&raquo; <a href='index.php?p=Duties'>Rank Duties</a><br>
                        &nbsp;&raquo; <a href='index.php?p=Rules'>Clan Protocol</a><br>
                        &nbsp;&raquo; <a href='index.php?p=TopMembers'>Top Recruiters</a><br>
                        &nbsp;&raquo; <a href='index.php?p=AllRecruiters'>All Recruiters</a><br>
                    </td>
                </tr>
                <tr>
                    <td background=images/layout/menu_03.png width=100% height=4 class='main'>
                        
                    </td>
                    
                </tr>
                <tr><td><br></td></tr>
                <tr>
                    <td background=images/layout/menu_01.png width=100% height=19 class='main'>
                        <div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1' color='#000033'>.:. Statistics .:.</font> </div>
                    </td>
                    
                </tr>
                <tr>
                    <td class='small' background=images/layout/menu_02.png>
                        &nbsp;&raquo; <a href='index.php?p=Days'>Days</a><br>
                        &nbsp;&raquo; <a href='index.php?p=IAMembers'>IA Members</a><br>
                        &nbsp;&raquo; <a href='index.php?p=IARequest'>IA Requests</a><br>
                        &nbsp;&raquo; <a href='index.php?p=FormerMembers'>Former Members</a><br>
                        &nbsp;&raquo; <a href='index.php?p=Donors'>Donors</a><br>
                    </td>
                </tr>
                <tr>
                    <td background=images/layout/menu_03.png width=100% height=4 class='main'></td>
                    
                </tr>
                
            </table>
        </td>
        <td width='10' valign='Top'>&nbsp;</td>
        <td width='600' valign='Top' background=images/layout/menu_05.png>
            <table width=100% border=0 cellpadding=0 cellspacing=0 align='center'>
                <tr> 
                  <td background=images/layout/menu_04.png width=100% height=18 Valign=middle> 
                    <div align='center' width='598'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'>
<marquee direction='left' scrollamount='3'><b>$newsticker</b></marquee>
                    </font></div>
                  </td>
                </tr>
            </table>

";
?>
Arez20469 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-11-2007, 10:31 AM Re: Site pushes to the right on loading
aithne's Avatar
Average Talker

Posts: 29
Name: Mary
Location: Oklahoma City, OK
what do you mean when you say pushes to the right in Firefox? I'm on a Mac with Firefox and it looks to be loading in the center to me.
aithne is offline
Reply With Quote
View Public Profile Visit aithne's homepage!
 
Old 06-11-2007, 12:01 PM Re: Site pushes to the right on loading
Junior Talker

Posts: 4
It looks fine to me. Everything loads center
__________________
Chris

The Ultimate Guide on How To Save Money!
FFEMTcJ is offline
Reply With Quote
View Public Profile Visit FFEMTcJ's homepage!
 
Old 06-12-2007, 06:02 AM Re: Site pushes to the right on loading
HighVoltage123's Avatar
Ultra Talker

Posts: 263
yeah... it looks fine with Firefox and IE7...
HighVoltage123 is offline
Reply With Quote
View Public Profile Visit HighVoltage123's homepage!
 
Old 06-12-2007, 12:48 PM Re: Site pushes to the right on loading
Skilled Talker

Posts: 99
Well, what I mean is, while the page is loading the table breaks @ the right of the page. I wanted everything to load neatly inside the box and not have anything break... But as is, everytime someone loads a page, it will break at the right for a short time which will be really annoying (in FireFox, im using 2.0.0.4)
Arez20469 is offline
Reply With Quote
View Public Profile
 
Old 06-14-2007, 11:26 AM Re: Site pushes to the right on loading
aithne's Avatar
Average Talker

Posts: 29
Name: Mary
Location: Oklahoma City, OK
Can you try and get a screen shot of what you are talking about? I am watching your site closely as it loads and not seeing anything breaking to the right.
aithne is offline
Reply With Quote
View Public Profile Visit aithne's homepage!
 
Old 06-14-2007, 01:27 PM Re: Site pushes to the right on loading
Skilled Talker

Posts: 99
http://img265.imageshack.us/img265/776/herege7.jpg and http://img266.imageshack.us/img266/4961/here2gq3.jpg shows what I'm seeing every time a page is loading
Arez20469 is offline
Reply With Quote
View Public Profile
 
Old 06-15-2007, 10:05 AM Re: Site pushes to the right on loading
HighVoltage123's Avatar
Ultra Talker

Posts: 263
that's odd - only the index page looks good and every other page I try to open is completely messed up in FF in IE7 everything looks great even when is loading...
HighVoltage123 is offline
Reply With Quote
View Public Profile Visit HighVoltage123's homepage!
 
Reply     « Reply to Site pushes to the right on loading
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14187 seconds with 12 queries