|
Java Script, Help needed!
|
View this Thread in Original format
| Nell |
Hey all, im designing a site and as part of it some thumbnails need to be clicked to open up a pop-up window containing the larger version of the specific image. i only want the image to be seen. My only trouble is that the left and top margins of the pop-up appear, so it doesnt have the effect i want.
normally when i'm coding an html file, i'd put this in the body tag so no margins exist...
| quote: |
leftmargin=0,topmargin=0,marginwidth=0,marginheight=0
|
unfortunately i cant incorp that into the JS i'm using.
the JS i'm using looks like this....
| quote: |
SCRIPT LANGUAGE="JavaScript"
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=320,height=240,left = 200,top = 200');");
}
/script
|
can anyone help me? i'm not at all fluent in JS, i copy pasted the code from a resource site.
cheers,
Nell |
|
|
| Ek0nomik |
From what I am gathering, you're just opening an image correct? I link to a .jpg or .gif etc? The only thing I can think of is making an actual seperate page with your margrins corrected to display the image.
Is it even possible to format the page if you're just opening your brower to view a specific filetype? |
|
|
|
|