It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

flexibility with span

flexibility with span

Postby bloodandwater on Mon Mar 19, 2007 12:12 pm

hello friends,

i require a help from u all. i m working on a XHTML page. There all the images and the texts are editable. User can drag, edit, copy, paste all the elements present there. i m using a code like -

<span class="drag" contenteditable="true" onmouseover="borderit(this,'green')" onmouseout="borderit(this,'000000')" style="border: 2px solid #000000; border-style: dashed;">
<span contenteditable="true">
<img src="images/logo.jpg" alt="CompanyLogo" /></span></span>

.drag {
position:relative;
cursor:pointer;
}

It works like, when a user rollovers the mouse over any object a border appears and on rollout it disappears. On clicking it can be editable. Thats fine.

Now i want the border to be present there when clicked and it will disappear when i click on any other object or any where else.

If any one can help me regarding this topic i will be extremely thankful to u all.

regards
bloodandwater
 
Posts: 0
Joined: Mon Mar 19, 2007 11:59 am

Postby jberry on Mon Mar 19, 2007 6:05 pm

do you have a link so I can see it may be easy but just so i can get an idea of what youare doing
jberry
100+ Club
 
Posts: 144
Joined: Mon Mar 19, 2007 4:40 pm
Location: Atlantic City, NJ


Who is online

Users browsing this forum: No registered users and 8 guests