本文介绍了如果满足下拉菜单中选定值的要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
我已经为此工作了一个星期左右,这使我对所选项目产生了疑问.它不起作用,请您能帮忙吗?
Hi Guys.
I''ve been working on this for like a week now and it''s giving me a problem with the selected item. It''s not working, please can you assist?
<script src="https://pcmchatproxy3.valueactive.eu/js/MgsLiveChatControl.js" type ="text/javascript"></script>
<script type ="text/javascript">
function nav()
{
var w = document.jump.menu.selectedIndex;
var url_add = document.jump.menu.options[w].value;
// nav1(url_add);
//
// }
//
// function nav1(url_add)
// {
if (url_add == 0)
{
LoadPromotions();
}
else if (url_add == 1)
{
LoadBanking();
}
else if (url_add == 2)
{
LoadFAQS();
}
else if (url_add == 3)
{
LoadSupport();
}
}
function LoadSupport()
{
try
{
var CasinoId = "322";
var BrowserLanguage = "En";
var SessionLanguage = "En";
var TopPosition = "350";
var LeftPosition = "300";
var Resource = "Website: Contact US";
var AutoLogin = true;
var DisableProxyPopUp = false;
var ProxyPageURL = " ";
var TrackingGuid = "";
var PlayerLoginName = "";
var SystemType = "2";
var SessionId = "";
var SessionType = "";
var NotificationURL = ""
var PSLLoginName = "";
var stepId = "1420";
MgsLiveChatControl.InitializeMgsLiveChatControl(CasinoId, BrowserLanguage, SessionLanguage, TrackingGuid, PlayerLoginName, SystemType, SessionId, SessionType, AutoLogin, TopPosition, LeftPosition, Resource, DisableProxyPopUp, ProxyPageURL, PSLLoginName,NotificationURL,CasinoId, stepId);
}
catch(Error)
{
}
}
function LoadPromotions()
{
try
{
var CasinoId = "322";
var BrowserLanguage = "En";
var SessionLanguage = "En";
var TopPosition = "350";
var LeftPosition = "300";
var Resource = "Website:Promotions";
var AutoLogin = true;
var DisableProxyPopUp = false;
var ProxyPageURL = " ";
var TrackingGuid = "";
var PlayerLoginName = "";
var SystemType = "2";
var SessionId = "";
var SessionType = "";
var NotificationURL = ""
var PSLLoginName = "";
var stepId = "1438";
MgsLiveChatControl.InitializeMgsLiveChatControl(CasinoId, BrowserLanguage, SessionLanguage, TrackingGuid, PlayerLoginName, SystemType, SessionId, SessionType, AutoLogin, TopPosition, LeftPosition, Resource, DisableProxyPopUp, ProxyPageURL, PSLLoginName,NotificationURL,CasinoId, stepId);
}
catch(Error)
{
}
}
</script>
</head>
<body>
<form name="jump">
<select name="menu" onchange = "javascript:nav()">
<OPTION VALUE="javascript:LoadPromotions()">Promotions</OPTION>
<OPTION VALUE="javascript:LoadBanking()">Banking</OPTION>
</select>
谢谢,
Ndeza
Thanks,
Ndeza
推荐答案
<script src="https://pcmchatproxy3.valueactive.eu/js/MgsLiveChatControl.js" type ="text/javascript"></script>
<script type ="text/javascript">
function nav(dropDown)
{
var w = dropDown.selectedIndex;
var url_add = dropDown.options[w].value;
// nav1(url_add);
//
// }
//
// function nav1(url_add)
// {
if (url_add == "Promotions")
{
LoadPromotions();
}
else if (url_add == "Banking")
{
LoadBanking();
}
else if (url_add == 2)
{
LoadFAQS();
}
else if (url_add == 3)
{
LoadSupport();
}
}
function LoadBanking()
{
}
function LoadSupport()
{
try
{
var CasinoId = "322";
var BrowserLanguage = "En";
var SessionLanguage = "En";
var TopPosition = "350";
var LeftPosition = "300";
var Resource = "Website: Contact US";
var AutoLogin = true;
var DisableProxyPopUp = false;
var ProxyPageURL = " ";
var TrackingGuid = "";
var PlayerLoginName = "";
var SystemType = "2";
var SessionId = "";
var SessionType = "";
var NotificationURL = ""
var PSLLoginName = "";
var stepId = "1420";
MgsLiveChatControl.InitializeMgsLiveChatControl(CasinoId, BrowserLanguage, SessionLanguage, TrackingGuid, PlayerLoginName, SystemType, SessionId, SessionType, AutoLogin, TopPosition, LeftPosition, Resource, DisableProxyPopUp, ProxyPageURL, PSLLoginName,NotificationURL,CasinoId, stepId);
}
catch(Error)
{
}
}
function LoadPromotions()
{
try
{
var CasinoId = "322";
var BrowserLanguage = "En";
var SessionLanguage = "En";
var TopPosition = "350";
var LeftPosition = "300";
var Resource = "Website:Promotions";
var AutoLogin = true;
var DisableProxyPopUp = false;
var ProxyPageURL = " ";
var TrackingGuid = "";
var PlayerLoginName = "";
var SystemType = "2";
var SessionId = "";
var SessionType = "";
var NotificationURL = ""
var PSLLoginName = "";
var stepId = "1438";
MgsLiveChatControl.InitializeMgsLiveChatControl(CasinoId, BrowserLanguage, SessionLanguage, TrackingGuid, PlayerLoginName, SystemType, SessionId, SessionType, AutoLogin, TopPosition, LeftPosition, Resource, DisableProxyPopUp, ProxyPageURL, PSLLoginName,NotificationURL,CasinoId, stepId);
}
catch(Error)
{
alert(Error);
}
}
</script>
</head>
<body>
<form name="jump">
<select name="menu" onchange = "javascript:nav(this)">
<OPTION VALUE="Promotions">Promotions</OPTION>
<OPTION VALUE="Banking">Banking</OPTION>
</select>
这篇关于如果满足下拉菜单中选定值的要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!