Hi all, hopefully someone can help me out with a small java problem. I've written a function that is in my webpage to create a new window. In my database attached to that page I have a field that is a hyperlink that calls the function to display a discrete image in a new window. The function is as follows
Code:
<SCRIPT LANGUAGE="JavaScript">
var newwindow;
function largeimage(url)
{
newwindow=window.open(url,"",'height=600,width=600');
if (window.focus) {newwindow.focus()}
}
</SCRIPT>
and an example of the hyperlink in the database is:
Code:
<a href="javascript:largeimage('Images/Alan1.jpg');">View large image</a>
I was wondering if someone could please help with the coding to do the following:
Change the background colour of the new window to black. Change the title to "Large Image". Lose the url as it's not really necessary. Centre the window on the screen if possible. Place a "close" button on the window. If I was really greedy to autosize the window to match the image, as they vary in size.
Hopefully some cleverer person than me can do this in no time!
Sorry for length of post, thanks, Lol