try that but stick varible for page name/picture etc, will work for img src
not just web :)
--
Regards,
Robert Taylor.
Studio 51 Internet Solutions
mailto:robert...@studio-51.co.uk
---------------------------------------------------------------------------
Quality Internet Solutions for Home and Business
---------------------------------------------------------------------------
If I understand you correctly the effect you are looking for can be achieved
with the JavaScript coding I use on my site www.dmgroom.com . Go to the
journal section, chose a country and then scroll through the text until you
get to an image of a camera. Click on the camera and a pop up appears with
a photo in it.
Code appears to work on IE5 & NN4.
Dave
unless you need the smaller window doesn't
TARGET="_blank" do what you want
><a
>href="javascript:
[SNIP broken code]
>try that but stick varible for page name/picture etc, will work for img src
>not just web :)
s/work for img src not just web :)/not work for many people./
To do it without breaking the basic href mechanism and relying on
client-side browser features try:
<a href="page.html" target="newwindow" onclick="void(
window.open('page.html','newwindow','height=x,width=y,scrollbars=yes')
)">Open image in new window</a>
--
------------------------------------------------------------------
- Stuart Millington -
- mailto:ph...@dsv1.co.uk http://www.z-add.co.uk/ -
- *ALL* HTML e-mail rejected -
><a
>href="javascript:void(open('page.htm','titlehere','scrollbars=no,width=320,h
>eight=240'))">
>
>try that but stick varible for page name/picture etc, will work for img src
>not just web :)
Then when you've tried it, throw it away and start again as you'll
soon see that many of the places you try it get a "protocol error",
others will get nothing and others will get javascript errors.
<a href="moomin.html" target="moomin"
onclick="window.open('','moomin','width=200,height=200')">page</a>
Some notes on this solution:
The target, no return false is used, because there are many browsers
which can now block window.open, however when they do this they still
execute javascript and the return false stops the navigation. This
means that we have to do the commonly disliked target="" fallback
method.
Jim.