You just call that graphic directly. You don't even need any tags.
Your javascript will look something like the following,
var myfeature='scrollbars=yes,directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,width=600,height=150,resizeable=no,screenY=100';
var newwin = open("http://www.mysite.com/myimage.gif",'newwin',myfeature);
2006-11-02 07:51:15
·
answer #1
·
answered by knitting guy 6
·
2⤊
1⤋
Depends if you want the image to open (a) automatically or (b) when the user clicks on something.
(a) You'd use the javascript window.open() method. Mind that a lo t of users have javascript de-activated, so this won't necessarily work. Moreover newer browsers (and / or plugins for them) will open new windows in a new tab instead.
(b) click me
The vital part here is target="_new".
On a sidenote:
Opening new windows is generally frowned upon. Also pop-up blockers will most likely prevent opening of new windows. Refrain from using it if possible.
There are also ways to achieve the result using DHTML.
2006-11-02 15:58:57
·
answer #3
·
answered by Martin I 3
·
1⤊
0⤋
I think that the best way to do this is to add a link, so when you click on it, a new window with the image pops up. You may also want to consider using 2 images - one scaled down to load quickly and another one full-size. Then, you can have the user click on the smaller image, and the full-size image will open in a new window.
Single image text link:
Click here!
Change the image name and text to make this work on your page.
2 images link:
Change yourimage to your image name, and it will be scaled down to the width/height number of pixels in the webpage. When clicked on, it will open full-size in a new window.
2006-11-02 16:07:22
·
answer #4
·
answered by Z Programmer 2
·
0⤊
0⤋