rachums
06-26-2003, 10:37 AM
Hi, I am new to this and am having problems with my script. What I have is a script that opens an image sized window. It works nicely for me BUT I want the new window to be oriented on the right of the screen, centered horizontally. I have tried to just muddle my way through but alas, I have gotten nowhere. If someone could please lend their knowledge to my project, I would very much appreciate it.
Here is the script:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function showpic(url){
var newImg = document.createElement("img");
newImg.setAttribute("src",url);
//create image sized window
var winProps = "width="+newImg.width+", height="+newImg.height+", scrollbars=no, toolbar=no, directories=no, menu bar=no, resizable=yes, status=yes";
newwindow=open(url,"Picture",winProps);
}
</SCRIPT>
Thanks,
Rachael
Here is the script:
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
function showpic(url){
var newImg = document.createElement("img");
newImg.setAttribute("src",url);
//create image sized window
var winProps = "width="+newImg.width+", height="+newImg.height+", scrollbars=no, toolbar=no, directories=no, menu bar=no, resizable=yes, status=yes";
newwindow=open(url,"Picture",winProps);
}
</SCRIPT>
Thanks,
Rachael