How do I make an image or flash object run immediately when a webpage is opened and then give the option to close it?
Can this be done using jQuery? If so can anyone show me how?Don't do this. Autoplaying things is awful and will make people want to leave your website.
If you must do this, then you don't need jQuery (or any JS for that matter) to run the flash file. Autoplaying and closing can all be done just with the flash object.
I don't know what you mean by an image running however.
use jquery-ui dialog to present : http://jqueryui.com/demos/dialog/#modal
or jquery tools http://flowplayer.org/tools/overlay/index.html enable load:true
I assume that you have seen this thing on another page and you wish to use it too. I'll recommend you to use firefox browser with it's addons for web developers. First of all you have to try: firebug, but take a look on "web developer" and "IE Tab" addons too
Those tools will help you to learn from others code.
Good luck!
精彩评论