+ Reply to Thread
Results 1 to 5 of 5

Thread: Page loading slow..

  1. #1
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Page loading slow..

    I have an html file
    with the following code:
    Code:
        <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org">
    <title>Template3</title>
    
    <style type="text/css">
    body {
    margin : 3px;
    padding : 3px;
    background-color : #6dcafe ;
    background: url(Images/b-g.png);
    background-repeat: repeat-x;
    } 
    </style>
    
    <script language="JavaScript" type="text/javascript">
    <!--
    function FP_swapImg() {
     var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
     n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
     elm.$src=elm.src; elm.src=args[n+1]; } }
    }
    
    function FP_getObjectByID(id,o) {
     var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
     else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
     if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
     for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
     f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
     for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
     return null;
    }
    // -->
    </script>
    <style type="text/css">
     div.c11 {position: absolute; width: 1019px; height: 73px; z-index: 3; left: 0px; top: 0px}
     div.c10 {position: absolute; width: 383px; height: 52px; z-index: 4; left: 39px; top: 24px}
     span.c9 {color: #FFFFFF; font-size: larger}
     div.c8 {position: absolute; width: 637px; height: 310px; z-index: 1; left: 150px; top: 120px}
     div.c7 {position: absolute; width: 1010px; height: 31px; z-index: 1; left: -214px; top: 623px}
     div.c6 {position: absolute; width: 278px; height: 26px; z-index: 1; left: 372px; top: 10px}
     span.c5 {color: #FFFFFF}
     span.c4 {font-family: Times New Roman}
     div.c3 {position: absolute; width: 186px; height: 282px; z-index: 1; left: -349px; top: -605px}
     div.c2 {position: absolute; width: 100px; height: 100px; z-index: 1; left: 895px; top: 0px}
     div.c1 {position: absolute; width: 180px; height: 100px; z-index: 1; left: -641px; top: 0px}
    </style>
    </head>
    <body>
    <div class="c10" id="layer4">
    <div class="c8" id="layer5">
    <div class="c7" id="layer6">
    <div class="c6" id="layer7">
    <div class="c3" id="layer8">
    <div class="c2" id="layer9">
    <div class="c1" id="layer10">Content goes here...</div>
    <img border="0" src="Images/right.png" width="140" height="350" alt=""></div>
    <img border="0" src="Images/left.png" width="139" height="356" alt=""></div>
    <strong><span class="c5">Copyright <span class="c4"> 2009 Your webpage*</span></span></strong></div>
    <img border="0" src="Images/end-bar.png" width="1044" height="36" alt=""></div>
    <img border="0" src="Images/canv.png" width="627" height="395" alt=""></div>
    <span class="c9">Logo goes here...</span></div>
    <div class="c11" id="layer3"><img border="0" src="Images/navbig.png" width="497" height="97" alt=""><img border="0" src="Images/toolbarleft.png" width="77" height="97" alt=""><img border="0" id="img1" src="Images/Tabs/home1.png" alt="Home" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'Images/Tabs/home2.png')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'Images/Tabs/home1.png')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'Images/Tabs/home1.png')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'Images/Tabs/home2.png')" name="img1"><img border="0" id="img2" src="Images/Tabs/down1.png" alt="Downloads" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'Images/Tabs/down2.png')" onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'Images/Tabs/down1.png')" onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'Images/Tabs/down1.png')" onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'Images/Tabs/down2.png')" name="img2"><img border="0" id="img3" src="Images/Tabs/extras1.png" alt="Extras" onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'Images/Tabs/extras2.png')" onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'Images/Tabs/extras1.png')" onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'Images/Tabs/extras1.png')" onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'Images/Tabs/extras2.png')" name="img3"><img border="0" id="img4" src="Images/Tabs/blog1.png" alt="Blog" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'Images/Tabs/blog2.png')" onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'Images/Tabs/blog1.png')" onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'Images/Tabs/blog1.png')" onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'Images/Tabs/blog2.png')" name="img4"><img border="0" id="img5" src="Images/Tabs/login1.png" alt="Login" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'Images/Tabs/login2.png')" onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'Images/Tabs/login1.png')" onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'Images/Tabs/login1.png')" onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'Images/Tabs/login2.png')" name="img5"><img border="0" src="Images/toolbarright.png" width="45" height="97" alt=""></div>
    </body>
    </html>
    It works fine in ff but takes an hour to load in IE; even when it's located on my own computer! I cant figure out the problem.
    Can anyone help me to?

    The on who does will receive a rep from me....
    Edit:
    I did a w3 check; but dint find anything.......
    Last edited by Teensweb; 02-17-2009 at 03:30 AM. Reason: Automerged Doublepost

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Page loading slow..

    Everything looks OK to me. I loaded this file and ran it on my computer and it worked fine in FF3 and IE7
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: Page loading slow..

    it loads in a flash in ff3 but in IE........ the images are taking too long

  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Page loading slow..

    preload the images?
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  5. #5
    Teensweb is offline x10 Lieutenant Teensweb is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    352

    Re: Page loading slow..

    Works fine after I uploaded it on my server

+ Reply to Thread

Similar Threads

  1. Joomla Site Not Loading (Blank Page)
    By Eclipse4 in forum Free Hosting
    Replies: 1
    Last Post: 08-26-2008, 10:25 PM
  2. Loading a Blank Page
    By .algx. maX in forum Free Hosting
    Replies: 3
    Last Post: 03-07-2008, 01:22 AM
  3. Problem Loading Page
    By Chaad in forum Free Hosting
    Replies: 2
    Last Post: 03-05-2008, 12:00 PM
  4. Error on loading the New Home Page
    By Ascker in forum Free Hosting
    Replies: 4
    Last Post: 02-23-2008, 08:24 AM
  5. Problem Loading Page
    By soyokaze in forum Free Hosting
    Replies: 1
    Last Post: 11-06-2007, 08:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers