1 reply [Last post]
mumebuhi
mumebuhi's picture
Offline
Regular
Last seen: 14 years 15 weeks ago
Timezone: GMT-8
Joined: 2007-08-23
Posts: 13
Points: 0

Hi,

Would anybody share about how to pop-up a tooltip like the one in Yahoo! Mail? Go to https://login.yahoo.com/config/mail?.intl=us and hover your mouse on "Prevent Password Theft".

Thank you.

Buhi

Tags:
gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 30 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

This is a javascript pop-up.

This is a javascript pop-up. If javascript is disabled, no pop-up.

Look for this markup:

if(top == self) {
document.write(
"










Protect users on this computer against password theft
(\"phishing\") with a recognizable sign-in seal.


Create one now — it's fast and easy.


What's this?




")
}
else {
top.location.href = "http://www.yahoo.com"
}


and so on.

I cleaned up the markup a bit for easier readability.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.