Hidkun,
... поискать по форуму ... поразбиратся самому ... или вариант ниже ...
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
p {
position: fixed;
top: 50%;
left: 50%;
margin-top: -50px;
margin-left: -100px;
height: 50px;
width: 300px;
color: Red;
font-size: 2em;
}
* html p {
position: absolute;
}
</style>
<script type="text/javascript">
var b;
function get(a) {
var c = document,
d = c.body,
e = c.documentElement,
f = "client" + a,
a = "scroll" + a;
return "CSS1Compat" === c.compatMode ? Math.max(e[f], e[a]) : Math.max(d[f], d[a])
}
window.onload = show;
function show() {
document.getElementById("vid").style.display = 1024 < get("Width") ? "" : "none"
}
window.onresize = function () {
window.clearTimeout(b);
b = window.setTimeout(function () {
show()
}, 20)
};
</script>
</head>
<body>
<p id="vid">Всякая всячина</p>
</body>
</html>