|
-
[RESOLVED] ComboBox + AS ... problem
i have a ComboBox (flash 8) and this is my AS code in section 'onchange'. The problem is that if i select the first (v=='1') i view the window with the values of javascript, but if i select other (vv='2' etc...) not open the javascript window.
what can i do?
thank you for yours attention.
var v = _root.combobox1.getValue();
if (v=='1'){
getURL("javascript:NewWindow=window.open('http://localhost/xalshop/UplSponsor1.asp','newWin','width=570,height=300,le ft=10 0,top=50,toolbar=No,location=No,scrollbars=no,stat us=No,resizable=no,fullscreen=no'); NewWindow.focus();void(0);");
} else if (v=='2'){
getURL("javascript:NewWindow=window.open('http://localhost/xalshop/UplSponsor2.asp','newWin','width=570,height=300,le ft=10 0,top=50,toolbar=No,location=No,scrollbars=no,stat us=No,resizable=no,fullscreen=no'); NewWindow.focus();void(0);");
} else if (v=='3'){
getURL("javascript:NewWindow=window.open('http://localhost/xalshop/UplSponsor3.asp','newWin','width=570,height=300,le ft=10 0,top=50,toolbar=No,location=No,scrollbars=no,stat us=No,resizable=no,fullscreen=no'); NewWindow.focus();void(0);");
} else if (v=='4'){
getURL("javascript:NewWindow=window.open('http://localhost/xalshop/UplSponsor4.asp','newWin','width=570,height=300,le ft=10 0,top=50,toolbar=No,location=No,scrollbars=no,stat us=No,resizable=no,fullscreen=no'); NewWindow.focus();void(0);");
} else if (v=='5'){
getURL("javascript:NewWindow=window.open('http://localhost/xalshop/UplSponsor5.asp','newWin','width=570,height=300,le ft=10 0,top=50,toolbar=No,location=No,scrollbars=no,stat us=No,resizable=no,fullscreen=no'); NewWindow.focus();void(0);");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|