Coding questions???

  • Alan Lastufka
  • Proficient
  • Proficient
  • User avatar
  • Posts: 318
  • Loc: ChicagoLand, IL, USA

Post 3+ Months Ago

Quote:
if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
if(el.style.display != "block"){ //DynamicDrive.com change
for (var i=0; i<ar.length; i++){
if (ar[i].className=="submenu") //DynamicDrive.com change
ar[i].style.display = "none";
}
el.style.display = "block";
}else{
el.style.display = "none";
}
}
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>What about something like this Gary?</title></head>

<body bgcolor="000000" link="#FFCC00" vlink="#CC9900" alink="#FF9900">
<img src="file:///E|/HTML/GOL-demos.jpg" width="550" height="81"><br>
<br>
<table width="905" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="81" valign="top"><img src="file:///E|/HTML/User-Demos.jpg" width="81" height="236" align="top"></td>
<td width="824" valign="top"> <p><font color="#CC9900" size="-1" face="Arial, Helvetica, sans-serif">To
view the demos by these composers, simply click on their name and you
will get a drop down menu of their works. We coud have hired a handful
of professional demo makers to creat demos for us, but here we wanted
to highlight what could be done with GPO by our average user, ranging
in previous education and experience in sample libraries.</font>
<!-- Keep all menus within masterdiv-->
</p>
<div id="masterdiv">
<div class="menutitle" onclick="SwitchMenu('sub1')"><font color="#CCCCCC">Lastufka,
Alan </font></div>
<span class="submenu" id="sub1"> - <a href="file:///E|/HTML/mp3/widowofwar.mp3"><font size="+1">Widow
Of War</font></a><br>
<font color="#CC9900" face="Arial, Helvetica, sans-serif">This original
composition was scored by Alan Lastufka using the Garritan Personal Orchestra
exclusively. <br>
The voice was programed by Daniel Moy using DIVA By Design from Bela D
Media.<br>
<br>
<font size="-1">GPO Instrumentation: Solo Violin, Solo ContraBass, Solo
Horn, Ensemble Horn, Basic Orch Percussion.</font></font><br>
<br>
- <font size="+1"><a href="file:///E|/HTML/mp3/oktoberGPOex.mp3">October</a></font><br>
<font color="#CC9900" face="Arial, Helvetica, sans-serif">This was the
first GPO user demo, posted the day after Alan recieved his copy, this
is an original composition of his, <br>
originally writen for piano, it was later orchestrated for GPO.</font><font color="#CC9900" face="Arial, Helvetica, sans-serif"><font size="-1"><br>
<br>
GPO Instrumentation: Solo Violin, Solo Viola, Solo Cello and Solo ContraBass.
Chromatic Harp, English Horn and ContraBass Pizz.</font></font><font color="#CC9900"><br>
<br>
</font>
</span>
/****************************************************************************************
<div class="menutitle" onclick="SwitchMenu('sub2')"><font color="#CCCCCC">Garritan, Gary </font></div>
<span class="submenu" id="sub2"> - <a href="file:///E|/HTML/mp3/northerncallings.mp3"><font size="+1">Northern Callings</font></a><br>
<font color="#CC9900" face="Arial, Helvetica, sans-serif">This original
composition was scored by Gary Garritan using the Garritan Personal Orchestra
exclusively. <br>
<br>
<font size="-1">GPO Instrumentation: Solo Violin, Solo ContraBass, Solo
Horn, Ensemble Horn, Basic Orch Percussion.</font></font><br>
<br>
</font>
</span>
/*****************************************************************************************
<div class="menutitle" onclick="SwitchMenu('sub3')"><font color="#CCCCCC">Houston, Haynes </font></div>
<span class="submenu" id="sub3"> - <a href="file:///E|/HTML/mp3/northerncallings.mp3"><font size="+1">Houston's Song Here</font></a><br>
<font color="#CC9900" face="Arial, Helvetica, sans-serif">This original
composition was scored by Houston Haynes using the Garritan Personal Orchestra
exclusively. <br>
<br>
<font size="-1">GPO Instrumentation: Solo Violin, Solo ContraBass, Solo
Horn, Ensemble Horn, Basic Orch Percussion.</font></font><br>
<br>
</font>
</span>
/*****************************************************************************************


</td>
</tr>
</table>
<font color="#CCCCCC"></font><span class="submenu" id="sub4"> </span>
</body>
</html>


Is there a code I can insert to dynamically put these menus in alphabetical order? So that the composer's names are in alphabetical order even though I will need to keep adding them in chronoligical order at the end?
  • Xios
  • Student
  • Student
  • User avatar
  • Posts: 77
  • Loc: Saturn

Post 3+ Months Ago

I dont quite know the nswer myself but i know a site that might be able to help you...

Check out http://www.hotscripts.com
They have quite alot of decent scripts there that can help you

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 37 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.