Radix Posted February 8, 2003 Share Posted February 8, 2003 (edited) I'm creating a photo page made in xml, when the user clics on a picture i would like to have a resized popup rather than a new windows screen, can someone help me ..... here is My Webpage Help would be gratefull Edited February 9, 2003 by Radix Link to comment Share on other sites More sharing options...
0 Lomex Posted February 8, 2003 Share Posted February 8, 2003 You mean a new popup window without all the bars and stuff? Here's some code: <a href="html/index.html" onclick="NewWindow(this.href,'main','750','550');return false;">new window</a> here's the javascript for it function NewWindow(page, name, w, h) { var winW = (screen.width - w) / 2; var winH = (screen.height - h) / 2; winprops = 'height='+h+',width='+w+',top='+winH+',left='+winW+',scrollbars=no,resizable=no' win = window.open(page, name, winprops) if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } I hope this helps you a bit. Link to comment Share on other sites More sharing options...
0 Radix Posted February 9, 2003 Author Share Posted February 9, 2003 does not work. does someone have another approach.... Link to comment Share on other sites More sharing options...
0 Radix Posted February 9, 2003 Author Share Posted February 9, 2003 this the code: <TD align="center"><A HREF= SPAN DATAFLD="FOTO1" TARGET=_BLANK TITLE="foto"><IMG SRC= SPAN DATAFLD="THUMB1" border=0></TD> this opens a new windows. A would like popup window with no bars, etc... just the picture :wacko: Link to comment Share on other sites More sharing options...
Question
Radix
I'm creating a photo page made in xml, when the user clics on a picture i would like to have a resized popup rather than a new windows screen, can someone help me .....
here is My Webpage
Help would be gratefull
Edited by RadixLink to comment
Share on other sites
3 answers to this question
Recommended Posts