NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page I created a new CSS image enlarge effect

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 11-01-2009, 09:32 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Sep 2006
Location: London, UK
Posts: 1,900
Erdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond reputeErdy has a reputation beyond repute
 



I created a new CSS image enlarge effect


You can see it HERE.

The uniqueness is that it uses the same image file for thumb and large versions. The image is scaled down automatically in proportion. There is no image specific dimension entered anywhere.

In the example all images have different sizes. If you replaced them with new images that have different dimensions it would just work without and setting alteration.

If you had changed the thumb width, all thumbs would be updated on the fly.

As far as I know this was not done before.

Comparison with existing systems:

1. dynamicdrive
Two files are needed for thumb and large. You need to create a thumb image in an image editor for each large image. If you wantde to change the thumb heights you would have to create all thumbs again.

small file is here: http://www.dynamicdrive.com/cssexamp...tree_thumb.jpg
large file is here: http://www.dynamicdrive.com/cssexamples/media/tree.jpg

My system uses only one file.

2. cssplay.co.uk
Works again with two files:
small file is here: http://www.cssplay.co.uk/img/tdrips.jpg
????: NamePros.com http://www.namepros.com/programming/620440-i-created-new-css-image-enlarge.html
large file is here: http://www.cssplay.co.uk/img/drips.jpg

3. randsco.com

Uses asingle file but you need to specify both the height ad width for each thumb in the HTML like this:
style="width:210px; height:137px;

For instance if you have an image at 560x240 px dimensions and what is the height of the thumb if you want the width to be, say, 190 px ? You need to calculate this and enter it in the HTML for each thumb.

In my system you don't enter any image specific value. You can have 10 images all at different sizes and they will all display with the same width.
Last edited by Erdy; 11-01-2009 at 10:24 AM.
Erdy is offline   Reply With Quote
Reply


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


 
All times are GMT -7. The time now is 02:32 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger