Sintoras
Shaaakaa!
- Reaction score
- 45
This is a very simple issue I think, I'm not very advamced at Javascript.
I have this script that when I close a Website a Popu comes and askes to open it up again, nvm the rest
What did I do wrong, I think its the highlighted code:
Try it if you like!
I have this script that when I close a Website a Popu comes and askes to open it up again, nvm the rest
What did I do wrong, I think its the highlighted code:
Code:
<html XMLNS:IE>
<head>
<style>
@media all
{IE\:HOMEPAGE {behavior:url(#default#homepage)}}
</style>
<script language="JavaScript">
<!--
[B]function netscapeAlert()
var load = window.open('file:///C:/Users/Ben/Desktop/Size%20Changer.html','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
{if (confirm(" message "))
javascript:load()
[/B]
//-->
</script>
<IE:HOMEPAGE ID="thisPage" />
</head>
<body onunLoad="setPage()">
<script language="JavaScript">
<!--
var littleWidth = 800;
var littleHeight = 800;
var littleX = 100;
var littleY = 100;
var bigWidth = 100;
var bigHeight = 100;
var bigX = 100;
var bigY = 100;
var whichSize = "Little";
var speed = 100;
var bob = parseInt(navigator.appVersion)
var t = null;
function expandContract()
{if (bob >= 4)
{if (whichSize == "Little")
{self.resizeTo(bigWidth,bigHeight);
self.moveTo(bigX,bigY);
whichSize = "Big";}
else
{self.resizeTo(littleWidth,littleHeight);
self.moveTo(littleX,littleY);
whichSize = "Little";}
t=setTimeout('expandContract()', speed);}}
expandContract();
//-->
</script>
</body>
</html>
Try it if you like!