Hover-over text
2 posters
Page 1 of 1
Hover-over text
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.
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.
Re: Hover-over text
Hmm.. you could use this plugin I wrote to install a popup module.
Then an example of what you could do with it ;
HTML :
JavaScript using the popup :
The API for the popup is in the second post : https://help.forumotion.com/t143260-a-popup-module-for-your-forum#976021
Then an example of what you could do with it ;
HTML :
- Code:
<img id="popup-paragraph" src="http://i84.servimg.com/u/f84/18/21/41/30/vash10.png"/>
JavaScript using the popup :
- Code:
$(function() {
var img = document.getElementById('popup-paragraph');
if (img) {
img.onclick = function() {
FA.Popup.open('', 'Popup Example', function(popup) {
popup.innerHTML = 'Hello world !';
});
}
}
});
The API for the popup is in the second post : https://help.forumotion.com/t143260-a-popup-module-for-your-forum#976021
Similar topics
» Hover text?
» Hover text on image
» Hover/Un-Hover Code
» Asking about get text and replace text in Javascript
» Link Hover - Cell Text addition
» Hover text on image
» Hover/Un-Hover Code
» Asking about get text and replace text in Javascript
» Link Hover - Cell Text addition
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum