ted.johnson0988
10-04-2012, 09:45 PM
Alright, this is REALLY convoluted but I think it would be cool
I have a music player on my blog:
<!--SCM Music Player by Adrian C Shum - http://scmplayer.net-->
<script type="text/javascript" src="http://scmplayer.net/script.js" ></script>
<script type="text/javascript">
SCMMusicPlayer.init("{'skin':'skins/black/skin.css','playback':{'autostart':'true','shuffle':'true','volume':'40'},'playlist':[{'title':'2Spooky Battle','url':'http://a.tumblr.com/tumblr_mbdoptQ5LT1rte8jio1.mp3'}],'placement':'bottom','showplaylist':'false'}");
</script>
<!--End of SCM Music Player script-->
And I also have two pictures:
<html>
<head>
<style type="text/css">
#img1{
position: fixed;
right: 10px;
bottom: 100px;
z-index: 10;
}
#img2{
position: fixed;
left: 10px;
top: 10px;
z-index: 10;
}
</style>
</head>
<body>
<img src="IMAGE1.png" id="img1">
<img src="IMAGE2.png" id="img2">
</body>
</html>
I want img1 to slide from the left side of the screen to its fixed position on the right over the span of 2.6 (or 3, if decimals aren't possible) seconds. But this should only happen after the music starts playing (so it should domino after its loaded and autoplays). (From there, if possible, I'd like img1 to just hover up and down but I can live without that.)
Then I'd like img2 to just appear AFTER img1 has finished its initial animation (the slide across the screen). That needs to do nothing but just stay there.
The final and most important piece of the puzzle is that this can only happen ONCE. This is a blog so I don't want the pictures to re-load if someone goes to the next page. The music player has this property already but I'd like it for the pictures.
This is horribly complicated, I know, and I'm sorry to even be asking. But I think it would be really cool to get done.
I have a music player on my blog:
<!--SCM Music Player by Adrian C Shum - http://scmplayer.net-->
<script type="text/javascript" src="http://scmplayer.net/script.js" ></script>
<script type="text/javascript">
SCMMusicPlayer.init("{'skin':'skins/black/skin.css','playback':{'autostart':'true','shuffle':'true','volume':'40'},'playlist':[{'title':'2Spooky Battle','url':'http://a.tumblr.com/tumblr_mbdoptQ5LT1rte8jio1.mp3'}],'placement':'bottom','showplaylist':'false'}");
</script>
<!--End of SCM Music Player script-->
And I also have two pictures:
<html>
<head>
<style type="text/css">
#img1{
position: fixed;
right: 10px;
bottom: 100px;
z-index: 10;
}
#img2{
position: fixed;
left: 10px;
top: 10px;
z-index: 10;
}
</style>
</head>
<body>
<img src="IMAGE1.png" id="img1">
<img src="IMAGE2.png" id="img2">
</body>
</html>
I want img1 to slide from the left side of the screen to its fixed position on the right over the span of 2.6 (or 3, if decimals aren't possible) seconds. But this should only happen after the music starts playing (so it should domino after its loaded and autoplays). (From there, if possible, I'd like img1 to just hover up and down but I can live without that.)
Then I'd like img2 to just appear AFTER img1 has finished its initial animation (the slide across the screen). That needs to do nothing but just stay there.
The final and most important piece of the puzzle is that this can only happen ONCE. This is a blog so I don't want the pictures to re-load if someone goes to the next page. The music player has this property already but I'd like it for the pictures.
This is horribly complicated, I know, and I'm sorry to even be asking. But I think it would be really cool to get done.