HostNode.com :: HostSeeker's Talk
Home Register FAQ Members List Calendar Mark Forums Read
Go Back   HostNode.com :: HostSeeker's Talk > Design Talk > Programming Pool > open a new window, with a certain size we specify
Reply
 
LinkBack Thread Tools Rate Thread Display Modes
(#1 (permalink))
Old
LinuxAdmin LinuxAdmin is offline
Confirmed User
LinuxAdmin is on a distinguished road
 
Posts: 30
Join Date: Feb 2004
open a new window, with a certain size we specify - 06-20-2004, 08:04 PM

we want to be able to click on a button and for it to open a new window, with a certain size we specify.

any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#2 (permalink))
Old
MatrixxHosting MatrixxHosting is offline
Confirmed User
MatrixxHosting is on a distinguished road
 
Posts: 16
Join Date: Jun 2004
Location: UK
06-21-2004, 05:49 PM

Hi...

put this in your header...

<script LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- 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=1,location=0,statusbar=0,men ubar=0,resizable=0,width=400,height=250,left = 337,top = 209');");
}
// End --></script>


and then this in for your links...

<a HREF="javascript:popUp('whatever.html')">Click here to open the link</a>

Hope this helps,

Rob


Reseller Domain Names and
Hosting -
www.matrixxhosting.com
See our new Hosting Branded t-shirts, caps, sportswear etc - www.matrixxhosting.com/brandedclothes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#3 (permalink))
Old
MatrixxHosting MatrixxHosting is offline
Confirmed User
MatrixxHosting is on a distinguished road
 
Posts: 16
Join Date: Jun 2004
Location: UK
06-21-2004, 05:54 PM

For some reason when I save the reply it adds the 2 underscores in javascript - the web address is in the header bit if it does not work!

Sorry bout that - I tried editing it a few times and each time the format changed on saving ???

Rob


Reseller Domain Names and
Hosting -
www.matrixxhosting.com
See our new Hosting Branded t-shirts, caps, sportswear etc - www.matrixxhosting.com/brandedclothes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#4 (permalink))
Old
lcp2000 lcp2000 is offline
Registered User
lcp2000 is on a distinguished road
 
Posts: 1
Join Date: Jul 2004
07-09-2004, 09:23 PM

Quote:
Originally Posted by MatrixxHosting
For some reason when I save the reply it adds the 2 underscores in javascript - the web address is in the header bit if it does not work!

Sorry bout that - I tried editing it a few times and each time the format changed on saving ???

Rob

Here's a better solution, IMHO:

<Head> Section:
Code:
<script>
<!-- // Begin
function launch(URL,PopUp,width,height){
popup=window.open(URL,PopUp,"width="+width+",height="+height+",top=100,left=200,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")}
// EOF -->
</script>
<body> Section:
Link Examples
Code:
<p><a href="javascript:launch('http://www.yoursitegoeshere.com','PopUp',400,550)">
Link 1</a></p>

<p><a href="javascript:launch('http://www.yoursitegoeshere.com','PopUp',600,450)">
Link 2</a></p>

<p><a href="javascript:launch('http://www.yoursitegoeshere.com','PopUp',600,600)">
Link 3</a></p>

Note: You can also change the location of the popup by adjusting 
the top and left variables of the script.
Hope this helps...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
One click to make text size bigger for readers iKwak General Web Design 0 10-16-2004 02:23 AM
$7.95 get 40 Open Source Applications & More! netstar Shared Webhosting Special Offers 0 07-16-2004 07:37 PM
Ad slots open. Great rates! Evilhaider Related offers and Requests 1 06-15-2004 02:49 AM
.co.uk, .coms, .nets, .infos - open to offers tommy Domain Names Offers & Requests 0 06-02-2004 11:09 PM
Buttons That Open A New Browser Window essex Flash and Actionscript 1 01-26-2004 05:07 AM


All times are GMT +2. The time now is 09:20 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0
vB.Sponsors
© 2003 - 2007 HostSeeker.com - All rights reserved