Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('area').each(function(){
- $(this).qtip({
- content:
- '<div id="divimg">'+
- '<img src="img/'+ $(this).attr('imm') +'.png"></div>'
- ,
- show: {
- effect: function() { $(this).fadeIn(200); }
- },
- hide: {
- delay: 100,
- fixed: true,
- effect: function() { $(this).fadeOut(200); }
- },
- position: {
- my: 'top left', // Position my top left...
- at: 'bottom left', // at the bottom right of...
- },
- style: {
- width: 'auto',
- height: 'auto',
- classes: 'qtip-light'
- }
- });
- });
- ========================================================================================================
- $('area').each(function(){
- $(this).qtip({
- content: '<div id="all">'+
- '<div id="divleft">'+
- '<div id="divimg"><span class="helper"></span>'+
- '<img src="img/'+ $(this).attr('imm') +'.jpg"></div>'+
- '<div id="divright">'+
- '<a target=_blank href='+$(this).attr('more')+'>read more</a>'+
- // $(this).attr('imm')+
- '</div>'+
- '</div>'
- ,
- hide: {
- fixed: true
- },
- position: {
- my: 'top left', // Position my top left...
- at: 'bottom center', // at the bottom right of...
- },
- style: {
- width: 'auto',
- height: 'auto',
- classes: 'qtip-light'
- }
- });
- });
- ========================================================================================================
- $('area').each(function(){
- $(this).qtip({
- content:
- '<div id="all">'+
- '<div id="box">'+
- '<h2>'+$(this).attr('name')+'</h2></div>'+
- '<b>Location: </b>'+ $(this).attr('title')+'<br>'+
- '<br><b>Year: </b>'+ $(this).attr('year')+'<br>'+
- '<br><b>Est. Value: </b>'+ $(this).attr('est')+'<br>'+
- '<br><b>Myth/Fiction: </b>'+ $(this).attr('myth')+'<br>'+
- '<br><b>Background: </b>'+ $(this).attr('background')+
- '</div>',
- position: {
- corner: {
- target: $(this).attr('target'),
- tooltip: $(this).attr('tooltip')
- }
- },
- style: {
- width: 710,
- height: 350,
- classes: 'qtip',
- border: {
- width: 0,
- radius: 0,
- color: '#999'
- },
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment