Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A drag control

Status
Not open for further replies.

mattquantic

Programmer
Mar 28, 2004
196
GB
Hi.

If you look at
At the top there is an element that allows people to control the size of all the images in the results pane.

I'm not looking to emulate the image size stuff, but I am trying to workout how to make something siumilar to the control - do people can move a dragger to set the value of something.

Is this JS? Anyone know of any working examples?

Matt
 
You could do this with javascript (and I'm sure it is). Give all the images you want to control a common CSS class. Then, when you want to resize them, iterate through and update their width property. Assuming the images are floated left (sayu) then they will all re-flow using CSS. I'd pick a max image size to show, and then resize down by merely changing the width/height properties (not a true resize of course).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Wow - thanks for all the links and info everyone

> getting down to some testing now

Thanks loads!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top