Quote:
Originally posted by LangTuDaTinh
i have problem /w setting up template #2
<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array.theImages[0] = '<img src="$avatarurl">'theImages[1] = '<img src="$post[field6]">'// line remarked to show pattern
// theimages[2] = '<img src="$post[field7]">'
// do not edit anything below this linevar j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function avatar(){document.write(''+theImages[whichImage]+'');}avatar();// End --></script>
it seems the code is mixed...
what is that...if i set 2 more random avatar (total 3 ..include the default one)...what is i do with this second template...thanks
|
ooooops
i checked it before i put it up but for some reason it removed all the breaks
i've updated the link at the top with the right layout