Hello everybody,
i am a ‘fairly’ good flash programmer and i have this site that i would like to display in a popup window. It’s no spam at all , just a popup that opens if the user clicks on a ‘enter site’ link. The popup contains my flash website.
I have searched for hours on google and browsed through different fora, but i still didn’t find the solution ?
This is what i got so :
I managed to make it work completely as i want, but only on Firefox.
To do that i put this piece of Javascript in my index.html file :
in the head of the html file
[script]
var scrH = screen.height;
var popLeft = (screen.width-1000)/2;
var popTop = (screen.height-800-60)/2;
function openMainPopup(loc,name,w,h)
{
window.open(loc,name,”toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=”+w+”,height=”+h+”,top=”+popTop+”,left=”+popLeft);
}
[/script]
and called the function like this
[script]
openMainPopup(“
[script]
this way, it worked for Firefox, but not on IE (‘a popup has been blocked’ apeared.
then i tried it like this :
[code=html]
<map name=”Map”>
<area shape=”rect” coords=”1,0,400,400″ href=”thankyou.html” onclick=”openMainPopup(‘mysite.html’, ‘mysite’, 1000, 800)”>
</map>
so that the function would not be called automatically, but on a click from the user.
This also worked on Firefox, but on IE it was even stranger then before :
now nothing at all happened! Not even an ‘a popup has been blocked’ message…..
Does anybody know a way around this???
I really need a popup for my site, and i know it can be done.
For example : [url]http://www.workstation-uk.com/
Thanks very very much!