Forums Archive Index > SmartMenus 5 > About WMPlayer
Date: 5 Aug 2005 3:05 am
Hi
I'm NEW here in SmartMenus. Does smart menu have the feature of "onclick"?
For example I have a Windows Media Player on my site and I will use Smart menu for the link of INTERNET TV live.
I want the menu to be: (for example there are many channel of TV)when the user click on the link for example; I put the link of Bloomberg Video --> http://www.bloomberg.com/streams/video/LiveBTV200.asxx. When the user click that it will automatically will play on the WMPlayer that I provide on my website.
Is that possible for SmartMenus?
IS it posible to implement?
Thanks
Date: 5 Aug 2005 10:43 am
As far as I get it, you will need to execute onclick a JS function that will tell the WMP control to play the selected ASX file. So if this is it, yes it is possible. You just have to set a menu item like this:
...
{U:'javascript:theFunctionHere("for_instance_the_address_here")',T:'Bloomberg'}
...
Date: 7 Aug 2005 10:29 pm
I did what you say when I put this {U:'javascript:onclick="swapVid('http://www.ontoptv.com/asx/ontoptv.asx')"',T:'Bloomberg'} ont the s_arrays.js the menu did not function anymore.
I put this function
// WMPlayer ONCLICK
function swapVid(iWhichVid){
Player.URL = iWhichVid ;
}
also on s_arays.js.
There no error but the menu did not appear. Is there something wrong in my command? What will I do to correct that?
Regards and more power to you. :D
Date: 8 Aug 2005 3:57 am
You should do it like this:
{U:'javascript:swapVid("http://www.ontoptv.com/asx/ontoptv.asx")',T:'Bloomberg'}
Regards and more power to you too!!! :D
Date: 8 Aug 2005 4:14 am
Still the menu did not appear.. :(
What will we do?
Date: 8 Aug 2005 5:30 am
May I please take a look at an example? It is hard to guess what may be the reason for the problem. :?
Date: 8 Aug 2005 10:30 pm
Here is the sample of my application where I want to use your Smartmenus. Kindly click on the site --> http://wmplayer2005.bravehost.com/
Regards and more power....
Date: 9 Aug 2005 9:27 am
I didn't see any link to the SmartMenus script on that page. :? Is this actually the page where the menus don't appear?