Log in

View Full Version : Coding Help.



1
17-08-2006, 03:13 PM
I don't care if it's in wrong section ok?

Right, I want my layout to be opened up in a window that is the same size as the layout [800X600].

I want it to open up in a new window from an enter page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>currently</title>
</head>
<body>
<div align="center">
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Xvisor.co.uk</font></p>
<p>&nbsp;</p>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="home.php" target="_top">Enter</a></font></p>
</div>
</body>
</html>


That's the enter page code

YouFail
17-08-2006, 03:15 PM
You'd need to use JS I think and make it a non resisable window

1
17-08-2006, 03:25 PM
Ok, I know what I need to do...

I just need a code or something.

Geek
18-08-2006, 09:03 AM
Just use a Javascript function and the onClick property to open a new window, it's basic code.


<script type="text/javascript">
<!--
function openWindow() {

window.open("url.php","Name",config="height=200,width=200")

}
//-->
</script>
<a href="url.php" onclick="openWindow()">Enter</a>

There are other more valid ways to do it now, but thats just a basic way of doing it although this would probably annoy many users.

1
18-08-2006, 09:12 AM
Thanks alot.

I'll try it.

EDIT -

Want to hide these adverts? Register an account for free!