html problem I'm making a site, but I got a small problem. I got some small images that I use as link to the full size images. Now I want to open it in a different window, so I use target="_blank". So now it opens a new window when I click the link. But I want to change a few things. I want that the new window has te same size as the image, and has now scrollbalks, menu and other stuff, just only the image. How can I do this. |
use javascript |
Quote:
|
I would see no other way of doing this |
Quote:
<tr align=center> <TD width=400 align center><img src ="achterkant.jpg"width=188 height=70></td> <TD width=400 align center><img src ="boven.jpg" width=188 height=70></td> <TD width=400 align center><img src ="blauw.jpg" width=188 height=70></td> <TD width=400 align center><img src ="interieur.jpg" width=188 height=70></td> </tr> It works perfect with firefox, but in IE it opens the folder with all the images in at the same time it opens the new window :s. Because we work with IE at school :^D (best browser EVER) the site has to work on IE :( |
Quote:
U need to "read" image-dimensions, will only work with serverside-scipt or client-side script (javascript). |
Quote:
And you're not really measuring the dimensions either, are you? |
Quote:
BTW, can you explain the meaning of all that stuff to me? Maybe handy when I need to make something else. |
no scroll: http://msdn.microsoft.com/workshop/a...ies/scroll.asp New window sized in javascript: http://www.htmlgoodies.com/beyond/openwin.html Or in html: Home Or resizing a window in javascript: http://www.ahfb2000.com/webmaster_he...?threadid=2535 |
Quote:
the rest is simple: it describes how the new window needs to look like, and opens the given file (your image). Try to delete the 'href="" ', because now the JS will open a new window, and your "htmlclick" will open the image... |
All times are GMT +1. The time now is 10:45. |
Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO