<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>blendTrans</title>
<meta name="keywords" content="søgeord adskilt af komma">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#myImg {filter:blendTrans(duration=3)}
</style>
<script language="javascript" type="text/javascript">
function blend(img){
img.filters["blendTrans"].apply();
if(img.src.indexOf("<?php echo "$data[pic]"; ?>")>-1){
img.src = "<?php echo "$data[pic2]"; ?>";
}else{
img.src = "<?php echo "$data[pic]"; ?>";
}
img.filters["blendTrans"].play();
}
</script>
</head>
<body>
<img id="myImg" src="<?php echo "$data[pic]"; ?>" style="width:50px;height:50px;" onmouseover="blend(this);" onmouseout="blend(this);">
</body>
</html>
-- og jeg har selvfølgelig ikke testet selv, da jeg ikke har php !-)