Displaying 1 result from an estimated 1 matches for "new_margin".
2007 Mar 13
3
Prototype question invalid error in IE6
...ocumentElement.clientWidth!=0) {
winWidth = d.documentElement.clientWidth
winHeight = d.documentElement.clientHeight
} else {
if (d.body &&
typeof d.body.clientWidth!=''undefined'') {
winWidth = d.body.clientWidth
winHeight = d.body.clientHeight
}
}
}
var new_margin = (winHeight/2)-268;
function init() {
$(''timeline'').setStyle({
marginTop: new_margin + ''px''
});
}
window.onload = init;
</script>
And heres my link in the body that moves it:
<a href="javascript:void(0)" onclick="new Effect.MoveBy...