Poniższy skrypt nie działa w IE8 (na takim tylko testowałem). W FF, Chrome i Operze jest wszystko ok. Pojawia się niby błąd w linii 14.
Może ktoś pomóc?
Może ktoś pomóc?
Kod:
$(function() {
if (window.name == 'Enlarged View') {
$("a#enlarged").html("Normal view");
}
else
$("a#enlarged").html("Enlarged view");
});
function enlarged() {
if (window.name != 'Enlarged View') {
var width = screen.width;
var height = screen.height;
var url = window.location.href;
window.open(url, "Enlarged View", "height="+height+", width="+width+", status=no, toolbar=no, menubar=no, location=no, scrollbars=yes");
}
else {
self.close();
}
}