Hey guys, just having a little trouble returning data that refers back to an image through JS.
<script type="text/javascript" language="javascript">
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById('placeholder').src = whichpic.href;
if (whichpic.title) {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
</script>
So what this does is when i click an image in the gallery it returns info from the title="" tag in the <a href of the image, the problem being that i need this info to be in a certain format. I almost need to return a table of info.
Ive searched for scripts but i'm thinkin this is a little bit different from most.
Any advice muchly appreciated folks![]()
Check it out if you feel 216.145.16.100~stitchworx/shirts.html


Reply With Quote

Bookmarks