I want a Tooltip in Javascript(URGENT)

  • Thread starter seniordemi seniordemi
  • Start date
S

seniordemi seniordemi

Hi, I have a table and I want to put a tooltip with setattribute, but is
incompatible with Internet Explores, what can I do?Help please!!(I´m
spanish)

function setInfoDay(nDia,sInfo)
{
for(var r=2;r<=7;r++)
{
for(var c=1;c<=7;c++)
{
element.rows(r-1).cells(c-1).setAttribute("INFO",sInfo);
}
}
}
 
E

Evertjan.

seniordemi seniordemi wrote on 03 feb 2009 in comp.lang.javascript:
Hi, I have a table

Asking "urgent" on usenet is very impolite.

and I want to put a tooltip with setattribute,

Why use setattribute?
but is
incompatible with Internet Explores, what can I do?
Help please!!(I´m spanish)

Cannot help you there, would you like another nationality?
function setInfoDay(nDia,sInfo)
{
for(var r=2;r<=7;r++)
{
for(var c=1;c<=7;c++)
{
element.rows(r-1).cells(c-1).setAttribute("INFO",sInfo);

An element of what?

[element is part of the form structure, not of a table]

what is sInfo?
 
T

Tim Slattery

seniordemi seniordemi said:
Hi, I have a table and I want to put a tooltip with setattribute, but is
incompatible with Internet Explores, what can I do?Help please!!(I´m
spanish)

function setInfoDay(nDia,sInfo)
{
for(var r=2;r<=7;r++)
{
for(var c=1;c<=7;c++)
{
element.rows(r-1).cells(c-1).setAttribute("INFO",sInfo);

why not:

element.rows(r-1).cells(c-1).title=sInfo;

The "title" attribute contains the tooltip text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,102
Messages
2,570,646
Members
47,253
Latest member
AntwanNews

Latest Threads

Top