Hi. This is my first post.

I have a MYSQL database, it has a title row, main img row, link row.
I want to have a table that displays the main img (brings up picture) when the title and link rows are rolled over in a separate table. I need to be able to control the position of the main img that comes up.

I've tried a couple different solutions, but to no success.

Basically..
I need javascript to help position an image that comes up when a link is rolled over.

Recommended Answers

All 2 Replies

you can use dom's style.left and style.top properties to position the img.
if it is not working put img inside a div and use above property, with div .and also put style.position='absolute' to work with div.

Will this work with integrating javascript and php/mysql statements?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.