Fetch a song to play with js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Fetch a song to play with js?

I saw this really cool bookmarklet that had the Harlem shake and made everything shake, I want to make a similar one, but with a rick roll, would this be possible?

20th Aug 2022, 3:34 AM
Hunter Hicks
Hunter Hicks - avatar
1 Answer
+ 2
Oh yeah the Good Ol' Days 😂 Sure it is possible. 1st step: Create a simple bookmarklet. You can learn how here. https://www.youtube.com/watch?v=K_A3Y3eqnzE 2nd step: add some CSS to the function that will make parts of the page animate. https://www.w3schools.com/howto/howto_js_animate.asp 3rd step: add the audio element. https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_audio_get That is all there is to it :)
25th Aug 2022, 3:19 AM
Chris Coder
Chris Coder - avatar