View Full Version : popping up multiple jpg windows
Cheez00
August 1st, 2003, 07:33 AM
hi there, i was curious is there a code (for an html button) to open up an uploaded jpg in a pop up, with no borders.. casue it would seem kinda time consuming to make a seperate html page with the picture inside, and putting the java script code in... if so please post, thank you
:chinaman:
DigitalPimp
August 1st, 2003, 01:24 PM
I can write something up for you, I'll make it tonight when I get home from work.
Cheez00
August 1st, 2003, 10:17 PM
ty!
Cheez00
August 2nd, 2003, 01:53 AM
... :D
DigitalPimp
August 2nd, 2003, 05:00 PM
I just relooked at your post and realized it may be a little more difficult then I first expected. Can I just have it so you can click on the popped up pic to close it down again?
If you want something really easy then I can do something that is like on the right-side of this site www.virtualenterprise.org. You just make 2 html pages, 1 with the thumbnails and one for the popup and you can pass and parse out the names of the thumbnails so it dynamically loads a jpeg into the other window. This would be easier and I could do faster. Just let me know.
Cheez00
August 3rd, 2003, 01:38 PM
sure... thats fine, i just wondered if there was an easier way than putting each jpg into an html because in my flash file, http://tek-labs.com if you go to affiliation, i just did the code off kirupa's tutorial and i didnt even have to mess with the html... thank dude
DigitalPimp
August 3rd, 2003, 03:52 PM
Oh k, I went to that page and now I'm confused even more as to what you want. Can you show me an example of a site that you like that does this or something?
iso
August 5th, 2003, 12:09 AM
yeah, i don't get it either. you want a bunch of JPGs to each have their own popup windows but don't want to make a bunch of HTML pages? sounds like a job for PHP to me...
Cheez00
August 5th, 2003, 05:36 AM
ok look here... click the car pictures...
http://www.cardomain.com/member_pages/view_page.pl?page_id=318529&make_type_query=make%3DMitsubishi&model_brand_query=model%3DMirage&tree=Mitsubishi%20Mirage
Cheez00
August 5th, 2003, 06:22 AM
ok i can see on that page when ur mouse goes over the pics... what the url is... i tried that but replaced it with my jpg... and i get an error on page, is there something i need to do?
DigitalPimp
August 5th, 2003, 10:47 AM
Put this in the head of ur HTML document
<SCRIPT LANGUAGE="JavaScript">
<!--
function ShowImage(url, width, height)
{
window.open(url,"","height=" + height + ",width=" + width + ",statusbar=no,location=no,menubar=no,toolbar=no,re sizable=no ");
}
//-->
</SCRIPT>
This is where u insert your image
<A HREF="javascript:ShowImage('http://LinkToLargerImage.jpg', 575, 223)"><IMG SRC="'http://ThumbnailImageHere.jpg'" WIDTH=250 HEIGHT=97 BORDER=0></A>
w0w, if you would had posted that a long time ago we could of had this solved.
Cheez00
August 5th, 2003, 06:18 PM
the first code, do i put that in the frame page, or the index.htm page... and for the second link, can i use the one that i showed you?
Cheez00
August 7th, 2003, 08:03 PM
?
DigitalPimp
August 8th, 2003, 12:17 PM
Both code has to go on the same page. Also, where it says "<A HREF="about :ShowImage" it should be "<A HREF="javascript:ShowImage" but for some reason it always gets jacked up.
Cheez00
August 8th, 2003, 09:18 PM
lets say im using dreamwevaer lol i put the first code in, and i put the second code on the image link?
Cheez00
August 18th, 2003, 04:12 AM
somone wanna check the code? my page is http://q3r.cjb.net go to matches, then the first jpg, the top left one is the one im working on for now... thanks
DigitalPimp
August 22nd, 2003, 12:48 PM
you need to get rid of this in the hyperlink ( target="_blank")
blah-de-blah
August 31st, 2003, 04:29 AM
nice code digital pimp, just wondering what the 'about :' does after "<a href=...."??
I've heard of the '#' thing, but not sure what any of these do. If you know a link or have an explanation for these that would be good :P thanks
blah-de-blah
August 31st, 2003, 05:44 AM
for some reason mine doesn't work :-\ I used your show image function with this:
<a href="about: ShowImage('/Full_size_images/cert1.png', 533, 700)"><img src="Images/cert1.png" width="180" height="150"></a>
but it just brings me to a blank page :-\Do you know whats wrong?!
EDIT: my code says 'about' instead of vbscript :-\ Weird how the forum changes it to 'vbscript'
DigitalPimp
September 2nd, 2003, 10:02 AM
It should say Javascript: instead of VBScript. :)
blah-de-blah
September 3rd, 2003, 10:22 AM
Ah ok...now the pop up works...but the content is showing :-\ Do you see anythin wrong with my code?!?!? thanks
DigitalPimp
September 3rd, 2003, 10:24 AM
What do you mean the content is showing? Without seeing all your code in production it is kinda hard to tell if your doing something wrong.
blah-de-blah
September 3rd, 2003, 10:25 AM
eh sorry i meant content ISN"T showing :-\
DigitalPimp
September 3rd, 2003, 10:27 AM
Have you checked the link? '/Full_size_images/cert1.png'? Especially if your on a Linux/Unix server.
blah-de-blah
September 3rd, 2003, 10:28 AM
Oh does this only work when its uploaded? i'm just testing this on 'preview in browser' within dreamweaver...
DigitalPimp
September 3rd, 2003, 10:30 AM
That is probably your problem. Instead of that link try this.
http://www.kirupa.com/me/images/kirupa.png
blah-de-blah
September 3rd, 2003, 10:31 AM
ah yes you are right. That is my problem. thanks digitalpimp!
awligon
September 4th, 2003, 12:16 PM
spoken like a true pimp. :p:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.