I am trying to make an onClick
function from input type image. Here is the code
<td>
<?php if($ring[ "bandPaths"] !='' ) echo '
<input id="bandImage" type="image" src="http://thevowapp.com/iphoneapp/vowstore/bands/'. $ring[ 'bandPaths'] . '" onClick="openGallery('.$ring[ 'bandPaths']. ');" style="width:100px; height:100px; margin-left: 10px;">
'; ?>
</td>
<script>
function openGallery(var url) {
$.colorbox({
width: "80%",
height: "80%",
iframe: true,
href: "/pagetoopen.html"
});
}
</script>
i get the error openGallery is not defined
. What wrong am i doing?