PDA

View Full Version : Combo Box Won't Go Past 3 Questions



justaskingaquestion
10-28-2008, 07:23 PM
I am using the combo box script (dynamicdrive.com/dynamicindex17/comboviewer.htm)

I have a problem though: The box won't go past 3 questions. I did the div for the fourth question and the answer just doesn't display. I have 10 questions prepared for it. Advice?

My page is: http://www.prioritywindows.com/HelpMe.html

Thank you.

Kenny
10-28-2008, 10:27 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><TITLE>Tu3.18p37</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<STYLE type=text/CSS>

</STYLE>

<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY scroll="auto">

<DIV id="AsHere">_</div>
<SCRIPT type="text/javascript">
var Qs=['seven','six','five','four','three','two','0ne'];
var As=['cyan','purple','pink','blue','green','yellow','red']

var M='<select onchange="getA(this.selectedIndex)">'
for(i=0;i<Qs.length;i++){M+='<OPTION>'+Qs[i]+'</OPTION>'}

M+='</select>';
document.write(M)
function getA(x){document.getElementById('AsHere').innerHTML=As[x]}
</SCRIPT>



</BODY></HTML>