The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

Hover-over text

View previous topic View next topic Go down

Hover-over text

Post by Anzo on March 22nd 2016, 2:46 pm

I have an image and I want to add a paragraph that can show up when I hover over the image.

Also, can it be done like a pop up? You hover over and when you click or something you get a pop up that has a paragraph or something.


Posts : 303
Reputation : 6
Language : English/Arabic
Location : Baghdad - Iraq

Back to top Go down

Re: Hover-over text

Post by Ange Tuteur on March 22nd 2016, 3:17 pm

Hmm.. you could use this plugin I wrote to install a popup module.

Then an example of what you could do with it ;

<img id="popup-paragraph" src=""/>

JavaScript using the popup :
$(function() {
  var img = document.getElementById('popup-paragraph');
  if (img) {
    img.onclick = function() {'', 'Popup Example', function(popup) {
        popup.innerHTML = 'Hello world !';
Clicking the image should open a popup with the text : "Hello world !"

The API for the popup is in the second post :

Ange Tuteur

Male Posts : 13023
Reputation : 2690
Language : EN10, FR5
Location : Pennsylvania

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum