Quote Originally Posted by BLOWERS View Post
Hope these will be of use to you all. I attach my template, and a doc explaining (a tad clumsily, I'm afraid) how to utilise my icons feature). Any probs, just shout!
Malc

Thanks so much for this. I now have an iPod icon next to the tracks I have on my device. If I could bother you further. You use a textbox, but I have already used a checkbox in my dataase and would naturally prefer to use the existing data I have rather than convert it. I don't know enough to know how to use a checkbox instead of a textbox in my adaptation of your code:

<!-- ==== START CT-FT FUNCTION ====== -->
<script type="text/javascript">
/* ----------------------------- */
function checkValue2(trackcustom8)
/* ----------------------------- */
{
switch (trackcustom8.toLowerCase())
{
case "ip":
// on iPod
document.write(" <img width=13 src='h:\\itunes\\ipod.ico'>");
break;

default:
// All other tracks - do nothing
break;
}
}
</script>
<!-- ==== END CT-FT FUNCTION ====== -->

I don't know what value a checkbox returns to use in the case statement or even if a case statement is the right syntax to use.

I should say I think I know why you used a textbox as you wanted to signal many different things; but all I want to signal is whether it is on my iPod so a checkbox works better.

Thanks