//下拉菜单实例
//利用下拉菜单实现字体颜色的替换
s wa="黑;红;绿;蓝"
sl(wa,";",c)
uls(1,c)
.注:1是下拉菜单ID
ug(1,"selecteditem",b)
.获取下拉框参数
f(b=="红")
.判断是否红色执行以下代码
{
us(15,"textcolor","#ffff0a00")
}
else f(b=="蓝")
.判断是否蓝色执行以下代码
{
us(15,"textcolor","#ff001eff")
}
else f(b=="黑")
.判断是否黑色执行以下代码
{
us(15,"textcolor","#f8000000")
}
else f(b=="绿")
.判断是否绿色执行以下代码
{
us(15,"textcolor","#ff00cc22")
}