Difference between revisions of "Demo why"

Line 8: Line 8:
 
         border: 2px solid gray;
 
         border: 2px solid gray;
 
width:70px;
 
width:70px;
 +
}
 +
.pop_why_div {
 +
        width:200px
 +
        height: 200px;
 +
        background-color:blue;
 
}
 
}
 
</style>
 
</style>
Line 29: Line 34:
 
         function() {
 
         function() {
 
                 // Does the pop_why need to be installed?
 
                 // Does the pop_why need to be installed?
                 if ( ! $(this).children('.pop_why').length ) {
+
                 if ( ! $(this).children('.pop_why_div').length ) {
                         $(this).append("<DIV class='pop_why'></div>");
+
                         $(this).append("<DIV class='pop_why_div'></div>");
                       $(this).find('.pop_why').load( this.data('data-poptitle') + '?action=raw');
+
                       $(this).find('.pop_why_div').load( this.data('data-poptitle') + '?action=raw');
 
                 }
 
                 }
                 $(this).find('.pop_why').show();
+
                 $(this).find('.pop_why_div').show();
 
         } ,
 
         } ,
  
 
        function() {
 
        function() {
                 $(this).find('.pop_why').clearQueue();
+
                 $(this).find('.pop_why_div').clearQueue();
         $(this).find('.pop_why').hide();
+
         $(this).find('.pop_why_div').hide();
                 $(this).find('.pop_why').clearQueue();
+
                 $(this).find('.pop_why_div').clearQueue();
                 $(this).find('.pop_why').hide();
+
                 $(this).find('.pop_why_div').hide();
 
}
 
}
 
         );
 
         );

Revision as of 16:54, 5 February 2015

Why