Log in

View Full Version : Tooltips and PHP


parayna
09-19-2016, 05:48 AM
Hello! Is it possible to implement tooltips into a PHP element? Basically, I want to put tooltips onto my register page (so instead of text next to the 'Username: ', a tooltip will pop up when they hover over an image of a '?' or the word itself. So that the explanation can be tucked away. I want this for all 'titles', so it looks a little less cluttered and so it looks better!)

I have tried doing it myself, Googling the information, and have tried various solutions from the internet but to no avail... could someone have an idea? Thank you ^_^

I will then probably use it for a lot more pages XD

(Oh, and I put tooltips in in preparation for Kyttias' Shop and Inventory mod, although I haven't yet put them in themselves. I only installed tooltips for now! -- I have to get all the shops and images planned and completed XD)

Hall of Famer
09-19-2016, 10:00 AM
If you use bootstrap it will be easy to add tooltip to your site. All you need is to include bootstrap CSS, JavaScript files and tether's JavaScript file.