You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I have seen several sites that when they appear in the internet explorer of the visitor for the first time, the home page displays an overlayed image or flash animation(semi-transparent or not) over the original home page, and this disappears after a few seconds.
Also, if the user during his visit to the site, returns for some reason to the home page, then this graphic/flash is not appeared again.
I use Dreamweaver, I am not a programmer, I have already constructed my web site and home page(a normal index.asp file) and I would like to know how can I do such a thing.
var popup = document.getElementById('contentWindow');
popup.style.top = topSpace; //however far from the top you want it
popup.style.left = leftSpace; //however far from the left you want it
popup.innerHTML = flashContent;
popup.style.visibility = 'visible';
var keeponscreen = setInterval('moveFlashPopup(topSpace,leftSpace)',0001);
popup.style.visibility = 'hidden';
popup.style.top = topSpace;
popup.style.left = leftSpace;
//example of how to call this sequence of functions
createFlashPopup(100,100,5000,5000,'this is too long to put for an example....');
this example would create a Flash popup 100 pixels from the top and left,
and display it 5 seconds after load and make it disappear 5 seconds after that
Let me know if you get errors, I never write scripts perfect the first time.... :D