|
#1
|
|||
|
|||
|
Validation failed
Hello,
I tried to validate my site the the html validator and Iīve got only two errors left. But I donīt know what to do, because itīs the code for the navigation. The validator find this fault document type does not allow element "a" here. in line five and eight. Code:
<script type="text/javascript">
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><
Validator-Link Can somebody help? thanks Marek
__________________
Fotoblog :: Lichtlauschen |
|
#2
|
||||
|
||||
|
You can try this:
Code:
<script type="text/javascript">
<!--
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>
|
|
#3
|
|||
|
|||
|
This one is perfect. Thank you
Marek
__________________
Fotoblog :: Lichtlauschen |
| Post Reply |
| Thread Tools | |
|
|