Difference between revisions of "Template:Reading2"

Line 60: Line 60:
 
for(i1 = 0; i1 < pagenames.length; i1++){
 
for(i1 = 0; i1 < pagenames.length; i1++){
 
if(pagenames[i1].length <= 1){
 
if(pagenames[i1].length <= 1){
menuHTML += '<div onclick="gotopage(address['+i1+'][0])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"><text  style = "line-height: 1em; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
+
menuHTML += '<div onclick="gotopage(address['+i1+'][0])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"></br><text  style = "line-height: 1em; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
 
}else{
 
}else{
menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"><text  style = "line-height: 1em; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
+
menuHTML += '<div onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + i1 + ')" style = "border-radius:1em; height:100%; width:10%; float:left; text-align:center;"></br><text  style = "line-height: 1em; font-size: 12px; color: #ffffff;text-decoration:none;">' + pagenames[i1][0] + '</text ></div>';
 
}
 
}
 
}
 
}
Line 91: Line 91:
 
if(i1 == pagenames[index].length - 2)
 
if(i1 == pagenames[index].length - 2)
 
{
 
{
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "border-bottom-left-radius: 1em; border-bottom-right-radius: 1em; padding:7px; margin:0px; text-align:left;"><text style = "line-height: 1em; font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</text ></div>';
+
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "border-bottom-left-radius: 1em; border-bottom-right-radius: 1em; padding:7px; margin:0px; text-align:left;"></br><text style = "line-height: 1em; font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</text ></div>';
 
}else{
 
}else{
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "padding:7px; margin:0px; text-align:left;"><text  style = "line-height: 1em; font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</text ></div>';
+
submenuHTML += '<div onclick="gotopage(address['+index+']['+i1+'])" onmouseout="dullMenu(this)"onmouseover="lightUpMenu(this, ' + -1 + ')" style = "padding:7px; margin:0px; text-align:left;"></br><text  style = "line-height: 1em; font-size: 11px; color: #ffffff;text-decoration:none;">' + pagenames[index][i1 + 1] + '</text ></div>';
 
}
 
}
 
}
 
}

Revision as of 00:46, 9 September 2015