diff options
| author | s1n <[email protected]> | 2019-07-30 19:43:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-30 19:43:23 +0200 |
| commit | 1992c5a2dd4f05950a146f9410541056a3fcc4b1 (patch) | |
| tree | c61259826d2dfea9061a9d56367d9e448b1e7012 | |
| parent | Update README.md (diff) | |
| download | scrolling-html-title-1992c5a2dd4f05950a146f9410541056a3fcc4b1.tar.xz scrolling-html-title-1992c5a2dd4f05950a146f9410541056a3fcc4b1.zip | |
upload main files
| -rw-r--r-- | index.html | 30 | ||||
| -rw-r--r-- | js/main.js | 12 |
2 files changed, 42 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..22071bd --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ +<!DOCTYPE html>
+<html lang="en">
+
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>s1nical - Scrolling Title</title>
+ <!--<script language="JavaScript">
+ var space = " ";
+ var speed = "60";
+ var pos = 0;
+ var msg = "// s1n.ical "; /*Enter the scrolling title as the msg variable's value.*/
+
+ function Scroll() {
+ document.title = msg.substring(pos, msg.length) + space + msg.substring(0, pos);
+ pos++;
+ if (pos > msg.length) pos = 0;
+ window.setTimeout("Scroll()", speed);
+ }
+ Scroll();
+ </script>-->
+ <script src="js/main.js"></script>
+ </head>
+
+ <body>
+
+ </body>
+
+</html>
\ No newline at end of file diff --git a/js/main.js b/js/main.js new file mode 100644 index 0000000..f2b20ac --- /dev/null +++ b/js/main.js @@ -0,0 +1,12 @@ +var space = " ";
+var speed = "60";
+var pos = 0;
+var msg = "// s1n.ical "; /*Enter the scrolling title as the msg variable's value.*/
+
+function Scroll() {
+ document.title = msg.substring(pos, msg.length) + space + msg.substring(0, pos);
+ pos++;
+ if (pos > msg.length) pos = 0;
+ window.setTimeout("Scroll()", speed);
+}
+Scroll();
\ No newline at end of file |