<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<style type="text/css">
body, html { font-family:helvetica,arial,sans-serif; font-size:90%; }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js"
djConfig="parseOnLoad: true">
</script>
<script>
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.form.ComboBox");
var storeData = {
identifier: abbr ,
label: name ,
items: [{
abbr: ec ,
name: Ecuador ,
capital: Quito ,
label:"<img width= 16px height= 16px src= images/one.jpg />Ecuador"
},
{
abbr: eg ,
name: Egypt ,
capital: Cairo ,
label:"<img width= 16px height= 16px src= images/two.jpg />Egypt"
},
{
abbr: sv ,
name: El Salvador ,
capital: San Salvador ,
label:"<img width= 16px height= 16px src= images/three.jpg />El Salvador"
},
{
abbr: gq ,
name: Equatorial Guinea ,
capital: Malabo ,
label:"<img width= 16px height= 16px src= images/four.jpg />Equatorial Guinea"
},
{
abbr: er ,
name: Eritrea ,
capital: Asmara ,
label:"<img width= 16px height= 16px src= images/five.jpg />Eritrea"
},
{
abbr: ee ,
name: Estonia ,
capital: Tallinn ,
label:"<img width= 16px height= 16px src= images/six.jpg />Estonia"
},
{
abbr: et ,
name: Ethiopia ,
capital: Addis Ababa ,
label:"<img width= 16px height= 16px src= images/seven.jpg />Ethiopia"
}]
}
</script>
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dijit/themes/claro/claro.css"
/>
</head>
<body class=" claro ">
<div dojoType="dojo.data.ItemFileReadStore" data="storeData" jsId="countryStore">
</div>
<div dojoType="dijit.form.ComboBox" store="countryStore" labelAttr="label" labelType="html">
</div>
</body>
为了存档的目的,其他人应当有这个问题,只是 cut断了上述问题,以便采取行动。 当然,你必须找到自己的形象,但这项工作却不然。 Janie