Este artigo descreve a rolagem ininterrupta do texto JS na barra de título. Compartilhe -o para sua referência, como segue:
A captura de tela do efeito em execução é a seguinte:
O código específico é o seguinte:
<! xmlns = "http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "content-type" content = "text/html; charset = utf-8"/> <title> rolagem de texto no título da coluna do título </>>> <IngT) 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> onLload = "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 Estruturas e habilidades de algoritmo "e" Resumo do uso de operação matemática de JavaScript "
Espero que este artigo seja útil para a programação JavaScript de todos.