-
hello.i want to give an action to a button to go to another web page in a new window ,but i want that window to be resized..ex:200x500
can some one tell me how to do that?
-
u have to use javascript
in the html file put this in the head tag:
Code:
<script language="javascript">
<!--
function showDoc(htmlDoc, winName, props)
{
window.open(htmlDoc, winName, props)
}
WindowProps = "screenX=0,screenY=0,left=100,top=100,width=200,height=500,resizable=no,scrollbars=no'"
//-->
</script>
and in the button put:
[code]
on (release) {
getURL ("javascript:showDoc('nameOfFile.html', 'nameOfFile', WindowProps)");
}
-
i did this but nothing happens...
-
what he said is right. unless of course you don't own the site you're linking to. then you cant do it can you? it should have worked...bump, im curious.
-
its on my page but when the button is preseed it comes a blank window and in the url text is some error
-
-
flash 5.
if this is not working than do u know a script for a html page that when its opened it opens in a configurable size ex:700x300
-
...no, i think javas the best way to go, try http://www.thejavasource.com...
-
Very simple script
-----------------------------------------------------------
<script language="JavaScript">
// Resize script
if (top.frames.length!=0)
top.location=self.document.location;
self.moveTo(0,0)
self.resizeTo(600,600)
</script>
------------------------------------------------------------
comments:
* self.moveTo - this is the location of the top left corner of the window in the screen (you can delete it if you don't need it)
** self.resizeTo - this is the width and height of the window.
-
virtuaweb give me your email and i will send an example files that will show u how to do that, it's probebly syntax error
-
-
no soryyyy....thats not my email
its matei_rkv@yahoo.com
-
sent, open page1 and press on the button
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|