Was muss ich tun, dass ich bei März zu einem ä komme?
[attachment=0]Datum&Uhr.jpg[/attachment]

Datum in der Titelleiste ohne "ä"
-
bigpen -
1. März 2018 um 21:51 -
Erledigt
-
-
Hast du das Script denn auch als UTF-8 ohne BOM abgespeichert?
[attachment=0]Screenshot (710).png[/attachment]
-
Was muss ich tun, dass ich bei März zu einem ä komme?
Ich kaufe ein Ä [Blockierte Grafik: https://picload.org/image/raogrwll/verknuepfung.png]Kennst du vielleicht noch die Sendung?
Lass dich nicht ärgern... :lol: -
Andreas
Bis jetzt habe ich die Codes immer in den normalen Editor geladen und fand nichts "Störendes". Glück gehabt. Also, ich lade ihn mal in den Notepad++ und speichere ihn als UTF-8 ohne BOM. Danke vielmal!Fox2Fox
Ich glaube nicht, oder ich habe es wieder Vergessen. Das hätte das Alter so an sich ...Edit
So, jetzt ist alles wie's sein soll. Ich musste den Monat März im Script neu schreiben. Das kuriose Zeichen setzte sich dort fest.
.
[attachment=0]Datum neu.jpg[/attachment]
Tra-ra! -
Fox2Fox
Ich glaube nicht, oder ich habe es wieder Vergessen. Das hätte das Alter so an sich ...
//
Das war die Sendung Glücksrad [Blockierte Grafik: https://picload.org/image/raogrwll/verknuepfung.png]
Ob sie in der Schweiz empfangbar war, weiß ich nicht. -
Hi,
jetzt habe ich doch das Script gelöscht, als ich das Ganze über Notepad speichern wollte. Leider finde ich das Script hier nicht mehr, weil ich offenbar zu blöd bin. :roll:
Kann mir jemand bitte einen Tipp geben? -
Bitteschön... :wink:
CSS
Alles anzeigen(function() { function doDatClock() { var timestr = new Date().toLocaleDateString( locale , options ); if( count == 1 ) { var counter = new Date( 1000 * sec ).toISOString().substr( 11 , 8 ); // .replace(/^[0:]+/, '') // if you want to replace zeroes and colons timestr = timestr + ' (' + counter + ')'; sec++; } ClockLabel.setAttribute( 'value', timestr ); } var count = 1; // if you don't want a counter set this to zero var agent = 1; // if you just want the clock set this to zero var language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR' var personalText = '• EffPeh Edition'; // your personal text here var cssColor = 'var(--uc-grad-3)'; // Font Color var css = 'padding-top: 4px !important; padding-left: 0px; color: ' + cssColor + '; font-weight: 600; text-shadow: none; width: 275px;'; var cssA = 'width: auto;'; var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' }; var sec = 0; var locale = language || window.navigator.languages[0]; var position = document.getElementById('helpMenu'); var ClockLabel = document.createElement('label'); ClockLabel.setAttribute('id', 'statusbar-clock-display'); ClockLabel.setAttribute('class', 'statusbarpanel-text'); ClockLabel.setAttribute('style', css); position.parentNode.insertBefore(ClockLabel, position.nextSibling); if( agent == 1 ) { var AgentLabel = document.createElement('label'); AgentLabel.setAttribute('id', 'statusbar-agent-display'); AgentLabel.setAttribute('class', 'statusbarpanel-text'); AgentLabel.setAttribute('style', css + cssA); var FFstr = AppConstants.MOZ_MACBUNDLE_NAME.split('.'); var mbName = FFstr[0]; var text = mbName + ' ' + AppConstants.MOZ_APP_VERSION_DISPLAY + ' ' + personalText; AgentLabel.setAttribute( 'value', text ); position.parentNode.insertBefore(AgentLabel, position.nextSibling); } if( count == 1 ) { ClockLabel.addEventListener('dblclick', function() { sec = 0; }); } window.setInterval( doDatClock , 1000 ); })();
-
Danke!
Ich habe Das Script im Chrome-Ordner bei den anderen Scripten gespeichert, aber in der Titelleiste ist nichts zu sehen. Wo mache ich einen Fehler? -
Wo mache ich einen Fehler?
Funktioniert hier einwandfrei.Firefox war bei der Aktion geschlossen?
-
FF war geschlossen. Hier nochmals die Kopie des Scripts:
CSS
Alles anzeigen((function() { function doDatClock() { var timestr = new Date().toLocaleDateString( locale , options ); if( count == 1 ) { var counter = new Date( 1000 * sec ).toISOString().substr( 11 , 8 ); // .replace(/^[0:]+/, '') // if you want to replace zeroes and colons timestr = timestr + ' (' + counter + ')'; sec++; } ClockLabel.setAttribute( 'value', timestr ); } var count = 1; // if you don't want a counter set this to zero var agent = 1; // if you just want the clock set this to zero var language = 'de-DE'; // locale, e.g. 'de-DE' , 'en-US' , 'fr-FR' var cssColor = 'DeepPink'; // Font Color var css = 'padding-top: 4px !important; padding-left: 0px; color: ' + cssColor + '; font-weight: 600; text-shadow: none; width: 275px;'; var cssA = 'width: auto;'; var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit' }; var sec = 0; var locale = language || window.navigator.languages[0]; var position = document.getElementById('helpMenu'); var ClockLabel = document.createElement('label'); ClockLabel.setAttribute('id', 'statusbar-clock-display'); ClockLabel.setAttribute('class', 'statusbarpanel-text'); ClockLabel.setAttribute('style', css); position.parentNode.insertBefore(ClockLabel, position.nextSibling); if( agent == 1 ) { var AgentLabel = document.createElement('label'); AgentLabel.setAttribute('id', 'statusbar-agent-display'); AgentLabel.setAttribute('class', 'statusbarpanel-text'); AgentLabel.setAttribute('style', css + cssA); var FFstr = AppConstants.MOZ_MACBUNDLE_NAME.split('.'); var mbName = FFstr[0]; var text = mbName + ' ' + AppConstants.MOZ_APP_VERSION_DISPLAY + ' ' + personalText; AgentLabel.setAttribute( 'value', text ); position.parentNode.insertBefore(AgentLabel, position.nextSibling); } if( count == 1 ) { ClockLabel.addEventListener('dblclick', function() { sec = 0; }); } window.setInterval( doDatClock , 1000 ); })();
-
-
Habe ich bei geschl. FF gemacht, leider immer noch keine Anzeige in der Titelleiste.
-
Hier kannst du mal meine funktionierende Datei runterladen und testen
https://www.file-upload.net/download-13008308/uhr.uc.js.html
-
Ich gehe zwar davon aus, dass du diese Vorbereitungen durchgeführt hast, aber ich weise trotzdem mal darauf hin:
-
Oh Mann! Ich muss mich entschuldigen! :roll:
Ich habe die Begriffe verwechselt. Meinte die Menü- und nicht die Titelleiste. Und für die Menüleiste habe ich hier das Script gefunden und mit Notepad in den Ordner Chrome gespeichert.
Jetzt ist alles so, wie ich es haben möchte.
Nochmals sorry für meine "Dämlichkeit"! -
Meinte die Menü- und nicht die Titelleiste.
Bei mir funktioniert dieses Script in der Menüleiste - die Titelleiste habe ich ausgeblendet.ZitatNochmals sorry für meine "Dämlichkeit"!
Kein Problem. -
Das war die Sendung Glücksrad [Blockierte Grafik: https://picload.org/image/raogrwll/verknuepfung.png]
Ob sie in der Schweiz empfangbar war, weiß ich nicht.
Gugst Du RTLplus.Lutz