PDA

View Full Version : I really wanna know this????????????


rohanrehman
12-15-2002, 02:04 PM
Result

an html window opened to the size of a containing image with leftmargin=0 and topmargin=0.

Parameters

size can be changed and image can be changed.


If there is a way of javascript getting the values from a text file which specifies height and width and the image name............my prayers would be answered.


I figure I'd target an open window and use document.write in.
But I can't do it. please give me a sample code that writes an html page with an image and no left or top margins.

The ultimate goal is having a txt file where variables can be changed and a swf file loads the variables and spits out the Js oppening a browser window with a containing image.
which I have accomplished but there are those ugly margins on the top and left.
:confused:

beetle
12-15-2002, 03:40 PM
Well, I've written a popup image viewer (http://www.codingforums.com/showthread.php?s=&threadid=9836) that works without even passing the width and height, just the image.

Now, javascript can't read text-files from the server, but if you are ok with structuring your data a bit, you can put all this into an external js file.