[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.frontpage.programming

onload & window attributes?

=?Utf-8?B?cm9kY2hhcg==?=

4/30/2004 4:51:00 PM

I am using the onload command, <body onLoad="window.resizeTo(?,?);", to set the size of a window opening up. I would also like to tell the window to have the toolbar off and other stuff. Can this be done with onload? This window is opened by many pages in the site and is called from a imagemap link...I would rather do it via onload so I don't have to edit all the other pages. Any ideas?
3 Answers

Net55

4/30/2004 5:42:00 PM

0

http://www.webmasterworld.com/forum2...

Why not just do a find and replace in html an do a popup?

<script>

//this goes in the head
// www.frontpagewiz.com

function doPopUp(){
doPopUpWindow = window.open
("http://www.frontp...","FrontPageWiz_popup",&q...
on=yes,directories=yes,toolbar=yes,menubar=yes,status=yes,s
crollbars=yes,resizable=yes,dependent=yes,left=100,top=100,
screenX=100,screenY=100,width=200,height=400");
}

</script>

-----------------

<!--this goes in the body, substitute anything you like
for Click Here, change this to your pop up page-->

<a href="javascript:doPopUp()">Click Here</a>

Net55
net55@frontpagewiz.com
http://www.frontp...

>-----Original Message-----
>I am using the onload command, <body
onLoad="window.resizeTo(?,?);", to set the size of a
window opening up. I would also like to tell the window
to have the toolbar off and other stuff. Can this be done
with onload? This window is opened by many pages in the
site and is called from a imagemap link...I would rather
do it via onload so I don't have to edit all the other
pages. Any ideas?
>.
>

Net55

4/30/2004 7:04:00 PM

0

Yes, on the image link, when you click insert hyperlink
put this:

javascript:doPopUp()

---------------------
here is the code again:

<script>

//goes in head www.frontpagewiz.com

function doPopUp(){
doPopUpWindow = window.open
("http://www.frontp...","fpwiz","location=...
ories=yes,toolbar=yes,menubar=yes,status=yes,scrollbars=yes
,resizable=yes");
}

</script>

<!--goes in body-->
<a href="javascript:doPopUp()">Click Here</a>

or with fp image map

<p><map name="FPMap0">
<area href="javascript:doPopUp()" shape="polygon"
coords="14, 8, 43, 9, 41, 22, 11, 21, 4, 14">
</map>
<img border="0" src="myimage.gif" width="117" height="25"
usemap="#FPMap0">


Net55
net55@frontpagewiz.com
http://www.frontp...
>-----Original Message-----
>One reason is that I am calling this from an image map
link...here is the html for that...
>
><tr><td width="780" colspan="3" height="83"><map
name="FPMap2"><area href="default.htm" shape="rect"
coords="101, 71, 161, 91"><area href="dkabout.htm"
shape="rect" coords="181, 70, 264, 91"><area
href="dkworkshops.htm" shape="rect" coords="293, 66, 387,
93"><area href="dkcontact.htm" shape="rect" coords="412,
68, 509, 93"><area target="_blank" href="dkregister.htm"
shape="rect" coords="519, 22, 639, 79"></map><img
border="0" src="images/gil-Sans-header3a.jpg"
usemap="#FPMap2" width="780" height="100"></td></tr>
>
>Can I put code in there? I would want the window to come
up on the last link...dkregister.htm
>.
>

=?Utf-8?B?cm9kY2hhcg==?=

4/30/2004 9:56:00 PM

0

Thank you very much!