Gregor Kofler said:
Am 2010-08-16 00:44, se meinte:
Definitely not. In the latter case the condition always evaluates to true,
and visibility will always be set to visible.
(You have not the slightest clue of JS, have you?)
Gregor
Why do you think people's asking for help here. Ask yourself too?.
In this case, anyway, I accidentedly changed the two. Look at
the same I posted above. Here the "if" clause uses the double equal
sign.
The code below here is working perfectly as long as all the styles
are in the container div on the hidden layer. Transfering those styles
to the document head, it stops working.
If you don't have anything useable to say, Gregor, then piss off.
And get you site to validate. There's other easy methodes for
making round corners. Do you have trouble using graphics?.
Until browsers can handle css3 stick to the old method.
TwentySix validation errors is far too much. And is not even
gracefull in itself.
var thisdoc;
var cooLX;
document.onmouseup = mouseup;
function Dragg(e){
if (e == null) { e = window.event;}
var tar = (typeof( window.event ) != "undefined" ) ? e.srcElement :
e.target;
if (tar.id=="titlebar")
{
mouseover=true;
curX=parseInt(thisdoc.style.left);
curY=parseInt(thisdoc.style.top);
offsetx=e.clientX;
offsety=e.clientY;
document.onmousemove=drg;
return false;
}
else { return false; }
}
function drg(e){
if (e == null) { e = window.event;}
var coorl=curX+e.clientX-offsetx;
var coort=curY+e.clientY-offsety;
if (coorl<0){coorl=0;}
if (coort<0) {coort=0;}
thisdoc.style.left = coorl + "px";
thisdoc.style.top = coort + "px";
return false;
}
function mouseup(e)
{
document.onmousemove=null;
}
function HideLayer(){
if (thisdoc.style.visibility == "visible")
{
thisdoc.style.visibility = "hidden";
}}
function ShowLayer(){
thisdoc=document.getElementById("layer10");
if (thisdoc.style.visibility == "hidden")
{
thisdoc.style.position = "fixed";
thisdoc.style.visibility = "visible";
thisdoc.style.left = 30 + "px";
thisdoc.style.top = 125 + "px";
}}
/se