'Windows/JAVASCRIPT'에 해당되는 글 13건

In a html page in a frame I have the following code:

<!------- Begin Stat code ------------->
<script language="JavaScript">
var path = 'http://www.mysite.com/contvb.aspx';
document.write('<img height=1 width=1 border=0 src="');
document.write(path);
document.write('?referer=');
document.write(escape(parent.document.referrer));
document.write('&rsl=');
document.write(screen.width+"x"+screen.height);
document.write('&dp=');
document.write(screen.colorDepth);
document.write('">');
</script>
<noscript>
<img height=0 width=0 src="http://www.mysite.com/contvb.aspx";>
</noscript>
<!------- End Stat code ------------->

the contvb.aspx save a record for each visit to the html page.
And usually everything is ok (there is a field for "referer", "rsl", "dp"),
but rarelly when I look at the record I find something strange:

"<noscript><img height=0 width=0 src="

How does it happens? Can I solve the problem?


--

Giuseppe

출저:http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.javascript/2005-07/msg00149.html
Posted by 아로스

말풍선

Windows/JAVASCRIPT 2008. 5. 24. 14:52
<html>
<head>
<script language="JavaScript">
<!--
function alt( msg, _width, _height ){
    var _style = alt_div.style;
    if( msg != null ){
        alt_div.innerHTML = msg;
        _style.visibility = "visible";
        if( _width != null ){
            if( alt_div.offsetWidth > _width ){
                _style.width = _width;
            }
        }
        if( _height != null ){
            if( alt_div.offsetHeight > _height ){
                _style.height = _height;
            }
        }
    }else{
        _style.visibility = "hidden";
    }
}

document.write(
    "<div id=alt_div style=\"" +
    "padding:2;" +
    "border:1 solid #FF7200;" + // 말풍선 테두리 컬러
    "background-color:#F7F7F7;color:#000;" + // 말풍선 테이블 백그라운드컬러 / 폰트컬러
    "position:absolute;" +
    "visibility:hidden;" +
    "overflow:hidden;" +
    "z-index:auto;" +
    "width:auto;" +
    "height:auto;" +
    "filter:alpha(opacity=60);" + // 투명도
    "\"></div>"
);

document.onmousemove = get_xy;
function get_xy(){
    var _style = alt_div.style;
    var x = event.x + document.body.scrollLeft;
    var y = event.y + document.body.scrollTop;
    _style.left = x + 10;
    _style.top = y + 10;
}
//-->
</script>
</head>

<body>
<a href=# onmouseover="alt( '테스트용 말풍선 입니다.<br>말풍선이 생겼나요?<p>생겼으면 말해주세요.' )" onmouseout="alt()">마우스 올려봐요.</a><p>
레이어에 투명도를 주었군요.ㅎㅎ
</body>

</html>
Posted by 아로스

<script>
 function file_browse()
 {
  document.form.file.click();
  document.form.text1.value=document.form.file.value;
 }
</script>
<p>
<form name="form">
  <input type="file" name= "file" style="display='none';">
  <input type="text" name="text1"> <a href="javascript: file_browse()">Search</a>

 </form>

Posted by 아로스
12

아로스

달력