How to change <div> position dynamicaly

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
rasana
Forum Newbie
Posts: 9
Joined: Fri Aug 08, 2008 6:07 am

How to change <div> position dynamicaly

Post by rasana »

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
pbs
Forum Contributor
Posts: 230
Joined: Fri Nov 07, 2008 5:31 am
Location: Nashik, India
Contact:

Re: How to change <div> position dynamicaly

Post by pbs »

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.
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

Re: How to change <div> position dynamicaly

Post by watson516 »

You could probably fairly easily do it all with css no javascript required.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: How to change <div> position dynamicaly

Post by pickle »

CSS or Javascript, the solution isn't in PHP - Code, but rather Client Side.

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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: How to change <div> position dynamicaly

Post by josh »

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

Post by jason.carter »

Also give script.aculo.us a try for this.
Post Reply