본문 바로가기
프로그래밍/JAVA, JSP

JSP 풍선도움말 넣기

by 착살의 숲 2013. 11. 13.
반응형

<a style="cursor:hand" onmouseover="LayerSH('summary','show')" onmouseout="LayerSH('summary','hide')">"아이콘면"</a> 

 

 

이부분에 내용을 넣으면 됩니다. 

<div id="summary" style="position:absolute; width:230; height:155; display:none"> 

"내용넣기"     

</div>

 

  

// focus 

function allblur() { 

  for (i = 0; i < document.links.length; i++) 

    document.links[i].onfocus = document.links[i].blur; 

 

// openwindow 

function openwindow(theURL,winName,features) { 

    window.open(theURL,winName,features); 

 

// rollover 

var changedImg; 

 

 

function EImgChg(flag)  

    source=event.srcElement; 

    if (source.name == "")  

    { return false;  } 

 

    if(changedImg == source.name) 

    return; 

 

    else if (document.images && source.tagName=="IMG") { 

        imgElement = source.name;  // 이미지 name 

        imgPath = source.src;   // 이미지 src 속성값 

 

        imgPathLen = imgPath.length; 

        imgPathFlag = imgPath.lastIndexOf("/"); 

        imgName = imgPath.substring(0,imgPathFlag+1); 

 

        document.images[imgElement].src =  imgName + imgElement + "_" + flag + ".gif";   

         

    } 

 

// layer 

function LayerSH(LayerName,Status)  

//    ns4 = (document.getElementById)?true:false; 

//    ie4 = (document.all)?true:false; 

 

    if (navigator.appName == "Netscape") 

    { 

        LayerN = document.getElementById(LayerName).style; 

        if (Status == 'show') LayerN.visibility = 'visible'; 

        if (Status == 'hide') LayerN.visibility = 'hidden'; 

    }     

    else 

    { 

        LayerN = document.all[LayerName].style; 

        if (Status == 'show') LayerN.display = ''; 

        if (Status == 'hide') LayerN.display = 'none'; 

    } 

 

    LayerN.top = window.event.clientY + document.body.scrollTop-1; 

    LayerN.left = window.event.clientX + document.body.scrollLeft+10; 

 

function LayerSH2(LayerName,Status)  

    LayerN = parent.document.getElementById(LayerName).style; 

    if (Status == 'show') LayerN.display = ''; 

    if (Status == 'hide') LayerN.display = 'none'; 

 

// openwindow 

function openwindow(theURL,winName,features) { 

    window.open(theURL,winName,features); 

 

// bg_print 

function pageprint() 

    rightbg.style.background='#FFFFFF'; 

    window.print(); 

    rightbg.style.background='#DBDBDB'; 

 

// link 

function goto(trg,URL) 

    window.open(URL,trg,''); 

 

------------------------------------------------------------------------------------

 

풍선도움말 내용입력중 줄바꿈을 하려면 "&#10;"를 입력하면 된다

 

<span title=풍선도움말&#10;줄바꿈>풍선도움말</span>
반응형

댓글