Jump to content

Help with pulling info from database


timmah1

Recommended Posts

storing images in a database is not the best way to go about things...

 

You might do better storing the images in a folder and using the database to hold the address and info you want displayed... simple alt text for the images will work for you im sure.

Link to comment
Share on other sites

ok, maybe I wasn't too clear.

 

The images are not stored in the database, the file name is.

 

I want to display the image, but when I rollover the image, I want info about that picture to show up underneath it without throwing off the design, pretty much a float, but I'm not sure how to go about doing this.

Link to comment
Share on other sites

Self Drive car does it like this.

 

onmouseover="document.getElementById('product_id0').className='product productOn';" onmouseout="document.getElementById('product_id0').className='product';"

 

these change styles for the element.... then take a look at this css

 

http://www.lambogenie.co.uk/common/styles-screen.css

 

 

About 2/3 the way down the page you will find this

 


.productOn {
background: #ffab00;	
}

.productOn .productPreview {
display: block;
width: 201px;/*181+10+10*/
margin: 0 0 35px 0;
padding: 0 0 10px 0;
position: absolute;
z-index: 10002;
background: #ffab00;
}

.productOn .productImage a {
background: none;
}

.productOn .productTitle a {
color: #120c00 !important;
}

.productOn .productTitle a span {
border: none;
}

.productOn .productDescription {
color: #4a3300;
}

 

So it looks like this is a mostly CSS based solution with a tiny bit of JS to change the styles based on mouseover or mouseout

 

Nate

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.