try this:
<script language=javascript>
function dispOrder(NewOrder)
{
window.open('list_of_small_info.asp','','toolbar=no,location=no,directories
no,status=no,scrollbars=no,width=175,height=175,top=300,left=400')
}
</script>
by using the height and width properties, you can size it to your specific
needs. The top and left properties allow you to place your pop-up window
where you want on the screen.
CAUTION: Some people use AD-Smashers. That will prevent your pop-up window
from showing.
Good Luck,
----------------------------------------------------
Jason A. Greenfeld
Lead Software Developer
Unitek Technical Services
-----Original Message-----
From: Dawn Jardine [mailto:DawnJ@C...]
Sent: Wednesday, February 20, 2002 10:06 AM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: How do I create a floating page
Hi J.
You can create a popup window with JavaScript. I am unsure of what browser
you are coding for, so I'll give you the code which I have used for IE 5.
function ShowDiv(DivID) { // Generic function to show a specific Div
HideAll(); // Hides all popup Divs by calling HideAll()
// document.all[DivID].style.left = 100;
// document.all[DivID].style.top = 100;
if (DivID != "PopupDivdefault"){
document.all[DivID].style.visibility = 'visible';
}
}
function HideDiv(DivID) { // Generic function to hide a specific Div
document.all[DivID].style.visibility = 'hidden';
}
function HideAll() { // Generic function to hide all popup Divs
(requires Div ID naming convention of "PopupDiv1" to "PopupDiv20")
var DivID;
for (var i = 1; i <= 20; i++) {
document.all[('PopupDiv' + i)]? (document.all[('PopupDiv' +
i)].style.visibility = 'hidden') : null;
}
}
in the body, name your popup divs 1- to however many you need. This one is a
specific size, with a specific border etc. You can change these to suit your
needs.
<div id="PopupDiv1" style="position:absolute; left:165px; top:100px;
width:461px; padding-left:10px; padding-right:10px; padding-top:5px;
font-family:Arial,Helvetica,sans-serif; font-size:12pt; border:medium solid
#D16C00; background-color:#FFCC77; z-index:50; visibility:hidden;"> Your
content here<p align="right"><a href="javascript:;"
onclick="HideDiv('PopupDiv1');">
Close</a></p>
</div>
-----Original Message-----
From: HTML Code Clinic digest [mailto:html_code_clinic@p...]
Sent: Tuesday, February 19, 2002 8:06 PM
To: html_code_clinic digest recipients
Subject: html_code_clinic digest: February 19, 2002
-----------------------------------------------
When replying to the digest, please quote only
relevant material, and edit the subject line to
reflect the message you are replying to.
-----------------------------------------------
The URL for this list is:
http://p2p.wrox.com/list.asp?list=html_code_clinic
HTML_CODE_CLINIC Digest for Tuesday, February 19, 2002.
1. How do I create a floating page?
----------------------------------------------------------------------
Subject: How do I create a floating page?
From: "J Hinckley" <j_hinckley@h...>
Date: Tue, 19 Feb 2002 01:05:31
X-Message-Number: 1
I'm not even sure that's what you would call it. What I'm try to
accomplish is this: I have information that I want to present as a list.
It's a small amount of info, so instead of putting it on a whole new page,
I'd like, when you click on the link to go to it, for it to pop up in an
appropriately-sized box. The kind those annoying ads come in, I know. How
do I go about doing that? Or at least, what is that called?
---
END OF DIGEST
$subst('Email.Unsub').
$subst('Email.Unsub').