1. Nachrichten
  2. Forum
    1. Unerledigte Themen
    2. Forenregeln
  3. Spenden
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. camp-firefox.de
  2. teufelchen

Beiträge von teufelchen

  • Javascript und Firefox 1.0.6

    • teufelchen
    • 20. Juli 2005 um 19:10

    Ein kleiner Nachtrag noch! Es funktioniert mit:
    Epiphany 1.6.0, Mozilla 1.7.7, Galeon 1.3.19, Opera 8.01 und IE 6.0
    und das ohne Änderungen vor zunehmen!

    Nur im Firefox gehts nicht!

    teufelchen

  • Javascript und Firefox 1.0.6

    • teufelchen
    • 20. Juli 2005 um 15:54

    Ach ja klar, bitte entschuldige!
    Hier der Code:

    Code
    function ah_clock()
             {
                     var wday = new Array('so','mo','di','mi','do','fr','sa');
                     var monat = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
    
    
                     thedate = new Date();
                     hours = thedate.getHours();
                     minutes = thedate.getMinutes();
                     seconds = thedate.getSeconds(); 
    
                     thedatum = new Date();
                     weekday = thedatum.getDay();
                     day = thedatum.getDate();
                     month = thedatum.getMonth();
                     year = thedatum.getFullYear();
    
                     gif_base = "time/cl_"
                     gif_ext = ".gif"
    
                     pic_hz=Math.round((hours+5)/10-1);
                     pic_he=hours - Math.round((hours+5)/10-1)*10;
                     pic_mz=Math.round((minutes+5)/10-1);
                     pic_me=minutes - Math.round((minutes+5)/10-1)*10;
                     pic_sz=Math.round((seconds+5)/10-1);
                     pic_se=seconds - Math.round((seconds+5)/10-1)*10;
    
                     pic_wd=wday[weekday];
                     pic_d1=(day.toString().substring(0,1));
                     pic_d2=(day.toString().substring(1,2));
    
                     if(pic_d2 == ''){
                         pic_d2 = pic_d1;
                         pic_d1 = '0';
                     }
    
                     //pic_m1=(month.toString().substring(0,1));
                     //pic_m2=(month.toString().substring(1,2));
    
                     pic_m1=(monat[month]).toString().substring(0,1);
                     pic_m2=(monat[month]).toString().substring(1,2);
    
                     pic_y3=(year.toString().substring(2,3));
                     pic_y4=(year.toString().substring(3,4));
    
                     document.images.HZ.src=gif_base + pic_hz + gif_ext;
                     document.images.HE.src=gif_base + pic_he + gif_ext;
                     document.images.MZ.src=gif_base + pic_mz + gif_ext;
                     document.images.ME.src=gif_base + pic_me + gif_ext;
                     document.images.SZ.src=gif_base + pic_sz + gif_ext;
                     document.images.SE.src=gif_base + pic_se + gif_ext;
    
                     document.images.WD.src=gif_base + pic_wd + gif_ext;
    
                     document.images.D1.src=gif_base + pic_d1 + gif_ext;
    	             document.images.D2.src=gif_base + pic_d2 + gif_ext;
    
                     document.images.M1.src=gif_base + pic_m1 + gif_ext;
                     document.images.M2.src=gif_base + pic_m2 + gif_ext;      
    
                     document.images.Y3.src=gif_base + pic_y3 + gif_ext;       
                     document.images.Y4.src=gif_base + pic_y4 + gif_ext;       
    
                     /*
                     my_string = document.images.DP.src;
                     if (my_string.indexOf("cl_.gif") > 0){
                             document.images.DP.src = gif_base + 'dpt' + gif_ext;
                             document.images.DP2.src = gif_base + 'dpt' + gif_ext;
                     }
                     else{
                             document.images.DP.src = gif_base + gif_ext;
                             document.images.DP2.src = gif_base + gif_ext;
                     }
                     */
                     ID=window.setTimeout("ah_clock();",1000);
             }
    Alles anzeigen

    Da wird einfach die Uhrzeit und das Datum per images angezeit.

  • Javascript und Firefox 1.0.6

    • teufelchen
    • 20. Juli 2005 um 15:44

    Hallo zusammen,

    ich habe mir heute den Firefox 1.0.6 installiert, weil ich mir erhoffte dass
    ein Javascript in einem CMS wieder funktioniert. Aber pech gehabt, obwohl
    bei den Einstellungen Javascript angehackt ist! Seit der Version 1.0.4
    funktioniert es nicht mehr.

    Das komische daran ist, im Konqueror und IE funktioniert das Script!

    Kann mir bitte jemand helfen?

    Schöne Grüße
    teufelchen

Unterstütze uns!

Jährlich (2025)

67,1 %

67,1% (435,86 von 650 EUR)

Jetzt spenden
  1. Kontakt
  2. Datenschutz
  3. Impressum
Community-Software: WoltLab Suite™
Mastodon