My eWriters
08-10-2004, 01:14 AM
I am designing a billiards website and I would like to have a definition pop-up for each term I use in case the user doesn't understand. I don't want a full screen to pop-up for a small description, though.
How can I make a pop-up in a new window that is only a certain width/height?
Thanks in advance to all who help me.
indradb
08-10-2004, 05:27 AM
you can find it at hotscripts [dot] com
pacres
08-10-2004, 10:30 AM
Try this out.
http://javascript.internet.com/generators/popup-window.html
<!-- TWO STEPS TO INSTALL POPUP WINDOW:
1. Paste the first into the HEAD of your HTML document
2. Use the code to open the popup page on your site -->
<!-- STEP ONE: Copy this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 476,top = 332');");
}
// End -->
</script>
<!-- STEP TWO: Use the following link to open the new window -->
<A HREF="javascript:popUp('yourfile.html')">Open the Popup Window</A>
<!-- Script Size: 0.73 KB -->
Zopester
08-10-2004, 10:49 AM
Worth a read on how to do popup windows properly:
http://www.sitepoint.com/article/perfect-pop-up
:)
pacres
08-10-2004, 10:54 AM
Nice zopester
That is a great looking script.
My eWriters
08-10-2004, 11:18 AM
Thanks a million everyone! If I can help you in any way, just let me know. :-)
kylesummers
10-17-2004, 07:08 PM
Don't pop ups take away from google page ranking? If I put a popup on my main page would it?