Author |
Message |
Registered: June 27, 2007 | Posts: 6 |
| Posted: | | | | 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 |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | 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 |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | Oops wrong place. | | | Thanks for your support. Free Plugins available here. Advanced plugins available here. Hey, new product!!! BDPFrog. | | | Last edited: by mediadogg |
|
Registered: June 27, 2007 | Posts: 6 |
| Posted: | | | | 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 |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | 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. |
|
Registered: June 27, 2007 | Posts: 6 |
| Posted: | | | | 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 |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | 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. |
|
Registered: March 10, 2007 | Posts: 4,282 |
| Posted: | | | | 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 |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | 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 |
|
Registered: March 14, 2007 | Reputation: | Posts: 6,744 |
| Posted: | | | | 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
|
|
Registered: June 6, 2007 | Reputation: | Posts: 950 |
| Posted: | | | | 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"> |
|
Registered: March 18, 2007 | Reputation: | Posts: 6,463 |
| Posted: | | | | 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 |
|
Registered: June 27, 2007 | Posts: 6 |
| Posted: | | | | 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 |
|