already changed the file names... 01 02, 01t ect.. works better
But still wanna know something :P
I made this but cannot get it to work the way i want it
Code:
<html>
<head>
<script language="javascript" type="text/javascript">
<!--
var urlid = 'images/collectie2005/'
var fileid = '01'
var fileext = '.jpg'
function changeimage()
{
document.getElementById('cellBg').style.backgroundImage='url(urlid+fileid+fileext)';
}
//-->
</script>
<style type="text/css">
.imagecell
{
background-image: url(images/collectie2005/01.jpg);
background-repeat:no-repeat;
background-position:center;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<table width="400" border="1">
<tr>
<td width="100"><a href="#" onClick="fileid = '01'; return changeimage('01');"><img src="images/collectie2005/01t.jpg"></a><br>
<a href="#" onClick="fileid = '02'; return changeimage();"><img src="images/collectie2005/02t.jpg"></a><br>
</td>
<td width="400" height="600" id="cellBg" class="imagecell"> </td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
Bookmarks