View Single Post
  #28  
Old 01-23-2008, 07:58 AM
posefius's Avatar
posefius Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Netherlands
Posts: 100
XHTML compliant

It should also be nice if the template was XHTML compliant. I tried to fix the image_template, and almost succeeded. But I encountered a XHTML compliancy problem in the Java browsing function part, the </a> tag. Maybe there is a solution for this.

<script type="text/javascript">
function browsing(){
var existprev = "<IMAGE_PREVIOUS_ID>";
var existnext = "<IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=< IMAGE_PREVIOUS_ID>\';"></a>');
}
if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=< IMAGE_NEXT_ID>\';"></a>');
}
}
</script>
Reply With Quote