tags:

views:

51

answers:

3

i want that when i open a paeticular page in the website an image or a flash runs immediately and then i can chose to close it. can i do this using jquery? if yes can anyone help me with the codes or ideas? im a novice in jquery, just learning.

thanx in advance...

+4  A: 

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 runt he 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.

tandu
I want it like when someone opens the site.. something like a greetings card comes in front and when they close it is gone and the original site is shown.
Tiya
I am telling you this is terrible and people hate it! Anyway, if you really still want to do it, then I can post another answer that will explain how to do it with some level of detail. This is not exactly a trivial thing to do, especially if you want to have fancy animations associated with the image.
tandu
+1  A: 

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

jknair
Thanx a lot! that was a lot of help..
Tiya
+1  A: 

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!

dole
Thanxx dole. ill try that.
Tiya