Footers:
<script>
var n = 0;
var Gallery = new Array();
var GalName = "GALLERY NAME";
Gallery[n++] = ["IMAGE NAME","IMAGE URL"];
document.getElementById("cat").innerHTML += "<option value='http://smcodes.smfforfree3.com' id='NewGallery'>[" + GalName + "]</option>";
document.getElementById("NewGallery").onclick = function(){
for(x=0;x<Gallery.length;x++){
document.getElementById("file").innerHTML += "<option value='" + Gallery[x][1] + "' onclick='Gal(this);'>" + Gallery[x][0] + "</option>";
};};
function Gal(Image){
document.getElementById("avatar").src = Image.value;
var UserPic = document.getElementsByTagName("input");
for(x=0;x<UserPic.length;x++){
if(UserPic[x].name == "userpicpersonal"){
UserPic[x].value = Image.value;
};};
document.getElementById("avatar_choice_external").checked = "true";
};
</script>
This lets you add more Avatars to the galleries already there.
GALLERY NAME = the Name for the new gallery
IMAGE NAME = The name for the image
IMAGE URL = The URL of the image
To add more images, add more of these lines:
Gallery[n++] = ["IMAGE NAME","IMAGE URL"];
Enjoy