/    Sign up×
Community /Pin to ProfileBookmark

Problems wiht popup pictuers

I am currently using javascript to show my colletion of photos on my website.

Here is the script i have now:

<script language=”JavaScript”>
<!–

function openPicture1() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/Night Sign.jpg”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0″);
win.creator = self;
}

function openPicture2() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/Hallejuah.jpg”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0“);
win.creator = self;
}

function openPicture3() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/The Fan Club.jpg”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0″);
win.creator = self;
}

function openPicture4() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/The Fan Club2.jpg”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0″);
win.creator = self;
}

function openPicture5() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/DSC00783.JPG”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0“);
win.creator = self;
}

function openPicture6() {
win = window.open (“http://www.hiatus-music.com/hiatus3_files/DSC00784.JPG”,”Hiatus”,”height=480,width=640,noresize=0,left=0,top=0,screenX=0,screenY=0“);
win.creator = self;
}
//–>
</script>

Basiclly you just hit a thumb nail of thei mage and it creates a popup window with the image at a bigger size…on osme images though even from the popup window, you can still make them even ibgger. This goes off the nonresizeable popup window thus not allowing you to see the whole image at is full size. My question is how can i make it so the popup cna be resizable when it is necessary to display the image at full size? Also, I want the popup window to close on click…how can i do that?

Thanks,
Dave

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JAug 21.2004 — Take a look here for some Image Gallery examples and how to create them

www.huntingground.freeserve.co.uk/scripts/snav.htm
Copy linkTweet thisAlerts:
@fredmvAug 21.2004 — Consider this accessible, usable, sensible solution: <http://home.comcast.net/~fredv4/gallery.html>.
×

Success!

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