Code:
<script> function clickPost(el){ var im=el.parentNode.style.backgroundImage; var sp0=im.split("/"); var sp1=sp0[sp0.length-1].split("."); document.getElementById("formInp").value=sp1[0]; document.F.submit(); } </script>
Code:
<div class="thumb" style="background-image: url('images/1.jpg');"><a href='javascript:void(0)' onclick='clickPost(this)'>
Below is the current code for displaying the thumbs:
Code:
<div id="container"> <a href='javascript:void(0)' onclick='clickPost(this)'><div class="overlay"></div> <div class="image"><img src="images/2.jpg" /></a></div> </div>
Comment