Difference between revisions of "Template:Reading2"

Line 88: Line 88:
 
var submenuHTML = '';
 
var submenuHTML = '';
 
for(i1 = 0; i1 < pagenames[index].length - 1; i1++){
 
for(i1 = 0; i1 < pagenames[index].length - 1; i1++){
if(1)
+
if(i1 == pagenames[index].length - 2)
 
{
 
{
 
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "padding:7px; margin:0px; text-align:left;"><p style = "font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</p></div>';
 
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "padding:7px; margin:0px; text-align:left;"><p style = "font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</p></div>';

Revision as of 10:45, 5 September 2015