window co-ordinates and form question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

window co-ordinates and form question

Post by minds_gifts »

hello,

2 simple questions:
1.when you view this http://inkaytown.f2o.orgyou can observe, "enter site" image appearing somewhere on the top left side of the screen.I would like to position it inside my green background after the text.
2.when i click on the image, a window is opened.How can i control it in such a way its always positioned in the center of the screen.

Thanks everybody

<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>|--designed by sarath--|</title>
<meta name="Microsoft Border" content="none">
<script type="text/javascript">
function openwindow()
{
window.open("index3.html","my_new_window"," toolbar=no,location=no,directories=no,status=no,me
nubar=no,scrollbars=no,resizable=no,copyhistory=ye
s,width=720,height=478,top=5,left=108")
}
</script>
</head>

<body background="background_copy.gif" bgcolor="#000000" bgproperties="fixed" scroll="no">

<form>
<Input type="image" src="main1.jpg"
value="Open Window"
onclick="openwindow()">
</form>

</body>
</html
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

Post by minds_gifts »

Thanks Patrik.
Regarding positioning of the image, I fixed it by using CSS attributes.
Post Reply