[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: [mv] Popups
****** message to minivend-users from "Humberto T Reyes" <htreyes@earthlink.net> ******
Ven,
This is what I use when I need a pop-up as annoying as they may be:
// Open the popup window to the specified URL
function openPopup(theURL,width,height) {
var winProperties =
"resize=no,toolbar=no,directories=no,menubar=no,status=no,noresize,scrollbar
s=auto,width=" + width + ",height=" + height;
var mainWin = self;
if( window.popupWin == null ) // If the window has never been opened
popupWin=window.open(theURL,"", winProperties);
else {
if( window.popupWin.closed ) // If the window was open but has been
closed
popupWin=window.open(theURL,"", winProperties);
else // The window is already open
popupWin.location.href = theURL;
}
popupWin.opener = mainWin;
popupWin.focus();
}
Then just create a link(you will have to modify the link--I have the
javascript set up as a script under my htdocs) This one allows you to set
your width and height for the popup:
<A HREF="javascript:openPopup('pagename.html', yourwidth, yourheight)">Find
blah,blah</A>
Hope that helps...
Enjoy,
Humberto
htreyes@earthlink.net
-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Victor Nolton
Sent: Sunday, August 27, 2000 6:54 PM
To: Minivend List
Subject: [mv] Popups
****** message to minivend-users from Victor Nolton <ven@pragakhan.com>
******
As much as I dislike popups, I need to make one. I have one piece of
code for a popup but would prefer something that will use a cookie so
the person only sees it once. And I would prefer something with a
"close button".
I was wondering if anyone had some very CLEAN code for a popup.
Ven
Ven's News (Bookmark It) : http://www.vensnews.com
Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
AOL: WebmstrVen Praga Khan's Official Website ICQ: 8321393
http://www.pragakhan.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list