+ 1

Why isn't my marquee moving?

I have a marquee that would only pop up after you put in my password. The problem is that it won't scroll across the screen when I give it an I'd and set it to block with JavaScript. How can I get it to move? What's wrong with my code? The password is Kayla. https://code.sololearn.com/Wu37oB863SyV/?ref=app

27th Mar 2018, 8:36 PM
Babydoll Scripts
Babydoll Scripts - avatar
13 Answers
+ 3
Updated your code adding marquee on password entry and fixed password test. https://code.sololearn.com/WxqGT9sj7zZ3
28th Mar 2018, 1:44 AM
John Wells
John Wells - avatar
+ 4
the CSS change was a great idea @Deepak Gautam #marquee{ font-size:40px; color: green;; display:none; width:100%; padding-left:30px; opacity:0.7; animation:slide 10s infinite; -moz-animation:slide 10s infinite; -webkit-animation:slide 10s infinite; -o-animation: slide 10s infinite;//Opera }
29th Mar 2018, 1:34 AM
BroFar
BroFar - avatar
+ 3
Thank you, John! I'll be sure to look over what you've done so I can learn and avoid this problem in the future.
28th Mar 2018, 1:47 AM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
I put together a working example based on: https://stackoverflow.com/questions/21739127/understanding-the-marquee-effect-in-css3 https://code.sololearn.com/Wtn8hBiCl0GZ Note: your password isn't needed because your if to check it is missing the second = sign so it assigns instead of compares.
28th Mar 2018, 12:56 AM
John Wells
John Wells - avatar
+ 2
@Martin Taylor If I remove it then the marquee will show on the same page as the password and I want it to only show after the password is used.
28th Mar 2018, 1:13 AM
Babydoll Scripts
Babydoll Scripts - avatar
+ 2
Your welcome! I got to play with marquees for the first time so I got to learn something new, too.
28th Mar 2018, 1:58 AM
John Wells
John Wells - avatar
+ 1
C0d!ng K!tty since the marquee works in Deepak Gautam code, you should be able to add it in JS after the password is entered.
28th Mar 2018, 1:21 AM
John Wells
John Wells - avatar