Fw: Javascript

by mkdesai(at)powersurfer.net

 Date:  Thu, 8 Jun 2000 10:05:53 +0530
 To:  <hwg-basics(at)hwg.org>
  todo: View Thread, Original

The below mentioned script opens a new window which expands slowly. my
problem is mentioned at the end.


<html>

<head>
<meta name="description" content="Click here for an animated window opener
script">
<meta name="keywords" content="open window, animated window opener,">
<title>Dynamic Drive- Animated Window Opener Script</title>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" marginwidth="0">
<strong><font face="Verdana">
<script>
<!--
<!--Animated Window Opener script-By Website Abstraction
(www.wsabstract.com) More scripts here-->
var mylocation="www.altavista.com"
var winheight=100
var winsize=100
var x=5

function go(){
win2=window.open("","","scrollbars")
if (!document.layers&&!document.all){
win2.location=mylocation
return
}
win2.resizeTo(100,100)
win2.moveTo(0,0)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=mylocation
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}
file://-->
</script>
<a href="javascript:go()" onMouseOver="window.status='open window';return
true" onMouseOut="window.status=''" >Click here</a><!--webbot
bot="HTMLMarkup" endspan --></font></strong>
</body>
</html>
I wanted to use this script on my page but even though it works how do i
tell it which page to open with this script? i mean a new window pops up and
starts expanding all, right,but i cant figure out how to make it open the
page that i want in this fashion! where do i tell it the address of the page
it is supposed to open? it always opens  and displays server not
found.please help.


yash desai

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA