In the code in your post, IDNow is undefined. It might be defined elsewhere, as it looks like it needs to be in order produce the desired URL + query/get combo.
I'll let you work that out. As I say it may be defined elsewhere. Hopefully you understand what I mean. If not, let me know.
The larger problem is that you want to access the src attribute of a tip's image. Once the script initializes, I see no way of doing so other than directly accessing the image element. In the case of the second tip (imgtip1 is the second tip, imgtip0 would be the first tip), for the second tip that would be:
Code:
document.getElementById('imgtip1').getElementsByTagName('img')[0].src
So I'm thinking something like:
Code:
window.sLink="http://intranet/TelephoneDirectory/Handler/GetImage.ashx?ID=";
window.sParm="&S=LLP&W=50";
document.getElementById('imgtip1').getElementsByTagName('img')[0].src = sLink + IDNow + sParm;
Bookmarks