Windows > Third Party Plug-ins, Programs, and Skins

Need Javascript help for new Track Info

(1/6) > >>

drosoph:
Here is the jist of what Im doing ... trying to make a dynamic plugin for files that do not have cover art... for the Slideshow to popup in its place ...

Here is sample code ... I know NOTHING of javascript .. can someone look at this and tell me what is glaringly wrong !!!

<script>
     function CoverArt() {
             var artfile;      
       if (TrackInfo_Insert(Image File) != null) {
          artfile = "<IMG SRC="TRACKINFO_INSERT_IMAGE" >"
       } else {
          artfile = "<object classid="clsid:46848D62-2387-46B0-8B89-00E57F849BA9"
id="SlideShowCtrl1" data="DATA:application/x-oleobject;BASE64,Yo2ERocjsEaLiQDlf4SbqQADAADYEwAA2BMAAA=="
height="250"></object>"
       }
       CoverArtorSlideShow.innerHTML = artfile;
     
     }
     window.onload = CoverArt;
</script>

Than, how do I insert the results into the page ?

knickelfarz:
Here is an example for what you are looking for:
Install "Test01-OClock"
It doesn't do anything to check if the slideshow plugin is installed, yet.

Remember: The scripting will work only in the "Generated.html" where the keywords are already replaced by track information - so it doesn't make sense to search for something like "TRACKINFO_INSERT_IMAGE" here...

drosoph:
Dude, you rock ! ... Excellent way of doing it !

drosoph:
I love it .. but I dont use full screen so added scrollbars to the lyrics, notes, and bios windows ...
Install "Drosoph-OClock"

Enjoy

knickelfarz:

--- Quote ---Install "Drosoph-OClock"

Enjoy
--- End quote ---


I would like to, but...please check the link  ;)

Navigation

[0] Message Index

[#] Next page

Go to full version