martinsafp
Technical User
I have a problem,
this problem is about an 'alt' (just like with 'alt="Tek-Tips"' on an image).
In the next script (just a little piece of the whole) there is a line which begins with 'pretxt':
function mo(txt){
if(ie5) yoff=document.body.scrollTop;
if(ie||ns){
pretxt="<table width=152 cellpadding=1 cellspacing=0 border=0><tr><td><font color=\"#000000\" face=\"Arial\" size=1>";
posttxt="</font></td></tr></table>";
windowheight=Gl_get_window_height();
windowwidth=Gl_get_window_width();
mylayer.write(pretxt+txt+posttxt);
txtheight=mylayer.height;
txtwidth=mylayer.width;
if(!mov) tmr=setInterval('follow()',25);
mov=true
}
window.status=txt
}
I want to change 'width=152' (the width from the longest alt in my page) into some variable which looks at the length of the line and sets that variable to that size.
There are multiple 'alts' in my page, each one has an alternate length.
<a href=" onmouseover="if(started) mo('The Alt');return true;" onmouseout="if(started) mout();">
Any suggestions?
this problem is about an 'alt' (just like with 'alt="Tek-Tips"' on an image).
In the next script (just a little piece of the whole) there is a line which begins with 'pretxt':
function mo(txt){
if(ie5) yoff=document.body.scrollTop;
if(ie||ns){
pretxt="<table width=152 cellpadding=1 cellspacing=0 border=0><tr><td><font color=\"#000000\" face=\"Arial\" size=1>";
posttxt="</font></td></tr></table>";
windowheight=Gl_get_window_height();
windowwidth=Gl_get_window_width();
mylayer.write(pretxt+txt+posttxt);
txtheight=mylayer.height;
txtwidth=mylayer.width;
if(!mov) tmr=setInterval('follow()',25);
mov=true
}
window.status=txt
}
I want to change 'width=152' (the width from the longest alt in my page) into some variable which looks at the length of the line and sets that variable to that size.
There are multiple 'alts' in my page, each one has an alternate length.
<a href=" onmouseover="if(started) mo('The Alt');return true;" onmouseout="if(started) mout();">
Any suggestions?