HighDots Forums  

create a new page of a specific size

alt.html.writers alt.html.writers


Discuss create a new page of a specific size in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
www.darrenwileman.co.uk
 
Posts: n/a

Default create a new page of a specific size - 01-03-2004 , 08:52 AM






Hi there

I have a site that has a gallery section and i want the user to be able to
click on the picture to appear in a new frame - simple enough i know - but
how do you get the frame to open at a specific pixel size? I would like it
to open at 640x480

Thanks in advance!
Darren Wileman



Reply With Quote
  #2  
Old   
picayunish
 
Posts: n/a

Default Re: create a new page of a specific size - 01-03-2004 , 11:17 AM






www.darrenwileman.co.uk wrote:
Quote:
Hi there

I have a site that has a gallery section and i want the user to be able to
click on the picture to appear in a new frame - simple enough i know - but
how do you get the frame to open at a specific pixel size? I would like it
to open at 640x480
You need a javascript to open a new window (frame).
Example for one new window.
Between the <head>
<link rel="javascript" type="text/javascript" href="window.js">

Somewhere in the <body>
<a href="new_window.html" onClick="makeNewWindow();return false"
class="thumb">

In the external javascript file window.js
var newWindow
function makeNewWindow() {
newWindow =
window.open("new_window.html","sub","toolbar=yes,l ocation=yes,resizable=yes,status=yes,scrollbars=ye s,menubar=yes,personalbar=yes,width=640px,height=4 80px")
}

For more you can use the same function, but you have to add e.g. a
number between the makeNewWindow and (), like
function makeNewWindow1()
function makeNewWindow2()
function makeNewWindow3()
ect.
--
Edwin van der Vaart
http://www.semi-conductor.nl/ Links to Semiconductors sites
http://www.evandervaart.nl/ Under construction



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.