View Full Version : Window
Shibby-Shabs
17-10-2009, 12:08 PM
I know how to open links in new windows using <a href="#" target="_blank"></a> but how can I make it open a new window so that it only shows the address bar.. Line Habbo Hotel does for their client. Example below.
http://i35.tinypic.com/1zvcs3a.png
LMS16
17-10-2009, 12:16 PM
<!-- 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">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=1,statusbar=0,men ubar=0,resizable=1,width=500,height=500,left = 470,top = 200');");
}
// End -->
</script>
<!-- STEP TWO: Use the following link to open the new window -->
<A HREF="javascript:popUp('popup')">Open the Popup Window</A>
Got it off a popup generator. Hope its useful :)
Lew.
Take a look on dynamic drive as well :)
Shibby-Shabs
17-10-2009, 12:30 PM
Thanks Lew.
EDIT: How can I make it allow php and html?
LMS16
17-10-2009, 01:03 PM
You make the .php/.html file serperatly... it only opens an external page.
Lew.
Shibby-Shabs
18-10-2009, 12:56 AM
I'm not quite sure what you mean, I need it to open a HTML file.
Swinkid
21-10-2009, 05:36 PM
EDIT: Never mind, mis read ur question ;]
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.