options added in designer

This commit is contained in:
ankitg
2010-06-09 22:53:13 +05:30
parent 58a2724c31
commit 12af64757b
3 changed files with 183 additions and 2 deletions

View File

@@ -965,3 +965,43 @@ function getColorByTarget( target )
return color;
}
function Click_option(id_this)
{
var left = Glob_X - (document.getElementById(id_this).offsetWidth>>1);
document.getElementById(id_this).style.left = left + 'px';
// var top = Glob_Y - document.getElementById(id_this).offsetHeight - 10;
document.getElementById(id_this).style.top = (screen.height / 4) + 'px';
document.getElementById(id_this).style.visibility = "visible";
}
function Close_option()
{
document.getElementById('pmd_options').style.visibility = "hidden";
}
function Select_all(id_this)
{
var parent= document.form1;
for(i = 0; i < parent.elements.length; i++) {
if (parent.elements[i].type == "checkbox" && parent.elements[i].id.substring(0,(7 + id_this.length)) == 'select_' + id_this) {
if(document.getElementById('select_all_' + id_this).checked == true)
parent.elements[i].checked = true;
else
parent.elements[i].checked = false;
}
}
Re_load();
}
function Table_onover(id_this,val)
{
if(!val) {
document.getElementById("id_zag_" + id_this).className="tab_zag_2";
document.getElementById("id_zag_" + id_this + "_2").className="tab_zag_2";
}
else {
document.getElementById("id_zag_" + id_this).className="tab_zag";
document.getElementById("id_zag_" + id_this + "_2").className="tab_zag";
}
}

View File

@@ -147,6 +147,23 @@ form {
color: #888888;
}
.option_tab {
padding-left: 2px;
padding-right: 2px;
width: 5px;
}
.select_all {
vertical-align: top;
padding-left: 2px;
padding-right: 2px;
cursor: default;
width: 1px;
color: #000000;
background-image: url(images/Header.png);
background-repeat: repeat-x;
}
.small_tab {
vertical-align: top;
background-color: #0064ea;
@@ -372,6 +389,14 @@ a.M_butt:hover {
width: 153px;
}
#pmd_optionse {
position: absolute;
left: 636px;
top: 85px;
z-index: 1000;
width: 153px;
}
#layer_menu_sizer {
background-image: url(../../images/resize.png);
cursor: nw-resize;