tags:

views:

20

answers:

1

Hello i need to load an image from an database and the popup should be there when i keep the mouse over the images...i used http://www.vegabit.com/jquery_bubble_popup/

$(document).ready(function() {
    $('#dummy1').SetBubblePopup({
        innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="#">this is a link</a></p>'
    });
 });

how can i use this for some 10 images from database using php??

+1  A: 

Give each image a unique ID and give them the CSS class bubblepopup, then use this code.

$('.bubblepopup').SetBubblePopup({
    innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="#">this is a link</a></p>'
});
Lizard
i need to change the innerHtml text also ???
Arun
What text would change and where would you get that info from?
Lizard
database info such name of that image
Arun
You can get the name many ways, maybe use the title attribute.
Lizard