• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with image divs ref CSS and Javascript

 
Raphael Zwyer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need some help here, it's driving me nuts.

Here's the work in progress:
http://www.raphaelzwyer.com/testRapha/portfolio_gentherm.html

For the images in the gallery (five at a time, right now compiled into one large image) I have the following HTML code:



Javascript file:




CSS



There are transparent layers on each side to cover the images not currently in the center.

I would like to have each of the five images as separate CSS background images (faster load, easier managing, better image quality...) and not, as they are now, embedded in HTML, but I don't know how to do it without ending up having to use a separate CSS class or ID for every single image.
How exactly would I reference the images in a simple way (maybe I have to just number them and put them in different folders, one per page, but how...)?!
I'm a newbie, not familiar with Javascript or content management so I'd probably need a concrete example of how HTML, CSS and Javascript work together to reference and load the images plus how that goes together with the forward back function. It would probably be easier for me to understand when using the same ID's and classes in the example.

Thanks!!>
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, and welcome to the Ranch!

Note that JavaScript is not Java. Moving to a more appropriate forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic