View Full Version : Does anyone know this? :)


Lemon Squash
01-10-2003, 01:28 AM
Hallo i was wondering around on the web when i came across this (http://www.geocities.com/xbox_dragons/), click the here link and when you get to the site click the button with Launch site on it. When you do that another browser window opens going down then across i think its cool, and would like to use it! but i dont know how can anyone help? :)

Missy 13
01-10-2003, 01:52 AM
<CENTER>
<form>
<input type="button" value="Launch Site" onClick="expandingWindow('http://www.geocities.com/xbox_dragons/imperialdragon.html')">
</form>
</CENTER>

Hey, I viewed the source of the site but I'm not those kind of people that steal the source of a site. Ok I think that you do it like this:

<form>
<input type="button" value="Anything you want to put here" onClick="expandingWindow('http://www.thenewbrowserlink.com')">
</form>

But I'm not sure. I liked it too. Maybe, I'll try it too.

Lemon Squash
01-10-2003, 01:59 AM
thnx ill try that :P

lefty
01-10-2003, 02:04 AM
if that doesn't work, try a search at www.dynamicdrive.com

CompGeek
01-10-2003, 02:36 AM
No guys, that code doesn't work. there's more to it.

Try this:
Step 1: Insert the below script into the HEAD section of your page:

<SCRIPT language=JavaScript>
<!-- Begin

//Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script

function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,s tatus=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}
// End -->
</SCRIPT>

Step 2: Then, set up your corresponding links using the below HTML codes as examples
<!-- set up your links, either via text links or form buttons-->
<a href="#" onClick="expandingWindow('http://www.yahoo.com');return false">Yahoo.com</a><br>
<form>
<input type="button" value="Freewarejava" onClick="expandingWindow('http://www.freewarejava.com')">
</form

This code was posted in dynamicdrive. This should work.

Lemon Squash
01-10-2003, 04:03 AM
um.. that didnt work either(none of them did) o.o

CompGeek
01-11-2003, 01:36 AM
I can't understand why it didn't work for you. It works perfectly for me. Here is the code. Try it.

<SCRIPT language=JavaScript>
<!-- Begin

//Animated Window- By Rizwan Chand (rizwanchand@hotmail.com)
//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script

function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,s tatus=yes,resizable=yes'
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 10; // distance to left edge of window
var topdist = 10; // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'mywindow');
}
// End -->
</SCRIPT>

<body bgcolor="#33CCFF" text="#000000">
<script>
<!--


var winheight=100
var winsize=100
var x=5

/*
Animated Window Opener Script (updated 00/04/24)-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/



function openwindow(thelocation){
temploc=thelocation
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
window.open(thelocation)
return
}
win2=window.open("","","scrollbars")
win2.moveTo(0,0)
win2.resizeTo(100,100)
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=temploc
winheight=90
winsize=90
x=5
return
}
setTimeout("go2()",50)
}
//-->
</script>

<p>&nbsp;
<p>&nbsp;
<p>&nbsp;

<form>
<div align="center">
<input type="button" value="Launch My Site" onClick="expandingWindow('http://www.yahoo.com')">
</div>
</form>

</body>
</html>