E
efrat.yahav
Hi,
I really need your help here, I looked all over and couldn't find an
answer to my problem:
I developed a flash-based site in which I have a gallery of pictures
and when the user presses a magnifier the picture opens in a new pop-up
window. Now, I want this window to be in fullscreen mode. Since I am
doing it from the Flash my code might seem a bit strange:
function BigImage() {
PicGallery.picture.stop();
sUrl = bigPic[p];
wdth = "(screen.width+10)";
hgth = "(screen.height+10)";
scrbr = "yes";
winName="name_"+(Math.ceil(Math.random()*9999));
rsiz = "yes";
maxparam = "1";
full = "yes"
lft = 0;//resx/2-wdth/2;
tp = 0;//resy/2-hgth/2;
getURL("javascript:window.open('"+sUrl+"','"+winName+"','width="+wdth+",height="+hgth+",top="+tp+",left="+lft+",resizable="+rsiz+",scrollbar="+scrbr+",maximize="+maxparam+",fullscreen="+full+"');void(0);");
}
In short, it gives:
javascript:window.open('Images/DSCF0001_big.jpg','name_7525','width=(screen.width+10),height=(screen.height+10),top=0,left=0,resizable=yes,scrollbar=yes,fullscreen=yes');void(0);
I also tried a shorter version that works quite similarily:
javascript:window.open('Images/DSCF0001_big.jpg','name_9754','fullscreen=yes');void(0);
The problem is, it works perfectly on my computer locally, but as soon
as I put it on the server it behaves differently on each computer, and
I only checked with IE! I have IE6 and it doesn't work (it opens as a
very small popup window).
Ppppppplllleeeeessssseeeee help. it's driving me crazy :-S
Thanks,
Efrat
I really need your help here, I looked all over and couldn't find an
answer to my problem:
I developed a flash-based site in which I have a gallery of pictures
and when the user presses a magnifier the picture opens in a new pop-up
window. Now, I want this window to be in fullscreen mode. Since I am
doing it from the Flash my code might seem a bit strange:
function BigImage() {
PicGallery.picture.stop();
sUrl = bigPic[p];
wdth = "(screen.width+10)";
hgth = "(screen.height+10)";
scrbr = "yes";
winName="name_"+(Math.ceil(Math.random()*9999));
rsiz = "yes";
maxparam = "1";
full = "yes"
lft = 0;//resx/2-wdth/2;
tp = 0;//resy/2-hgth/2;
getURL("javascript:window.open('"+sUrl+"','"+winName+"','width="+wdth+",height="+hgth+",top="+tp+",left="+lft+",resizable="+rsiz+",scrollbar="+scrbr+",maximize="+maxparam+",fullscreen="+full+"');void(0);");
}
In short, it gives:
javascript:window.open('Images/DSCF0001_big.jpg','name_7525','width=(screen.width+10),height=(screen.height+10),top=0,left=0,resizable=yes,scrollbar=yes,fullscreen=yes');void(0);
I also tried a shorter version that works quite similarily:
javascript:window.open('Images/DSCF0001_big.jpg','name_9754','fullscreen=yes');void(0);
The problem is, it works perfectly on my computer locally, but as soon
as I put it on the server it behaves differently on each computer, and
I only checked with IE! I have IE6 and it doesn't work (it opens as a
very small popup window).
Ppppppplllleeeeessssseeeee help. it's driving me crazy :-S
Thanks,
Efrat