how can my page recognise which "div" is selected

  •  09-04-2009, 10:37 PM

    how can my page recognise which "div" is selected

    hi all
     
    i got a problem now in using cute editor.....
     
    for example i add 1 layer "div1" ....
     
    and i wanna add another layer "div2" .......
     
    the problem is
     
    if "div1" is selected, and "add layer" button is click.....it will replace "div1" to "div2" instead of add new layer "div2" to it
     
    my idea is i would like to block the user to click on the "add layer" button, if there is any "div" , "button", "image" is selected
     
    is it possible ?
     
    thanks
View Complete Thread