commit 3839b0c32f957a5da7066212c67276e17a6f8ff7 parent da63a4b4b7f07c36a0d807bc24413bbd20ee8334 Author: thing1 <thing1@seacrossedlovers.xyz> Date: Wed, 4 Mar 2026 17:14:48 +0000 made marquee togglable Diffstat:
| M | CS10120/project/index.html | | | 7 | +++---- |
| A | CS10120/project/scripts/animate.js | | | 11 | +++++++++++ |
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/CS10120/project/index.html b/CS10120/project/index.html @@ -55,11 +55,7 @@ <hr> <div id="aolBanner"> - <marquee scrollamount=7> - <p height=1>Get online with <a href="https://www.aol.com/">AOL</a> today!</p> - </marquee> </div> - <hr> <h2>Declaration of originality</h2> @@ -89,6 +85,9 @@ <a href="https://analognowhere.com/_/cohelg/">Background source</a> <small id="pageLastChanged"></small> <script src="scripts/lastmodified.js"></script> + + <button onclick="animateAOL()">Animate?</button> + <script src="scripts/animate.js"></script> </footer> </body> </html> diff --git a/CS10120/project/scripts/animate.js b/CS10120/project/scripts/animate.js @@ -0,0 +1,11 @@ +toggle = false; + +function animateAOL() { + toggle = !toggle; + if (toggle) { + document.getElementById("aolBanner").innerHTML = "<marquee scrollamount=7><p height=1>Get online with <a href='https://www.aol.com/'>AOL</a> today!</p></marquee><hr>" + } else { + document.getElementById("aolBanner").innerHTML = "" + } +} +