Forum Moderators: mack

Message Too Old, No Replies

Pop up custom size window

custom size window

         

Penguinsnob

5:03 am on May 4, 2003 (gmt 0)

10+ Year Member



I would like to know how to make a window pop up when user click on a link, say:

[edit]
so that the browser window opens when a user click on this link would be smakker, something like 500x500.

Also,

I want to know how to pop up quicktime video player when user click the above link.

I so appriciate your help...

[edited by: rcjordan at 12:15 pm (utc) on May 4, 2003]
[edit reason] sorry, no references to site specifics, please [/edit]

fathom

6:50 am on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<a href="#" onclick="window.open('url_location.html', 'StatusBar', 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0');" title="tool tip">link anchor text</a>

Note: Status bar text will appear on status bar rather than url but must be single word "no spaces"

variables yes or no:

toolbar=yes
resizable=yes
scrollbars=yes

variables -- adjustable:

width=500
height=500

Position to appear reference from upper left corner of browser window:

left=0
top=0

Note: Javascript - therefore search engines will not follow link.

Penguinsnob

8:12 am on May 4, 2003 (gmt 0)

10+ Year Member



thank you!
i now wondering how i can incoroprate your code into a .html file so when people click on a link to the page (page is posted on yahoo group, so i cannot code in those code) the page they click on lunch aother page with specified size and property,

link to --> page1.html
use clik -> page1.html

page1.html will lunch--> message.html

and message.html should have code like...?

<java script>
void onload() {
bleh bleh bleh;
}
</script>

?

[edited by: rcjordan at 12:17 pm (utc) on May 4, 2003]

fathom

9:07 am on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not sure I follow... but:

if <a href="#" onclick="window.open('http://www.group.yahoo.com/directory/page.html', 'StatusBar', 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=500,left=0,top=0');" title="tool tip">something to click on</a> that should serve up the page from yahoo group within the parameters specified.

However, if the other way around and link is on yahoo group and you can't access the code... nothing with help.

ShawnR

9:37 am on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all

Penguinsnob, It might be an idea to remove your urls from you message (against the terms of use).

>>>"...Status bar text will appear on status bar rather than url..."

The second argument of the window.open() is to name the window for programming purposes. For example, if you call it 'foo', then the next time you call window.open('page.html', 'foo', 'parameters'); the result will be sent to the already open pop-up window called foo, instead of popping up a new one. Also, if you have <a href="..." target="foo"> the result will be sent to the already open pop-up window called foo, instead of popping up a new one.

What is in the status bar depends on your browser. e.g. For Internet Explorer it is the url, for Opera it is the alt text in the <a...> tag. The second argument of the window.open() function does not change that.

Shawn

fathom

9:59 am on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank Shawn -- obvously you are correct.

Funny how we forget things, and their true reason for existing. :)

Penguinsnob

11:55 am on May 4, 2003 (gmt 0)

10+ Year Member



How can I remove the link from the post? I can't find "edit post" button sort of speak. I was thinking since Yahoo group won't allow any code in the post, I thought I have to post a link to a page (.html) that runs an inline script that calls function which pop up a page with desired content...

Thank you for the help!

fathom

11:57 am on May 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The edit button automatically disables after about 2 hours.