![]() |
How can I make an image slide across the screen when another object loads?
Alright, this is REALLY convoluted but I think it would be cool
I have a music player on my blog: Code:
<!--SCM Music Player by Adrian C Shum - http://scmplayer.net-->Code:
<html>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. |
If the player has a means to communicate to javascript outside of itself you can set the action off once playback starts (assuming they have the state change trigger an event for javascript to use).
I am probably not explaining that well, but for an example... The JW FLV player from longtail has the ability to add "callback" functions for certain state changes within the flash player. So you can trigger events on track change, volume change, track scan, track buffer, play, pause, playlist change, etc. The way to do that with the JW FLV player is something like this: Code:
jwplayer('my_player').setup({If the player you are using has similar functionality then it is as simple as adding a callback function in the player's initialization so that you can trigger the image effect once buffering ends and playback begins. If not, then you might consider switching to the JW FLV player. But in any case, this is a javascript question and not an HTML/CSS question. Please contact a moderator to have your thread moved to the appropriate section. (Do not cross-post!) |
Your music is way too long. You should shorten it. You need javascript or jquery to make changes in the html. Easier to do the animation with jquery, so that's what i did. We may have to add a delay to the start of the animation but this is what I have. Change your body to this:
Code:
<body> |
| All times are GMT +1. The time now is 12:55 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.