Welcome to WebmasterWorld Guest from 107.20.5.156

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Tool Tips for Filenames

How do I make my own?

     

nomadsoulkarma

10:04 am on Apr 4, 2010 (gmt 0)

5+ Year Member



When you place your cursor over any file, a tool tip box always pops up giving file info etc...

Well, I want to have my own information in the box. I don't know if or how to do this in a website.

Let me explain, I have an mp3 language translation website, after doing a db search, files are listed and click-able. Before the user listens to the mp3, I'd like to have a little pop-up with grammar tips phonetics or even the file's text translation.

All files are on a Linux server and am using a scaled down kplaylist (php , mysql)

lammert

10:15 am on Apr 4, 2010 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Hi nomadsoulkarma, welcome to WebmasterWorld!

There are many fancy solutions with Javascript to your problem, which can draw very pretty boxes but the easiest way is to use the title tag in the link element to the file. For example:

<a href="/example.mp3">File name</a>


could be replaced with

<a href="/example.mp3" title="here are the tips">File name</a>


and produce a text box with the extra information if the visitors hover with their mouse above the title.

nomadsoulkarma

11:13 am on Apr 4, 2010 (gmt 0)

5+ Year Member



Thank you for the kind welcome. I am looking forward to exploring this website.

Well, my links are generated from a mysql database and I have thousands of files. I probably should have posted this in the php section. I think I'm going to have to make a new text columns in one of the tables then figure out what to do from there.
I'm probably going to have to stick to what I've got until my skills become more sophisticated.Im possibly over my head.
Thanks for your help.

g1smd

11:37 am on Apr 4, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Yes, there's several parts:
- database to store the data,
- PHP and mySQL to manipulate the data,
- HTML to show the data.

nomadsoulkarma

12:26 am on Apr 5, 2010 (gmt 0)

5+ Year Member



So it can be done?
If you guys find and example, please link me.
Thanks

brotherhood of LAN

2:50 am on Apr 5, 2010 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Yes, there's several parts:
- database to store the data,
- PHP and mySQL to manipulate the data,
- HTML to show the data.


That's the way to go. The most arduous part is the 2nd part, you could use phpMyAdmin for that though, rather than developing an interface to add in your new column data