Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next
Tags & images
Author Message
DVD Profiler Desktop and Mobile Registrantjuanlaviana
Registered: January 5, 2009
Spain Posts: 6
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Hi,

Is it possible to display a image/icon, if a tag is checked, in a HTML window?
I have tried several scripts, but... always   

Thanks
DVD Profiler Unlimited RegistrantStar Contributorgreyghost
Registered: March 13, 2007
Reputation: Highest Rating
United States Posts: 1,438
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
I use this section of code to insert images based on tags.

<SCRIPT TYPE="text/javascript">
for (x in DP_Tags) {
var tag=DP_Tags[x];
if (tag.match("@Digital/MA")) document.write("<img src='file:///F:/DVD Profiler Media/MoviesAnywhere.png' />");
if (tag.match("@Digital/DMA")) document.write("<img src='file:///F:/DVD Profiler Media/Disney_Movies_Anywhere_2.png' />");
if (tag.match("@Digital/iTunes")) document.write("<img src='file:///F:/DVD Profiler Media/iTunes.png' />");
if (tag.match("@Digital/UltraViolet")) document.write("<img src='file:///F:/DVD Profiler Media/UltraViolet.png' />");
if (tag.match("@Digital/VUDU")) document.write("<img src='file:///F:/DVD Profiler Media/logo_vudu4uvvu_120x80.png' />");
if (tag.match("@Digital/XD")) document.write("<img src='file:///F:/DVD Profiler Media/HDX_VWC_Checkout.png' />");
if (tag.match("@Digital/HD")) document.write("<img src='file:///F:/DVD Profiler Media/HD_VWC_Checkout.png' />");
if (tag.match("@Digital/UHD")) document.write("<img src='file:///F:/DVD Profiler Media/UHD.png' />");
if (tag.match("@Digital/SD")) document.write("<img src='file:///F:/DVD Profiler Media/SD_VWC_Checkout.png' />");
if (tag.match("@DiscToDigital_Eligible")) document.write("<img src='file:///F:/DVD Profiler Media/D2D.png' />");
if (tag.match("@DiscToDigitalc")) document.write("<img src='file:///F:/DVD Profiler Media/symbol_check.png' />");
if (tag.match("Cabinet/")) document.write(tag.substring(tag.lastIndexOf("/")+1));


}
</SCRIPT>

Tags:



Result:

Registered: February 10, 2002
DVD Profiler Desktop and Mobile Registrantjuanlaviana
Registered: January 5, 2009
Spain Posts: 6
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Perfect!!!
Thank you very much for your help...
DVD Profiler Desktop and Mobile Registrantjuanlaviana
Registered: January 5, 2009
Spain Posts: 6
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Hi,
code works fine

https://drive.google.com/file/d/1XWMdIzj0R3ep4sCKuSw2w66unUZEIE5y/view?usp=sharing

I tried use images loaded in a layout
 

if (tag.match("Awards/Oscar")) document.write("<img src="$DPIMAGES.oscar_B_G.jpg" />");


but fails....

any suggestions

Thanks
 Last edited: by juanlaviana
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next