Artikel ini menjelaskan pengguliran teks JS yang tidak terputus di bilah judul. Bagikan untuk referensi Anda, sebagai berikut:
Tangkapan layar efek berjalan adalah sebagai berikut:
Kode spesifiknya adalah sebagai berikut:
<! Doctype html public "-// w3c // dtd xhtml 1.0 transisi // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.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> </splipt> <body onload = "newText ()"> </body> </body> </html> <html> <head>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 Structures dan keterampilan algoritma "dan" Ringkasan Penggunaan Operasi Matematika JavaScript "
Saya harap artikel ini akan membantu pemrograman JavaScript semua orang.