Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Image stacking script (https://www.warriorforum.com/programming/119987-image-stacking-script.html)

coog 1st September 2009 12:29 PM

Image stacking script
 
I've been tasked with building a page that a user can change colors and options of a building similar to this:

Lancaster County Barns - Custom Colors

The JS on this page is pretty easy to follow and I'm pretty sure I can do something very similar but I'm no JS programmer and would like to put something together that's a little nicer.

Anyone seen a jquery or php script (or similar) that does image stacking or dynamic image changes that I could mold into something similar to the above link?

Thanks!

LessThanWeb 1st September 2009 02:28 PM

Re: Image stacking script
 
The above thing is very easy. Its just a bunch of transparent SAME sized images with an CSS order set (z-index). So when you click to change window color, only in that div, the image is changed.

I recommend JQuery for this. It's really just a matter of changing DIV content (html).
With JQuery you can change content of a div simply by:
Quote:

$('#divIDhere').html('new html content');
And that's it. :)

More complicated is the graphic part as you have to cut out each thing.. :)

coog 2nd September 2009 12:33 AM

Re: Image stacking script
 
Thanks LessThanWeb, I knew the graphics would be a PIA. I'll study up on jquery scripting and give it a go...

Thanks!


All times are GMT -6. The time now is 04:28 PM.