Avatar billede ramsings.dk Nybegynder
08. august 2013 - 20:11 Der er 1 kommentar og
1 løsning

reload page hurtigt

>Hej ;-) 
Jeg har en side der reloader for langsomt, (efter 20 sec.)
Men jeg kan ikke finde hvor i koden jeg ændre det...
Sidens kode:

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="12; url=http://www.ramsings.dk/hovedside.html">
<meta name="GENERATOR" content="Mozilla/4.6 [en] (Win95; I) [Netscape]">
<title>startgif</title>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j];
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    if (ns4)
        document.MM_Time[0][0].obj = document["Layer1"];
    else if (ns5)
        document.MM_Time[0][0].obj = document.getElementById("Layer1");
    else
        document.MM_Time[0][0].obj = document.all ? document.all["Layer1"] : null;
    document.MM_Time[0][0].keyFrames = new Array(1, 6, 12, 20, 25);
    document.MM_Time[0][0].values = new Array(2);
    if (ns5)
        document.MM_Time[0][0].values[0] = new Array("753px", "751px", "749px", "747px", "743px", "737px", "730px", "723px", "714px", "704px", "693px", "679px", "667px", "654px", "641px", "627px", "613px", "599px", "585px", "571px", "551px", "531px", "513px", "494px", "475px");
    else
        document.MM_Time[0][0].values[0] = new Array(753,751,749,747,743,737,730,723,714,704,693,679,667,654,641,627,613,599,585,571,551,531,513,494,475);
    document.MM_Time[0][0].values[0].prop = "left";
    if (ns5)
        document.MM_Time[0][0].values[1] = new Array("11px", "25px", "39px", "53px", "67px", "82px", "96px", "110px", "124px", "138px", "152px", "164px", "172px", "180px", "186px", "193px", "198px", "203px", "207px", "211px", "214px", "216px", "216px", "215px", "215px");
    else
        document.MM_Time[0][0].values[1] = new Array(11,25,39,53,67,82,96,110,124,138,152,164,172,180,186,193,198,203,207,211,214,216,216,215,215);
    document.MM_Time[0][0].values[1].prop = "top";
    if (!ns4) {
        document.MM_Time[0][0].values[0].prop2 = "style";
        document.MM_Time[0][0].values[1].prop2 = "style";
    }
    document.MM_Time[0].lastFrame = 15;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" onLoad="MM_timelinePlay('Timeline1')">
<Bgsound Src=start.mid> <a href="MegaWeb/indexside.htm"><img src="k2.gif" width="30" height="30" border="0"></a><br>
&nbsp;
<br>&nbsp;
<br>
<br>
<center>
  <p>&nbsp;
  <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 753px; top: 11px"><img src="aniram.gif" width="344" height="232"></div>
</center>

</body>
</html>
Avatar billede keysersoze Guru
08. august 2013 - 21:25 #1
<meta http-equiv="refresh" content="12; url=http://www.ramsings.dk/hovedside.html">

Sæt et højere tal.
Avatar billede keysersoze Guru
08. august 2013 - 21:25 #2
og det skal selvfølgelig være et lavere tal...
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester