Avatar billede jjensen Juniormester
25. juni 2001 - 13:48 Der er 10 kommentarer og
1 løsning

Fejl på siden...

Kan nogen hjælpe mig med at finde ud af hvad der er galt med venstre menuen på denne side http://www.global-gateway.com/callback-index2.htm ?

Jeg forstår heller ikke rigtig hvorfor verdensuret ikke passer?
Avatar billede jjensen Juniormester
25. juni 2001 - 13:49 #1
Koden kommer lige her:

<html><head><title>Global Gateway - Billig Telefoni!</title><BASE HREF=\"http://www.global-gateway.com\">
<!doctype html public \"-//w3c//dtd html 4.0 transitional//en\">

<script>function popUp()
{
window.open(\"http://telcan.net/TriggerCall/TriggerCall.asp\", target=\"_blank\", \"width=430, height=300, left=0, top=0\");
}
</script>


<script language=javaScript>

<!-- Beginning of JavaScript -

// CONFIGURATION:
// 1.    Delete the DIV-block with the id \"deletethisblock\". You don\'t need it.
// 2.     Add new capitals inside the head-section of the script.
// 3.  Configure the variables below this line

// Below you can add or delete new locations. The digital value after the
// name of the capitals shows the difference to GMT-time.
var worldtime = new Array()
worldtime[0]=\"Azores,-2\"
worldtime[1]=\"Baghdad,3\"
worldtime[2]=\"Beijing,8\"
worldtime[3]=\"Berlin,2\"
worldtime[4]=\"Buenos Aires,-3\"
worldtime[5]=\"Copenhagen,1\"
worldtime[6]=\"Chicago,-6\"
worldtime[7]=\"Denver,-7\"
worldtime[8]=\"Hong Kong,8\"
worldtime[9]=\"Honolulu,-10\"
worldtime[10]=\"Johannesburg,2\"
worldtime[11]=\"Kairo,2\"
worldtime[12]=\"Lima,-5\"
worldtime[13]=\"London,0\"
worldtime[14]=\"Mexico City,-6\"
worldtime[15]=\"Moscow,3\"
worldtime[16]=\"New York,-5\"
worldtime[17]=\"Paris,1\"
worldtime[18]=\"Perth,8\"
worldtime[19]=\"Rio de Janeiro,-3\"
worldtime[20]=\"San Francisco,-8\"
worldtime[21]=\"Sydney,11\"
worldtime[22]=\"Tokyo,9\"

// The speed of the ticker (milliseconds)
var speed=140

// The length of the steps
var step=1

// Do not edit the variables below
var hours
var shifthours
var minutes
var seconds
var localhours
var thisplace
var i_substring=0

var content

function extracttime() {
content=\" ------ \"
for (i=0;i<=worldtime.length-1;i++) {
    thisplace=worldtime[i].split(\",\")
    thistime= new Date()
    hours=thistime.getUTCHours()
    hours=eval(hours)
    shifthours=eval(thisplace[1])
    localhours=eval(shifthours+hours)
    if (localhours <0) {localhours=24+localhours}
    if (localhours >=24) {localhours=localhours-24}
   
    minutes=thistime.getUTCMinutes()
    seconds=thistime.getUTCSeconds()
   
    if (thisplace[0]==\'Delhi\') {
        minutes=eval(minutes+30)
        if (minutes>=60) {
            minutes=eval(minutes-60)
            localhours=eval(localhours+1)
        }
    }
    if (eval(minutes) < 10) {minutes=\"0\"+minutes}
    if (eval(seconds) < 10) {seconds=\"0\"+seconds}
    if (eval(localhours) < 10) {localhours=\"0\"+localhours}
    thistime = localhours+\":\"+minutes
    content+=\" ------ \"+thisplace[0]+\": \"+thistime
    }
    content+=\" ------ \"
    scrolltime()
}

function scrolltime() {
    if (i_substring<=content.length-1) {
        window.status=content.substring(i_substring,content.length-1)
        i_substring=i_substring+step
        var timer=setTimeout(\"extracttime()\",speed)
    }
    else {
        i_substring=0
        clearTimeout(timer)
        extracttime()
    }
}

// - End of JavaScript - -->
</script>



<SCRIPT language=\"JavaScript\">
<!--

function BookmarkMe () {
window.external.AddFavorite(\'http://www.global-gateway.com/callback-index2.htm\', document.title);
}

//-->
</script


</head><BODY background=\"backgr/backgrdk.gif\" bgcolor=\"#FFFFFF\"
text=\"#000000\" link=\"#0000FF\" vlink=\"#800080\" alink=\"#FF0000\"
bgproperties=\"fixed\" onLoad=\"extracttime();startscroll();\">
<meta name=\"Author\" content=\"John Jensen\">
<meta name=\"GENERATOR\" content=\"Mozilla/4.5 [en] (Win98; I) [Netscape]\">


<script language=\"JavaScript\">
                    <!-- // Begin hiding from old browsers



                    // (Rightclick:) This section disables right click in MSIE and Netscape
                    function right(evnt) {
                    if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null) {
                    if (evnt.which >= 2){
                    alert(\"Sorry this function is disabled\");
                    return false;
                    }
                    }
                    else
                    if (event.button>=2)
                    alert(\"Sorry this function is disabled\");
                    }
                    document.onmousedown=right;
                    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
                    window.onmousedown=right;
                    // (Resize:) End rightclick disable section

                    // End hiding -->
                    </script> 


<SCRIPT>
var active = \"\";

var imagesOff = new ImageArray(7);
imagesOff[1].src = \"http://www.global-gateway.com/buttons/dtakster.gif\";
imagesOff[2].src = \"http://www.global-gateway.com/buttons/dfaq.gif\";
imagesOff[3].src = \"http://www.global-gateway.com/buttons/dgenerel.gif\";
imagesOff[4].src = \"http://www.global-gateway.com/buttons/tilmeld.gif\";
imagesOff[5].src = \"http://www.global-gateway.com/buttons/kontakt.gif\";
imagesOff[6].src = \"http://www.global-gateway.com/buttons/links.gif\";
imagesOff[7].src = \"http://www.global-gateway.com/buttons/dhjem.gif\";

var imagesOn = new ImageArray(7);
imagesOn[1].src =
\"http://www.global-gateway.com/buttons/onmouse/dtaksteron.gif\";
imagesOn[2].src =
\"http://www.global-gateway.com/buttons/onmouse/dfaqon.gif\";
imagesOn[3].src =
\"http://www.global-gateway.com/buttons/onmouse/dgenerelon.gif\";
imagesOn[4].src =
\"http://www.global-gateway.com/buttons/onmouse/tilmeldon.gif\";
imagesOn[5].src =
\"http://www.global-gateway.com/buttons/onmouse/kontakton.gif\";
imagesOn[6].src =
\"http://www.global-gateway.com/buttons/onmouse/linkson.gif\";
imagesOn[7].src =
\"http://www.global-gateway.com/buttons/onmouse/dhjemon.gif\";

var imagesAct = new ImageArray(7);
imagesAct[1].src =
\"http://www.global-gateway.com/buttons/onmouse/dtaksteract.gif\";
imagesAct[2].src =
\"http://www.global-gateway.com/buttons/onmouse/dfaqact.gif\";
imagesAct[3].src =
\"http://www.global-gateway.com/buttons/onmouse/dgenerelact.gif\";
imagesAct[4].src =
\"http://www.global-gateway.com/buttons/onmouse/tilmeldact.gif\";
imagesAct[5].src =
\"http://www.global-gateway.com/buttons/onmouse/kontaktact.gif\";
imagesAct[6].src =
\"http://www.global-gateway.com/buttons/onmouse/linksact.gif\";
imagesAct[7].src =
\"http://www.global-gateway.com/buttons/onmouse/dhjemact.gif\";

function ImageArray( size ) {
if (size+\"\" == \"undefined\" || size == null)
  return null;
this.length = size;
for (var i = 1; i <= size; i++) {
  this[i] = new Image();
}
return this;
}

function mouIn(num) {
  if (document.images) {
    if (num != active) {
      img = eval(\'document.images[\"img\'+num+\'\"]\');
      img.src = imagesOn[num].src;
    }
  }
}

function mouOut() {
  if (document.images) {
    for ( var i=1; i<=7; i++ ) {
      if ( i != active ) {
        img = eval(\'document.images[\"img\'+i+\'\"]\');
        img.src = imagesOff[i].src;
      }
    }
  }
}


function setActive(num) {
  active = num;
  if (document.images) {
    img = eval(\'document.images[\"img\'+num+\'\"]\');
    img.src = imagesAct[num].src;
  }
  mouOut();
}
</SCRIPT>


<!--

//-->
<a href=\"http://www.global-gateway.com/rates/takster.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(1)\"
onMouseover=\"mouIn(1)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/dtakster.gif\" name=\"img1\"
ALT=\"Let oversigt over vor udbydere...\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/dfaq.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(2)\"
onMouseover=\"mouIn(2)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/dfaq.gif\" name=\"img2\"
ALT=\"Ofte Stillede Spørgsmål...\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/dgenerel.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(3)\"
onMouseover=\"mouIn(3)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/dgenerel.gif\" name=\"img3\"
ALT=\"Læs om betaling etc...\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/download.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(4)\"
onMouseover=\"mouIn(4)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/tilmeld.gif\" name=\"img4\"
ALT=\"Start med at spare hurtigt...\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/kontakt.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(5)\"
onMouseover=\"mouIn(5)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/kontakt.gif\" name=\"img5\"
ALT=\"Spørgsmål...?\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/dklinks.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(6)\"
onMouseover=\"mouIn(6)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/links.gif\" name=\"img6\"
ALT=\"Nyttige og Sjove links...\" BORDER=0 height=27 width=144></a><br>

<a href=\"http://www.global-gateway.com/dskaerm.htm\" target=\"dskaerm.htm\"
onClick=\"setActive(7)\"
onMouseover=\"mouIn(7)\"
onMouseout=\"mouOut()\">
<img src=\"http://www.global-gateway.com/buttons/dhjem.gif\" name=\"img7\"
ALT=\"Til forsiden...\" BORDER=0 height=27 width=144></a><br>

<center>


<small>
<FORM ACTION=\"http://www.global-gateway.com/takforbesked.php\" target=\"dskaerm.htm\" METHOD=\"POST\">
<INPUT TYPE=\"hidden\" NAME=\"subject\" VALUE=\"Global Gateway Kontaktformular\">
<TABLE BORDER=\"0\">
        <TR>
        <TD VALIGN=\"TOP\">
        <FONT FACE=\"Arial\" SIZE=\"2\">
        <center><b>Tip en ven om os:</b></center>
        </FONT></TD>
        </tr>
        <tr>
        <TD VALIGN=\"TOP\" ALIGN=\"center\">
        <INPUT TYPE=\"TEXT\" NAME=\"modtager\" value=\"en@ven.dk\" size=\"14\">
        <INPUT TYPE=\"TEXT\" NAME=\"afsender\" value=\"Dit navn\" size=\"14\">
        <center><input type=\"submit\" value=\"Send\"
border=\"0\" name=\"sub\"></center>

        </TD>
        </TR>

</table>
        </FORM>
</small>

<a href=\"java script:BookmarkMe()\"><font face=\"Arial\" size=\"2\">Klik og gem som foretrukken</a></font>
<br><br>

<a href=\"dmenu.htm\" onClick=\"popUp();\"><font face=\"Arial\" size=\"2\"><b>Kunder
kan aktivere telefonien herfra!</font></b><br></a><font face=\"Arial\" size=\"1\">(Husk at logge af nettet bagefter)</font>


</CENTER>



</BODY>
</HTML>
Avatar billede erikjacobsen Ekspert
25. juni 2001 - 13:55 #2
Du skal bare skrive

window.open(\"http://telcan.net/TriggerCall/TriggerCall.asp\", \"plidderpladder\", \"width=430, height=300, left=0, top=0\");
Avatar billede hirtshals Nybegynder
25. juni 2001 - 13:59 #3
i body tagen

onLoad=\"extracttime();startscroll();\"

skal det være

onLoad=\"extracttime(),startscroll();\"
Avatar billede jjensen Juniormester
25. juni 2001 - 14:03 #4
-> erikjakobsen nok et lidt fjollet spørgsmål -  gør \"plidderpladder\" intet?

-> hirtshals er det problemet med uret?
Avatar billede jjensen Juniormester
25. juni 2001 - 14:12 #5
Har prøvet begge dele nu - men problemet på siden lader ikke til at være løst...
Avatar billede erikjacobsen Ekspert
25. juni 2001 - 14:23 #6
Ja, det var fjollet at skrive. Det er navnet på det nye vindue. Hvis der allerede
er et med det navn, bliver det brugt, ellers laver den en ny.

Men ellers er det lidt svært at hjælpe dig, når du ikke siger hvad der er galt.
Og jeg gider ikke prøve at hjælpe dig mere, når du er så fjollet at slå
højreklik fra. Gider simpelthen ikke. Du er velkommen til at glemme mit svar.
Avatar billede hirtshals Nybegynder
25. juni 2001 - 14:32 #7
jjensen >> Du har en fejl i line 128 object expected

Debugging giver flg resultat

onLoad=\"extracttime();startscroll();\"

; afslutter en javascript linje - Derfor skal det være

onLoad=\"extracttime(),startscroll();\"
Avatar billede jjensen Juniormester
25. juni 2001 - 14:55 #8
erikjacobsen >> IE fortæller hvor problemet er, klik evt på \"error\" ikonet i nederste venstre hjørne! - Men det er mindre vigtigt nu, du har \"besluttet\" dig.

Ved næste upload fjerne jeg disable af højreklik - Jeg antog blot at de fleste viste at man sagtens kan læse koden alligvel...

hirtshals >> mener at have rettet det - men får samme fejl stadigvæk!
Avatar billede erikjacobsen Ekspert
25. juni 2001 - 15:09 #9
Selvfølgelig kan jeg læse det. Jeg synes bare det er så fjollet at jeg ikke vil
røre en finger for dem, der synes de har behov for det. Specielt når de vil have
hjælp til at løse et problem. Men tag lige og afvis mit svar, så jeg ikke skylder
dig noget.
Avatar billede jjensen Juniormester
25. juni 2001 - 15:18 #10
>> erikjacobsen - din tone overrasker mig noget - jeg beklager hvis du føler dig forulempeiget af mit spørgsmål!

Tak for tiden du trodsalt har brugt på det :-)
Avatar billede jjensen Juniormester
25. juni 2001 - 22:26 #11
Spørger i nyt spørgsmål igen, da der er sket ændringer på siden...
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