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
HTML Window with media type-icon
Author Message
DVD Profiler Unlimited RegistrantPhenom
Registered: June 27, 2007
Posts: 6
Posted:
PM this userDirect link to this postReply with quote
Hi all,

Is there any way to make a html-window with media types, but with custom pictures like them u put in the custum media type section?
Im new with html coding so an example would be appreciated.

Ive manage to make a window with text, but pictures would be nice.

I have realized that i must have the "code" for where this line <DP NAME="MEDIA_TYPE"> gets the information from.
That line changes the media type depending what media type the movie has, but with text, and i want to get the icon.
Hope u guys understand what i want to do 
tnx
Phenom
DVD Profiler Unlimited RegistrantPhenom
Registered: June 27, 2007
Posts: 6
Posted:
PM this userDirect link to this postReply with quote
Case closed... Solved

Phenom
DVD Profiler Unlimited Registrantfrittenernie
Registered: May 18, 2007
Germany Posts: 3
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Hi,

how did you solve ?

I could need help at this too.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 5,609
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting frittenernie:
Quote:
Hi,

how did you solve ?

I could need help at this too.

Here is something to try:

<HTML>
<HEAD>
<SCRIPT TYPE="text/javascript">
<!--
<DP NAME="HEADER_VARS" Language="JavaScript" Comments="True" IncludeCast="False" IncludeCrew="False">
//-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT TYPE="text/javascript">
if (DP_MediaTypeDVD )
{
  document.write('<img width=200 height=24 src="file://C:/Program Files/DVD Profiler/Media/Banner_DVD.png" alt=""><p>');
}
if (DP_MediaTypeHDDVD)
{
  document.write('<img width=200 height=24 src="file://C:/Program Files/DVD Profiler/Media/Banner_HDDVD.png" alt=""><p>');
}
if (DP_MediaTypeBluRay)
{
  document.write('<img width=200 height=24 src="file://C:/Program Files/DVD Profiler/Media/Banner_BluRay.png" alt=""><p>');
}
if (DP_CustomMediaType == "MyCustomType')
{
  document.write('<img width=200 height=24 src="file://C:/Program Files/DVD Profiler/Media/MyCustomType.png" alt=""><p>');
}
</SCRIPT>
</BODY>
</HTML>
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantfrittenernie
Registered: May 18, 2007
Germany Posts: 3
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Thx,

this helped me. 
But there was a script error.

Now it works with this perfectly:

<td width="233"><script language="JavaScript">

if (DP_MediaTypeDVD)
document.write("<img src='C:/Users/***/Documents/DVD Profiler/Media_Type/DVD.gif' />");
else
if (DP_MediaTypeHDDVD)
document.write("<img src='C:/Users/***/Documents/DVD Profiler/Media_Type/HD-DVD.gif' />");
else
if (DP_MediaTypeBluRay)
document.write("<img src='C:/Users/***/Documents/DVD Profiler/Media_Type/Blu-ray.gif' />");

</script></td>
            </tr>
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 5,609
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
I copied the code directly from a working window. I think you forgot to take out the line breaks casued by my paste into the forum posting.

Your code works, but due to the "else" statements, you will not cover the case of dual format profiles (e.g. Blu-Ray + DVD).

My version covers this. If you want to cover those cases, remove the "else" clauses.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantfrittenernie
Registered: May 18, 2007
Germany Posts: 3
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
Yes, you´re right.

Now it works with dual format too.

Thanks a lot for the help. 
    Invelos Forums->DVD Profiler: Layouts and Reports Page: 1  Previous   Next