Thanks
Here is my current code...
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>MiTunes</title>
- <style>
- .k4 {
- font-family: "Courier New", Courier, monospace;
- font-size: large;
- font-style: normal;
- font-weight: bold;
- text-transform: uppercase;
- color: #666666;
- background-color: #CCCCCC;
- letter-spacing: normal;
- text-align: center;
- word-spacing: normal;
- border: thin inset #666666;
- position: fixed;
- }
- .style1 {
- color: #0099FF;
- font-size: 24px;
- font-weight: bold;
- }
- .style2 {
- color: #000099;
- font-size: 24px;
- font-weight: bold;
- }
- .style3 {
- color: #0033FF;
- font-size: 24px;
- font-weight: bold;
- }
- .style4 {color: #000099; font-size: x-large; }
- .style5 {color: #003366; font-size: x-large; font-weight:bold }
- </style>
- <script type='text/javascript'>
- RnB=["Justin Timberlake","Timbaland","Jaz Z","G Unit"];
- Rap=["Eminem","50 Cent","The Game"];
- var s="";
- function show(choice){
- if(choice==1)music=RnB;
- if(choice==2)music=Rap;
- s="<form><select size='"+music.length+"'>";
- for(c=0;c<music.length;c++)
- s+="<option>"+music[c]+"</option>";
- s+="</select></form>";
- with(document.getElementById('examples').contentDocument){
- open();
- write(s);
- close();
- }
- }
- </script>
- <script type='text/javascript'>
- RnB=["Justin Timberlake","Timbaland","Jaz Z","G Unit"];
- Rap=["Eminem","50 Cent","The Game"];
- var s="";
- function show(choice){
- if(choice==1)music=RnB;
- if(choice==2)music=Rap;
- s="<form><select size='"+music.length+"'>";
- for(c=0;c<music.length;c++)
- s+="<option>"+music[c]+"</option>";
- s+="</select></form>";
- with(document.getElementById('examples2').contentDocument){
- open();
- write(s);
- close();
- }
- }
- </script>
- <script type='text/javascript'>
- Justin Timberlake=["Lovestoned","Gay Boy"];
- Eminem=["Mockingbird","Wrapper"];
- var t="";
- function show(artist){
- if(artist==1)song="Justin Timberlake";
- if(artist==2)song="Eminem";
- for(c=0;c<song.length;c++)
- with(document.getElementById('examples3'.contentDocument){
- open()
- write(t)
- close()
- }
- </script>
- </head>
- <body>
- <p>Select Genre</p>
- <form>
- <select name="select" onChange="show(this.selectedIndex);">
- <option>Select</option>
- <option>RnB</option>
- <option>Rap</option>
- </select>
- </form>
- <p>
- <iframe width="300" height="300" id='examples2'></iframe>
- <iframe width="300" height="300" id='examples3'></iframe>
- <iframe width="300" height="300" id='examples4'></iframe>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title></title>
- <script type='text/javascript'>
- function addIt(cKey)
- {
- d = document.forms["foo"].elements["bar"];
- d.value = (cKey.value=='backspace') ? d.value.slice(0,-1) : d.value+cKey.value;
- }
- </script>
- <body>
- <div><form name="foo" action=''>
- <fieldset><legend class="style4">Keyboard</legend>
- <table width="950" height="176" border="1" align="center" cellpadding="2" cellspacing="2">
- <tr>
- <td width="39" height="54" align="center" valign="middle" bgcolor="#000099"><INPUT name="PressQ" type=button class=style1 id="PressQ" onClick="addIt(this)" value=Q width="120" hspace=""></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=W></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=E></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=R></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=T></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=Y></td>
- <td width="39" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=U></td>
- <td width="43" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=I></td>
- <td width="43" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=O></td>
- <td width="43" align="center" valign="middle" bgcolor="#000099"><INPUT name="Button" type=button class=style1 onClick="addIt(this)" value=P></td>
- <td colspan="2" align="center" bgcolor="#000099">
- <input name="bar" type="text" class="style5" onFocus="document.forms["foo"].elements["focusedField"].value = this.name" value="" size="25" /></td></tr>
- <tr>
- <td height="54" align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=A></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=S></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=D></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=F></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=G></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=H></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=J></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=K></td>
- <td align="center" valign="middle" bgcolor="#0033CC"><INPUT name="Button" type=button class=style2 onClick="addIt(this)" value=L></td>
- <td bgcolor="#0033CC" span class="style1"> </span></td>
- <td width="192" bgcolor="#0033CC"> </td>
- <td width="224" bgcolor="#0033CC"> </td>
- </tr>
- <tr>
- <td height="58" align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=Z></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=X></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=C></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=V></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=B></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=N></td>
- <td align="center" valign="middle" bgcolor="#0099FF"><INPUT name="Button" type=button class=style3 onClick="addIt(this)" value=M></td>
- <td colspan="3" align="center" valign="middle" bgcolor="#0099FF"><input name="button" type='button' class="style3" style='width:120px height:10px' onClick="addIt(this)" value=backspace></td>
- <td bgcolor="#0099FF">
- <td bgcolor="#0099FF">
- </tr>
- </table>
- </body>
- </iframe>
- </p>
- <script type='text/javascript'>
- Justin Timberlake=["Justin Timberlake","Timbaland","Jaz Z","G Unit"];
- Timbaland=["Eminem","50 Cent","The Game"];
- var t="";
- function show(song){
- if(choice==1)song=Justin Timberlake;
- if(choice==2)song=Timbaland;
- t="<form><select size='"+music.length+"'>";
- for(c=0;c<music.length;c++)
- t+="<option>"+music[c]+"</option>";
- t+="</select></form>";
- with(document.getElementById('examples2').contentDocument){
- open();
- write(s);
- close();
- </script>
- <script type='text/javascript'>;
- Justin Timberlake=["Justin Timberlake","Timbaland","Jaz Z","G Unit"];
- Timbaland=["Eminem","50 Cent","The Game"];
- var t="";
- function show(song){
- if(choice==1)song=Justin Timberlake;
- if(choice==2)song=Timbaland;
- t="<form><select size='"+song.length+"'>";
- for(c=0;c<song.length;c++)
- t+="<option>"+song[t]+"</option>";
- t+="</select></form>";
- with(document.getElementById('examples3').contentDocument){
- open();
- write(t);
- close();
- }
- }
- </script>
- </body>
- </html>