Hi All,
I'm working on a project where I have to display list of users and when we take mouse over to perticular user name, an image of that user should be displayed on right hand side.
I know I'll have to use javascript. but how would I set position of <div> dynamicaly..?
The result should exactly look like following url
http://www.corcoran.com/agents/agent...sults.aspx?L=A
How to change <div> position dynamicaly
Moderator: General Moderators
Re: How to change <div> position dynamicaly
Load all user images next to there username and keep img tag style->display->none. Now onmouseover effect of username just display img tag by style->display->block and onmouseout hide the respective image.
Re: How to change <div> position dynamicaly
You could probably fairly easily do it all with css no javascript required.
Re: How to change <div> position dynamicaly
CSS or Javascript, the solution isn't in PHP - Code, but rather Client Side.
Moving to the appropriate forum.
Also, your link is broken.
Moving to the appropriate forum.
Also, your link is broken.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: How to change <div> position dynamicaly
I'd learn jquery or any of the other jscript libraries.
-
jason.carter
- Forum Commoner
- Posts: 35
- Joined: Sat Jan 10, 2009 10:05 am
Re: How to change <div> position dynamicaly
Also give script.aculo.us a try for this.