Many of us are interested in how you did this. Please post it for everyone to see.
Many of us are interested in how you did this. Please post it for everyone to see.
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
I'm afraid I honestly don't know - I'm not that experienced at all in programming! That's why I used a textbox. My only suggestion would be to search for all tracks with your IP checkbox checked, then bulk edit that info into a pre-prepared textbox so you could just follow my example. I only know this way of doing it through following someone else's example several years ago!