Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help popup link description 'Undefined' ???

Status
Not open for further replies.

mxw

Programmer
Jul 24, 2001
79
CA
Please help JS gurus!

I'm a javascript novice trying to modify this handy 'mouseover link description' script to include a footer.

this.header
this.message
this.footer

Testing:

Thanks kindly,
mxw
~Eeegads~
 
looks to me like you haven't entered a value for "fstyle" in the declaration of hmsg, so helpmsg() is interpreting what you want "footer" to be as "fstyle" and treating "footer" as null or "undefined".

this should fix it:
hmsg["testpop"] = new helpmsg(
&quot;Title goes here&quot;, &quot;h3&quot;, &quot;bold&quot;, &quot;Message text goes here.<br>Font face Verdana<br>Font size -1.<br>&quot; ,&quot;&quot;, &quot;Footer goes here.<br>Font size -2.&quot;);

I tested this, and it works but since you have the opener link's &quot;onMouseOut&quot; set to clearHelp(), the help window disappears immediately.


 
jemminger!
I never would have thought/discovered adding this &quot;&quot;
thank you so much. It looks great now!
I'm still playing with this code, seeing if I can get it to work in frames by adding
frame1. to the var cmdstr=&quot;top.&quot;

function startHelp(msgindex) {
var cmdstr=&quot;top.frame1.&quot; + this.name + &quot;.showHelp('&quot; + msgindex + &quot;')&quot;;

IT WORKS!!!
but now it Only works in Frames :(

can I use if else statement ... like it checks for frames if else loads as
var cmdstr=&quot;top.&quot; + this.name + &quot;.showHelp('&quot; + msgindex + &quot;')&quot;;

Is that possible???

Thanks again!!! ~Eeegads~
 
Cool! This works!
var cmdstr=this.name + &quot;.showHelp('&quot; + msgindex + &quot;')&quot;;

Thanks to Joseph Eddy
;)
mxw ~Eeegads~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top