I have a dialog that opens when pressing my site's footer links (contactus.htm
, profile.htm
, useterms.htm
).
The problem is that these pages are not styled well when someone gets to them from a search engine.
For example, I want to add a border line to the page and if I would do so it won't look good inside a dialog box — there will be 2 border lines: dialog and page.
How can I add a style if the page is enterned not from the footer/dialog but from a search engine?
Code:
$(document).ready(function() {
$('#footerProfile').click(function() {
_gaq.push(['_trackEvent', 'internal', 'popup']);
var $dialog = $('<div></div>').load($('#footerProfile').attr('href')).dialog({
autoOpen: false,
width: 590,
height: 470,
resizable: 'false',
modal: true
});
$dialog.dialog('open');
return false;
});
});