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