• 0

XML Popup


Question

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 Radix
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.