Full Screen and Shaken

[Total: 0    Average: 0/5]

This will resize the current window and shake if you move over it.

Head Code:

<script language="javascript">


function getme (){
	window.resizeTo (300,300);
	setTimeout('play()',3333);
	}
function play(){
	var w = screen.width;
	var h = (screen.height);
	var winll = (screen.width-w)/2;
	var wintt = (screen.height-h)/2;
	var setting  ='height='+h+',';
	setting +='width='+w+',';
	setting +='top='+wintt+',';
	setting +='left='+winll+',';
	setting +='scrollbars='+scroll+',';
	setting +='resizable=no';
	winnew=window.open("/js/","vorlink",setting);
	if(parseInt(navigator.appVersion) >= 4){winnew.window.focus();}
	setTimeout('move()',3000)
	}
var isIE = document.all?true:false;
if (!isIE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMousePosition;

function getMousePosition(e) {
var _x;
var _y;

if (!isIE) {
_x = e.pageX;
_y = e.pageY;
window.moveTo ((_x+100),_y+100);
}
if (isIE) {
_x = event.clientX + document.body.scrollLeft;
_y = event.clientY + document.body.scrollTop;
}
window.moveTo ((_x+100),_y+100);

return true;
}
onload=getme;
</script>

Body Code:


Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *