mood: listening to sounds Calico's Custom Music Player


recently i recieved a comment asking about my audio player - i'm honestly surprised (in a good way!) that my simple audio player warranted someone wanting to know how to make one similar. ^__^
it's a bit messily put together, but hopefully this can help anyone interested in putting one on their site!!
if you use this, all i ask for is a tiny link back to my site somewhere, it can be on a credits page or an updates page... anything really, i just would appreciate it!!!



THE CSS

you'll need some very basic css in order to get this rolling, copy paste this into wherever you have your css located!! feel free to rename the classes, i just have very silly naming schemes, helps me remember things better!!!

THE HTML

next up is the html! there's also some javascript to change the play button to a pause button, you're free to replace it with whatever you'd like. i use font awesome for my icons, but if you have an alternative, you're free to use that. if you do use use font awesome, remember to set up a kit for your own usage, the icons will not show up otherwise!

THE RANDOMISATION AND PLAY/PAUSE BUTTON

so you may have noticed that i'm not actually linking to any songs - this is because i have it set to be random upon refresh! if you would like one song only, all you need to do is delete the span element within the marquee and replace the text in the marquee with the name of your song! and then to link to your one song, you can just add src="URLHERE" to your audio element.
when i link to songs, i either use dropbox or catbox.moe, pick whatever works better for you. although for dropbox links, you'll need to make sure you replace www with dl. the end of the url should also have a dl=0.

FINAL REMARKS

that's it really! if you have any questions, please feel free to ask me!! you should have something like the player on my site, if all went well. :3