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: Desktop Technical Support Page: 1  Previous   Next
HTML Window
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.

tnx
Phenom
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting Phenom:
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.

tnx
Phenom

Hang tight, I'm sure you will get lots of help.

A tip for you: when I was first learning a bit about HTML, I used to clone stuff from other web sites. You can "view source" on any web page. Modern methods now hide a lot of the actual code, so you will have to be selective. Find one of these "make your own web site for free" type sites. They sometimes use the most basic methods. Then pick a web page or template that looks like what you want and save it to disk. Then you can mess with it to your heart's content.  You can't break anything, so experiment!
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Oops wrong place.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantPhenom
Registered: June 27, 2007
Posts: 6
Posted:
PM this userDirect link to this postReply with quote
Thanks mediadogg for your fast reply.

I have done just that, copied from sites and manage to change background color and even got a picture in my new window 
But i have realized that i must have the "code" for were 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 
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Maybe you can get some ideas from this:

<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=64 height=32 src="http://www.invelos.com/images/DVDLogo.png" alt=""><p>');
}
if (DP_MediaTypeHDDVD)
{
  document.write('<img width=64 height=32 src="http://www.invelos.com/images/HDDVDLogo.png" alt=""><p>');
}
if (DP_MediaTypeBluRay)
{
  document.write('<img width=64 height=32 src="http://www.invelos.com/images/BlurayLogo.png" alt=""><p>');
}
</SCRIPT>
</BODY>
</HTML>
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
DVD Profiler Unlimited RegistrantPhenom
Registered: June 27, 2007
Posts: 6
Posted:
PM this userDirect link to this postReply with quote
Tnx again mediadogg

Your script worked out just fine.
But is there any way of getting my local img files to work instead of the www-url. When i try to paste the url of my local file i get a red cross of that img.

And second, is it possible to use an image like your script does but with custom media types. I tried to change the text to this.
if (DP_CustomMediaTypeXtreamer)
Xtreamer is my custom name
If i write it like that i got a script error telling me that Xtreamer is not defined

Thanks for your help
Phenom
 Last edited: by Phenom
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Great. You are a fast learner. Makes it fun for me.

What you want to do is kind of tricky. I have some ideas which I will post later. Meanwhile  I invite any of the other team to share their thoughts as well.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
Invelos Software, Inc. RepresentativeKen Cole
Invelos Software
Registered: March 10, 2007
United States Posts: 4,282
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
To use local image files, change the http:// link to (example) file://C:/MyCoolImages/Image1.jpg.  Be sure to use / instead of \ between directories.

To test for custom media types, use the DP_CustomMediaType variable, example:

if (DP_CustomMediaType == 'Xtreamer')
Invelos Software, Inc. Representative
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
OMG what an honor!    Thanks Ken. Wow, my head is spinning ...

Edit:
Confirmed. Works great.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Desktop and Mobile RegistrantStar ContributorDJ Doena
Registered: May 1, 2002
Registered: March 14, 2007
Reputation: Highest Rating
Germany Posts: 6,744
Posted:
PM this userEmail this userVisit this user's homepageView this user's DVD collectionDirect link to this postReply with quote
Quoting mediadogg:
Quote:
Hmm ... I still get the red X, even when using "/".


This works for me:

<img src="file:////C:/Users/DJ Doena/Desktop/Untitled.jpg">
Karsten
DVD Collectors Online

DVD Profiler Unlimited RegistrantStar ContributorWigram
Don't blink!
Registered: June 6, 2007
Reputation: High Rating
Canada Posts: 950
Posted:
PM this userEmail this userDirect link to this postReply with quote
It worked fine for me in a HTML window. For instance, this is what I used to display the image calvin.gif located in the directory C:/Documents/Images/cartoon on myhard disk:

<img src="file://C:/Documents/Images/cartoon/calvin.gif">
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,463
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Well if I could only spell, it would have worked for me too! (mispelled file)

So, rolling up all the advice, here is some fun (thanks All):

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 == 'Xtreamer')
{
  document.write('<img width=200 height=24 src="file://C:/Program Files/DVD Profiler/Media/Xtreamer.png" alt=""><p>');
}
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited RegistrantPhenom
Registered: June 27, 2007
Posts: 6
Posted:
PM this userDirect link to this postReply with quote
Eureka!

I can't thank u guys enough...

All my questions and problems are solved, all of u are fantastic!

And now i understand a little more about HTML 

Best regards
Phenom
    Invelos Forums->DVD Profiler: Desktop Technical Support Page: 1  Previous   Next