Difference between revisions of "Demo why"
Line 33: | Line 33: | ||
$('.pop_why').hover( | $('.pop_why').hover( | ||
function() { | function() { | ||
− | + | // Does the pop_why need to be installed? | |
− | + | ||
if ( ! $(this).children('.pop_why_div').length ) { | if ( ! $(this).children('.pop_why_div').length ) { | ||
$(this).append("<DIV class='pop_why_div' style='display:block'>Loading...</div>"); | $(this).append("<DIV class='pop_why_div' style='display:block'>Loading...</div>"); | ||
− | var page_url = $(this). | + | var page_url = $(this).attr("data-poptitle"); |
alert( page_url ); | alert( page_url ); | ||
$(this).find('.pop_why_div').load( page_url ); | $(this).find('.pop_why_div').load( page_url ); |
Revision as of 19:42, 5 February 2015
Why