/    Sign up×
Community /Pin to ProfileBookmark

popup auto size depending on object

im trying to make a popup window that will be size depending on the size of an object in a webpage anyone that can help me with this please. the object is a quicktime video

thanks in advance

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@artemisSep 07.2004 — [font=technical][size=3]hi,

well you'll to grab the height and width of the object. then feed this to a function to open a webpage, like so:

[font=monospace][size=5]
[code=php]
function openWin(height,width){
window.open("open.htm","newin","height="+height+",width="+width);
}
[/code]
[/size][/font]

so to use this function you will to pass the height and width as arguments and then a window based on those will be opened.

hope this helps![/size][/font]
×

Success!

Help @GODD spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...