Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:27

Tooltip and xslt


Poster: ballo
Dated: Wednesday November 2 2005 - 12:15:54 GMT

Hi,
Anyone who can help me with this?

I have a problem sending a xsl value with my tooltip:

onMouseover="showtip(this,event, __at__ href)" -I want it to say somthing like this, the javascript gives me error.

The Jscript:
if (!document.layers&&!document.all)
event="test"
function showtip(current,e,text){

if (document.all){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
}
else
current.title=text
}

else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}

I really appreciate any help, hope your all fine.

Tor


Poster: Andy
Dated: Thursday November 3 2005 - 14:47:15 GMT

Hi,

event, this and e are all reserved words in JavaScript and should never be used unless part of an object.

Not sure if it helps but try changing the variable names.