uvatha
04-12-2005, 07:05 AM
Hi,
This is my first post, and Im not familiar with js. I mainly use what I get from the HTML goodies newsletter :)
I run a website for a group of local wargamers (www.ulsterwargamers.org.uk), and I want to adapt the gallery page to display the individual images in their own new, sized window, with it's own close window button.
I tried using the script supplied in one of the HTML goody newsletters (done by Vince Barnes...though it was a mentor who answered the query), but can't get it to work...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Ulster Wargame Society</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REL="Stylesheet" TITLE="Default Stylesheet" MEDIA="Screen" HREF="warstyle.css">
<script LANGUAGE="javascript">
function OpenWin(linkid)
{
MessageWin=window.open
(linkid, "newwin",config="location=no,status=no,directories=no,toolbar=no,scroll
bars=no,menubar=no,resizable=no");
}
</script>
</head>
<body>
<div id="two">
<h1 align="center">Aughrim 1691</h1>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> <div style="float: center; style=text-align: center;">
<a href="aughrim1.html" onClick="OpenWin(aughrim1.html)" type="application/octet-stream"> <img src="gallery/thumbnail_0845.jpg" alt="Aughrim ready to start" width="100" height="75" border="0" style="margin: 0 auto;"></a></div></td>..........
</div>
</body>
</html>
What am I doing wrong?
Uvatha
This is my first post, and Im not familiar with js. I mainly use what I get from the HTML goodies newsletter :)
I run a website for a group of local wargamers (www.ulsterwargamers.org.uk), and I want to adapt the gallery page to display the individual images in their own new, sized window, with it's own close window button.
I tried using the script supplied in one of the HTML goody newsletters (done by Vince Barnes...though it was a mentor who answered the query), but can't get it to work...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Ulster Wargame Society</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REL="Stylesheet" TITLE="Default Stylesheet" MEDIA="Screen" HREF="warstyle.css">
<script LANGUAGE="javascript">
function OpenWin(linkid)
{
MessageWin=window.open
(linkid, "newwin",config="location=no,status=no,directories=no,toolbar=no,scroll
bars=no,menubar=no,resizable=no");
}
</script>
</head>
<body>
<div id="two">
<h1 align="center">Aughrim 1691</h1>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> <div style="float: center; style=text-align: center;">
<a href="aughrim1.html" onClick="OpenWin(aughrim1.html)" type="application/octet-stream"> <img src="gallery/thumbnail_0845.jpg" alt="Aughrim ready to start" width="100" height="75" border="0" style="margin: 0 auto;"></a></div></td>..........
</div>
</body>
</html>
What am I doing wrong?
Uvatha