/    Sign up×
Community /Pin to ProfileBookmark

Auto crop on pop-up window.

Well, perhaps this isn’t possible in plain HTML…

Am working on this [URL=http://www.lettonica.info/moments/riga/]photo gallery[/URL] layout.

Would love to make the large images, prompted by clicking either thumbnail or text link, to fit the pop-up enlargement window.
With this script I’ve got it’s only possible to determine height, width in the image attributes:

[CODE]onclick=”window.open(this.href,’picture’,’toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=no,resizable=no,width=550,height=550,titlebar=no’);return false;”[/CODE]

Is there a plain HTML command to make window fit image width, height properties?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@PeOfEoJun 27.2004 — [i]Originally posted by philaweb [/i]

[B]Well, perhaps this isn't possible in plain HTML...



Am working on this [URL=http://www.lettonica.info/moments/riga/]photo gallery[/URL] layout.



Would love to make the large images, prompted by clicking either thumbnail or text link, to fit the pop-up enlargement window.

With this script I've got it's only possible to determine height, width in the image attributes:



[CODE]onclick="window.open(this.href,'picture','toolbar=0,location=0,directories=0,status=no,menubar=0,scrollbars=no,resizable=no,width=550,height=550,titlebar=no');return false;"[/CODE]

Is there a plain HTML command to make window fit image width, height properties? [/B][/QUOTE]
Not a plain html command. Html is markup, not script, its just does not work that way. Now you can do this server side, you can get image information server side and use it to modify your html and java script so that the images will display how you want. But no html alone is not going to be able to do what you want... if I am reading the question right. You can make the image fit in the window with some css and all, but makeing the window fit the image would be a js thing.
Copy linkTweet thisAlerts:
@philawebauthorJun 27.2004 — [i]Originally posted by PeOfEo [/i]

[B] ...but makeing the window fit the image would be a js thing. [/B][/QUOTE]


I anticipated that. ?

Well, back to the drawing board. ?


Must find JS pop-up script, must find JS pop-up script, must find JS pop-up script [SIZE=1]etc.[/SIZE] ..... :p
×

Success!

Help @philaweb 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,
)...