View Single Post
  #3  
Old 02-12-2008, 08:58 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Xact, I don't think that is what Finner is looking for.

Finner, what you want to do so your site validates is wrap the JS code in <!-- //--> like so:

Code:
<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" title="click for previous" onclick="document.location=\'index.php?showimage=<IMAGE_PREVIOUS_ID>\';"></a>');
		}
		if (existnext != "<IMAGE_ID>"){
			document.write('<a href="#" id="menu_browse_next" title="click for next" onclick="document.location=\'index.php?showimage=<IMAGE_NEXT_ID>\';"></a>');
		}
	}
// -->
</script>
Reply With Quote