I am using this script to display images so that it opens without toolbars, status, etc., or even the title bar.
Example <!-- m --><a class="postlink" href="http://webdeveloper.earthweb.com/repository/webdev/content/software/2000/06/22/JS_28589/Script28589.html">http://webdeveloper.earthweb.com/reposi ... 28589.html</a><!-- m -->
<script language="javascript">
var Naked=null
function openNaked(){
if (Naked && !Naked.closed){ Naked.focus() }
else{
Naked=window.open("", "Naked", "fullscreen,scrollbars")
Naked.resizeTo(200,165)
Naked.document.write("<head></head><body topmargin=0 bottommargin=0 rightmargin=0 leftmargin=0>")
Naked.document.write("<img src='http://www.webdeveloper.com/forum/archive/index.php/pic.jpg'></body>")}
}
</script>
-The window opens fullscreen and then resizes to 200x165. How can I set it so that it opens immediately (without fullscreen in other words) but according to the image's dimensions? I tried "Naked.document.images[0].width" and some other variations, but not working. I also tried calling a resize script within the head tags but that did not work either.
-Is there a way to eliminate the scrollbars? I tried simply taking out "scrollbars" from "fullscreen,scrollbars" but that doesn't work either.
Thanks very much.
Example <!-- m --><a class="postlink" href="http://webdeveloper.earthweb.com/repository/webdev/content/software/2000/06/22/JS_28589/Script28589.html">http://webdeveloper.earthweb.com/reposi ... 28589.html</a><!-- m -->
<script language="javascript">
var Naked=null
function openNaked(){
if (Naked && !Naked.closed){ Naked.focus() }
else{
Naked=window.open("", "Naked", "fullscreen,scrollbars")
Naked.resizeTo(200,165)
Naked.document.write("<head></head><body topmargin=0 bottommargin=0 rightmargin=0 leftmargin=0>")
Naked.document.write("<img src='http://www.webdeveloper.com/forum/archive/index.php/pic.jpg'></body>")}
}
</script>
-The window opens fullscreen and then resizes to 200x165. How can I set it so that it opens immediately (without fullscreen in other words) but according to the image's dimensions? I tried "Naked.document.images[0].width" and some other variations, but not working. I also tried calling a resize script within the head tags but that did not work either.
-Is there a way to eliminate the scrollbars? I tried simply taking out "scrollbars" from "fullscreen,scrollbars" but that doesn't work either.
Thanks very much.