Posted 12 years ago
·
Author
Replace IMAGEURLHERE with the URL to the image you wish to replace your current Avipic.
<script type="text/javascript">
function changeAviPic(new_avipic){
var sees_widgets = IMVU.AvatarWidgetOnlineStatus ? 1 : 0;
if(sees_widgets){
imvustylez_data_str = document.getElementById("top_links").innerHTML;
if(imvustylez_data_str){
imvustylez_aviid = imvustylez_data_str.substring(imvustylez_data_str.lastIndexOf('=')+1,imvustylez_data_str.lastIndexOf('"'));
} else {
imvustylez_aviid = IMVU.data.customerID;
}
document.getElementById('showpopup-'+imvustylez_aviid).innerHTML= '<img alt="avatar picture" border=0 src="'+ new_avipic +'">';
} else {
document.getElementById('avBigPic').getElementsByTagName('a')[0].innerHTML= '<img alt="avatar picture" border=0 src="'+ new_avipic +'">';
}
}
changeAviPic("IMAGEURLHERE");
</script>