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

Need Javascript help for new Track Info

<< < (5/6) > >>

drosoph:
I think we both came to the same conclusion .. there is no way to define a string variable without putting the single/double quotes on it and having issues with Single/Double quotes in the output string !!!

Great work ... Im having no problems with it ...

Where do I send the beer to again ?  Ya know, when ur in Dallas ur welcome to come sit for a few!

knickelfarz:
If I will ever be in Dallas, we will see what's in your fridge ;)

Maybe you would like to test the first version of the "XtraSmart" Track Info template...
By clicking on the small "wrench icon" in the upper right, it opens a tool to set up your "style" without touching HTML. So far, you can set the colors and the background image of the template, but there is much more to come soon ;)



It requires the Shockwave browser plugin, Version 8 or higher. Shockwave is similar to Flash...if you didn't installed it yet, you can download it for free from here (first install Shockwave, then use "XtraSmart"!): http://www.macromedia.com/shockwave/download/alternates/

With Shockwave, you are allowed to save and read a text file in the Shockwave directory (In this case "C:\WinNT\System32\Macromed\Shockwave 8\Prefs\"). For security reasons, you can only save a simple text file and only in that directory. But that's enough, if the browser/MC's Playing Now window uses this file as an external CSS / stylesheet file...

That's why the current version of "XtraSmart" even requires the Windows directory "C:\WINNT\" (like it's standard on WinNT, Win2K and even WinXP (I 'm not sure about XP exactly...)). If you have installed Windows somewhere else ("D:\Windows\" for example...), please let me know, I will then post a modified version.

Thanks for testing!

drosoph:
Yep, C:\Windows here !

KingSparta:
why not just find the default system dir

i know there is a way of doing it, it slips my memory right now.

Updated:

VB6

Private Declare Function GetSystemDirectory& Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long)

Public Function SystemDirectory()
 Dim strBuffer As String * 260

 GetSystemDirectory strBuffer, 260

 SystemDirectory = Left(strBuffer, InStr(strBuffer, Chr(0)) - 1)
End Function

Private Sub Command1_Click()
Text1.Text = SystemDirectory
End Sub

Private Sub Form_Load()
Text1.Text = SystemDirectory
End Sub

knickelfarz:

--- Quote ---Yep, C:\Windows here !
--- End quote ---

OK, please try this one...It's for C:\Windows


--- Quote ---why not just find the default system dir...
--- End quote ---

Hello King!
Thanks for the VB example...but in this case, I've got to find a way to get the windows path inside the browser or inside shockwave. I guess it will not be possible to do it with JavaScript or VBScript, but it's possible with shockwave...it's just a little bit complex with shockwave, so I didn't spend time yet to realize it...of course it's essential, so it will be the next thing on my list...

Again: Thanks for testing!


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version