/    Sign up×
Community /Pin to ProfileBookmark

Hi, i must say i know nothing about programming besides ‘bold on’ ‘bold off’ but i am looking for a few things to jazz up the site that im working on. [url]www.darcysmodelcars.com[/url]

im looking for the code for when you click on a thumbnail of an image for the larger image, it opens up a new window, that much i can do, but im looking for the window to be only the size of the image and for there to be no tool bars what so ever.

is there any one out there that can help a n00b like me?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Dark_MindsauthorDec 10.2002 — Can anybody at all help me PLEASE?!!!
Copy linkTweet thisAlerts:
@SceironDec 10.2002 — How about...

<i>
</i>&lt;script&gt;
function openWindow_nb(url, w, h) {
win = window.open(url, 'win', 'width=' + w + ',height=' + h +',resizable=0,scrollbars=0');
win.focus();
}
&lt;/script&gt;
&lt;a href="javascript:openWindow_nb('somefile.htm', 100, 200);"


That would open somefile.htm in a window 200px high and 100px wide. I would suggest looking up the .open() method, as it supports many attributes to control the new window.
×

Success!

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