Dieser Artikel beschreibt das ununterbrochene Bildlauf von JS -Text in der Titelleiste. Teilen Sie es für Ihre Referenz wie folgt weiter:
Der Screenshot des Laufeffekts lautet wie folgt:
Der spezifische Code lautet wie folgt:
<! DocType html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transsitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Text scrolling on the TITLE column</title><script language=javascript>var text=document.titlevar timerIDfunction newtext() {clearTimeout(timerID)document.title=text.substring(1,text.length)+text.substring(0,1)text=document.title.substring(0,text.length)timerID = setTimeout("newtext()", 100)}</script></head><body onload = "newText ()"> </body> </body> </html> <html> <kopf>For more information about JavaScript related content, please check out the topics of this site: "Summary of JavaScript Traversal Algorithm and Skills", "Summary of JavaScript Switching Special Effects and Skills", "Summary of JavaScript Search Algorithm Skills", "Summary of JavaScript Animation Special Effects and Skills", "Summary of JavaScript Errors and Debugging Skills", "Summary of JavaScript Data Strukturen und Algorithmusfähigkeiten "und" Zusammenfassung der Verwendung von JavaScript Mathematical Operation ""
Ich hoffe, dieser Artikel wird für JavaScript -Programme aller hilfreich sein.