.aw-image-admin {background: url(/img/admin.png); width:32px; height:32px;}
var cstart = new AW.UI.Combo;
cstart.setSize(100, 32);
cstart.setId("comboStart");
cstart.setControlText("Admin");
cstart.setControlImage("admin");
cstart.setItemText(["Home", "Config", "PTC"]);
cstart.setItemCount(3);
document.write(cstart);
<style>
.aw-image-admin {background: url(/img/admin.png);}
#comboStart .aw-item-image {
width:32px;
height:32px;
margin-top:-15px;
margin-bottom: -15px;
}
.aw-gecko #comboStart .aw-item-text {
left: 36px;
}
</style>
<script>
var cstart = new AW.UI.Combo;
cstart.setSize(100, 32);
cstart.setId("comboStart");
cstart.setControlText("Admin");
cstart.setControlImage("admin");
cstart.setItemText(["Home", "Config", "PTC"]);
cstart.setItemCount(3);
document.write(cstart);
</script>
var cstart = new AW.UI.Combo;
cstart.setSize(100, 32);
cstart.setId("comboStart");
cstart.setControlText("Admin");
cstart.setControlImage("admin");
cstart.setItemText(["Home", "Config", "PTC"]);
cstart.setItemCount(3);
cstart.getContent("box/text").setStyle("left", "36px");
cstart.getContent("box/image").setStyle("height", "32px");
cstart.getContent("box/image").setStyle("width", "32px");
cstart.getContent("box/image").setStyle("margin-top", "-15px");
cstart.getContent("box/image").setStyle("margin-bottom", "-15px");
This topic is archived.