[help] anyone good at javascript? need assisstance on mod

Everything on my user accounts panel panther mod is working splendidly except for one little item which has me stymied. I've tried everything I can think of, so I am looking for some help out there anywhere. If you are good with javascript, I'd appreciate it if you can take a gander at my problem.

the probblem is best explained by the pic below... as you can see, the current user image is not showing up in the right location. This image is called up through a javascript (not my idea, Microsoft's idea) and nothing I've tried for rescripting it is working... the arrow points to where it should be placed...

usrimgprob.jpg

here is the related java script:

[size=2]
function PageInit()

{

var oUser = top.window.g_oSelectedUser;

var bSelf = top.window.IsSelf();

top.window.PopulateLeftPane(bSelf ? idRelatedTaskContent.innerHTML : null, idLearnAboutContent.innerHTML, idPreview.innerHTML);

top.window.idPicture.src = oUser.setting("Picture");

_szPictureSource = oUser.setting("PictureSource");

if (_szPictureSource)

{

if (0 == _szPictureSource.length)

_szPictureSource = null;

else

_szPictureSource = _szPictureSource.toLowerCase();

}

var szTitle = bSelf ? idPageTitle.innerHTML : idAltPageTitle.innerHTML;

idPageTitle.innerHTML = szTitle.replace(/%1/g, top.window.GetUserDisplayName(oUser));

idWelcome.ttText = top.window.L_Welcome_ToolTip;

EnumPics(top.window.GetShell().NameSpace(35).Self.Path + "MicrosoftUser Account PicturesDefault Pictures");

window.setTimeout("InitCameraLink();", 0);

idPictures.focus();

}

[/size]

here is the related html in the body:




Is there a way to perhaps separate these into two functions and make the call for the current user pic by itself and repositionable in its own table or layer? Is the use of innerHTML even necessary? Can't this be done with a img.src = script? I've tried it but couldn't get it to work for some reason. Any ideas? Otherwise this mod is good to go.

Thanks.

#254135

c'mon people reveal your true programming skills....

help the man out....

he is doing real good work.

#254505

Is there any CSS that goes with it?

What does the PopulateLeftPane(); function actually do?

It looks like the PopulateLeftPane(); function is the one actually deciding how the HTML should be made.

#254591

thanks guys. I figured it out. Problem fixed. Of course it turned out to be an easy solution that eluded me because I was too busy looking at the more complicated solutions. Just had to rename top.picture.idPicture.src to idPicture.src, enter it its definition above the populateLeftPane, fix the html to accomodate the name change and voila. Works nicely now...

usrmgrfix.jpg

lots of little pieces to fix up but will be out soon

#254835