Tue Jan 27, 2009 8:42 pm
team = new Array(
new Array(new Array(""),
new Array("Automotive Service & Repair/Oil Change"),
new Array("Car Wash/Detailing Service"),
new Array("Tire Stores"),
new Array("Transmission Centers")
),
new Array("")
),
<script langauge="javascript">
team = new Array(
new Array(new Array(""),
new Array("Automotive Service & Repair/Oil Change"),
new Array("Car Wash/Detailing Service"),
new Array("Tire Stores"),
new Array("Transmission Centers")
),
new Array("")
),
function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// empty existing items
for (i = selectCtrl.options.length; i >= 0; i--) {
selectCtrl.options[i] = null;
}
prompt = (itemArray != null) ? goodPrompt : badPrompt;
if (prompt == null) {
j = 0;
}
else {
selectCtrl.options[0] = new Option(prompt);
j = 1;
}
if (itemArray != null) {
// add new items
for (i = 0; i < itemArray.length; i++) {
selectCtrl.options[j] = new Option(itemArray[i][0]);
if (itemArray[i][1] != null) {
selectCtrl.options[j].value = itemArray[i][1];
}
j++;
}
// select first item (prompt) for sub list
selectCtrl.options[0].selected = true;
}
}
// End -->
</script>
Tue Jan 27, 2009 9:25 pm
Tue Jan 27, 2009 9:52 pm
http://www.surf2saveinc.com/catlist5.shtml
Tue Jan 27, 2009 10:10 pm
Wed Jan 28, 2009 12:54 am
Wed Jan 28, 2009 9:40 pm
Wed Jan 28, 2009 9:57 pm
new Array(new Array(""), new Array("Cruises"), new Array("Honeymoons"), new Array("Tours/Land Packages")
),
Wed Jan 28, 2009 10:16 pm
Wed Jan 28, 2009 10:21 pm
Thu Jan 29, 2009 12:15 am
<html>
<script type="text/javascript">
function FillSelection()
{
var divselection = document.getElementById('divselection');
team = new Array(
new Array(new Array(""),
new Array("Automotive Service & Repair/Oil Change"),
new Array("Car Wash/Detailing Service"),
new Array("Tire Stores"),
new Array("Transmission Centers")),new Array("") );
document.getElementById('subject');
var myoptions="<select id='myoptions' >";
alert(team[0].length);
for(var i=0;i<team[0].length;i++)
{
myoptions+="<option>"+team[0][i]+"</option>";
alert(team[0][i]);
}
myoptions+="</select>";
divselection.innerHTML=myoptions;
}
</script>
<body onload="javascript: FillSelection();">
<div id="divselection">
<select id="myoptions" >
</select>
</div>
</body>
</html>
|
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.