Avatar of ejunge
ejunge
 asked on

Text to appear when the mouse rolls over a hyperlink

I would like to have text from a database appear on the page or as a tool tip when the mouse is rolled over the hyperlink.  The hyperlink is create through a database.
The page has a theme on it.
Web Development Software

Avatar of undefined
Last Comment
hhammash

8/22/2022 - Mon
coreybryant

You can add title to you URL:
<a href="http://www.cnn.com" title="Click Here for CNN">CNN</a>

Corey
JOligario

the answer from corey is the easiest, trying to pull data from a database just because someone rolls over a hyperlink, would be next to impossible.

John
joligario@recoverdata.com
nai1634

If you are using VB script set the variables or use a Recordset and do the following.

<a href=<%=VariableURLfromDB%> title=<%=DescURLfromDB%>>

Or

<a href=<%=objRS("ColumnName1")> title=<%=objRS("ColumnName2")>>
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
hhammash

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ejunge

ASKER
This answer came closest to solving the problem, but the text appears in the status bar instead of as a title.  This is the HTML
<a href="http://www.sidoti.com/testticker.asp?Ticker=<%=FP_FieldURL(fp_rs,"Ticker")%>title=<%=FP_FieldVal(fp_rs,"corporate description")%>">

how can I fix this?

Thanks for your help
hhammash

Hi,

Do not put the Title in the HyperLink Properties.  No, click the page in HTML Mode and insert the Title Line.

It looks like your hyperlink is created using the hyperlink parameter.

Regards
hhammash
hhammash

Hi,
Put your hyperlink as follows:

<a href="HiItisMe.asp?CustomerID=<%=FP_FieldURL(fp_rs,"CustomerID")%>" title=<%=FP_FieldVal(fp_rs,"ContactTitle")%>>

Notice the quotation mark " before the title.

Best regards
hhammash
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
hhammash

Hi,

This is the best:

<a title="<%=FP_FieldHTML(fp_rs,"ContactTitle")%>" href="HiItisMe.asp?CustomerID=<%=FP_FieldURL(fp_rs,"CustomerID")%>">

Try it.

Regards
hhammash
ejunge

ASKER
In what section of the HTML should I place this code? I'm still having a difficult time getting this right.  Thanks for your help!
hhammash

Hi,

Ok,  if you are finding a difficulty in putting it manually here is another quick solution.

Open your DRW in normal mode
Right click the field that you want
Select hyperlink
Point to the page that you want (now the page name appears in the Addess field)
Click on Screen Tip button. It is on top above the Bookmark button.
In the textbox that appears put:

<%=FP_FieldHTML(fp_rs,"YourFieldName")%>

Then press OK
Then press OK

This will do it.

Regards
hhammash
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ejunge

ASKER
hhammash,
Thank you for your help.  The screen tips worked after I upgraded to FP XP.
EJ
hhammash

You are welcome ejunge anytime.

hhammash