Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Website Design

Website Design Forum for discussing flash, graphics, fonts, video and music! Have a question about how to implement something into your website? Ask here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-2007, 05:18 PM
TechNetiuM TechNetiuM is offline
Newbie
 
Join Date: Jan 2007
Posts: 2
Rep Power: 0
TechNetiuM is on a distinguished road
Default Enlarging pictures

Hi, iam building my own site and i have pictures on there, i dont know any coding but i was hoping you guys might be able to help me out with a code so that when you click the pictures it opens them in a new window in full size. Thanx for your help.

Phil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-14-2007, 05:47 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

So you have a thumbnail and when a user clicks on it you want it to be enlarged?

You can provide a direct link to the image
HTML Code:
<a href="yourimage.gif><img src="yourthumbnail.gif" /></a>
or rather than opening the image in a whole new window you could use a javascript popup by placing this code some where between your head tags
HTML Code:
<script type="text/javascript">
<!--
function openwindow(){
	window.open ("yourimage.gif", "Enlarged Image", "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, copyhistory=no, width=400, height=200");
}
//-->
</script>
Then you can link your thumbnail this way

HTML Code:
<a href="javascript:openwindow()"><img src="yourthumbnail.gif" /></a>
And that would create a 400x200px box with your image in it, if the image you want to display is larger than those dimensions of course you can edit the open.window arguments (meaning the width, height, resizable, ect...)

Last edited by John; 01-14-2007 at 05:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-15-2007, 12:06 PM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

Thanks for the popup thing but as I am using Joomla I'm having an easy way to do these things. But I wanted the Pop-up thing for some times before I got the BOT, anyway it can come in handy and if I need it I'll come to codecall.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-28-2007, 01:35 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Rep Power: 7
Matt is on a distinguished road
Default

Regarding thumbnails:
You may already know this, but an image has height and width properties so you can change it's rendered size on the page. Unfortunately, it takes the same amount of time to load as the larger version, so it may work better for you just to create a resized copy of your original image to have as your thumbnail. Anyway, here is some code...
HTML Code:
<img src="myimage.gif" height="200" width="300">
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-31-2007, 08:53 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Quote:
Originally Posted by Matt View Post
Regarding thumbnails:
You may already know this, but an image has height and width properties so you can change it's rendered size on the page. Unfortunately, it takes the same amount of time to load as the larger version, so it may work better for you just to create a resized copy of your original image to have as your thumbnail. Anyway, here is some code...
HTML Code:
<img src="myimage.gif" height="200" width="300">
Also, using this method will distort the image and it will probably be very bad quality. Using the "Scale" or "Image Resize" function of a image editor is a much better idea.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-31-2007, 12:10 PM
xtraze xtraze is offline
Programming God
 
Join Date: Dec 2006
Location: Sri lanka
Posts: 921
Rep Power: 0
xtraze is on a distinguished road
Send a message via MSN to xtraze Send a message via Skype™ to xtraze
Default

Yeah, It is better to make 2 Images, 2 BIG and one small.
So you can show the small image and link to the BIG size Image.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-04-2007, 03:29 PM
priorityone
Guest
 
Posts: n/a
Default

I enjoyed this instructional thread..since I am always wanting to change the size of images to fit in my websites.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spaces between pictures dirkfirst HTML Programming 4 02-28-2007 12:22 PM
Post your pet pictures! TcM The Lounge 6 01-06-2007 02:16 AM
Post your PC pictures TcM The Lounge 5 12-07-2006 12:37 PM
newbie- image downloader yoda855 Visual Basic Programming 34 08-11-2006 12:36 AM
Storing Binary NeedHelp PHP Forum 5 07-05-2006 10:47 PM


All times are GMT -5. The time now is 06:35 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads