uhmm by the way, just wanted to ask if this time is this right? it seem may primary photo is not showing..T_T.. pls. help
var gifPhoto;
try {
gifPhoto = document.write("<style type=text/css>div.imgblock200{width:200;height:200;overflow:hidden}</style>");
}catch(e) {
gifPhoto = document.createElement("<style type=text/css>");
}
gifPhoto = "<img src='http://i99.photobucket.com/albums/l313/mark890/prft1.gif' width='200' height='200'>";
getDivElements("imgblock200",document.getElementById("content_controlpanel_1_1"),"div")[0].innerHTML=gifPhoto;
function getDivElements(divClass,getId,tagName) {
var classElements = new Array();
if ( getId == null )
getId = document;
if ( tagName == null )
tagName = '*';
var esle = getId.getElementsByTagName(tagName);
var esleLength = esle.length;
var pattern = new RegExp("(^\s*|\s*$)" + divClass + "(\s|[\$]*?)");
for (i = 0,a = 0;i < esleLength;i++) {
if (pattern.test(esle[i].className)) {
classElements[a] = esle[i];
a++;
}
}
return classElements;
}
Last edited by xxxNotAboutYouxxx (2007-09-17 23:21:05)