½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
happycgi
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > JAVASCRIPT > javascript ¼Ò½ºÃ¢°í > ¸¶¿ì½ºÈ¿°ú > Title to Note Script »ó¼¼Á¤º¸
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
Title to Note Script
¼Ò½ºÅë°èÁ¤º¸ ¿À·ù½Å°í ¹× ¹®ÀÇ
ÇØÇÇÆÀ
³×ƼÁð
Æ®À§ÅÍ·Î º¸³»±â ÆäÀ̽ººÏÀ¸·Î º¸³»±â
¼Ò½ººÐ·ù ¸¶¿ì½ºÈ¿°ú
´Ù¿î·Îµå Ƚ¼ö 697 ȸ
°£´Ü¼³¸í ¸µÅ©µÈ ÅؽºÆ®³ª À̹ÌÁö¿¡ ¸¶¿ì½º¸¦ ¿Ã¸®¸é ºê¶ó¿ìÀú ÇÏ´Ü¿¡ ÅøÆÁÀÌ ³ª¿À¸é¼­ ÇØ´ç ¼³¸íÀÌ Ç¥½ÃµË´Ï´Ù.
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
ȨÆäÀÌÁö¹Ù·Î°¡±â ¼Ò½º´Ù¿î·Îµå µ¥¸ð ¹Ì¸®º¸±â ½ºÅ©·¦Çϱâ

[ CSS ]

#title2note{
 position: fixed;
 z-index: 2;
 bottom: 0;
 right: 0;
 width: 20em;
 margin: 1em;
 padding: 7px 5px 7px 10px;
 font: 12px/1.2em "Lucida Console", "Courier New", monospace;
 text-align: left;
 color: #111;
 background-color: #FFFFB4;
 border: 1px solid #111;
}
/* star html hack - IE only */
* html #title2note{
 position: absolute;
}
/* a bet on future IEs */
#title2note[id]{
 position: fixed;
}


[ JS ]


var titleToNote = {
 // Define which elements should be affected:
 elements : ['a', 'img'],
 setup : function(){
 if(!document.getElementById || !document.createElement) return;
   // create note
   var div = document.createElement("div");
   div.setAttribute("id", "title2note");
   document.getElementsByTagName("body")[0].appendChild(div);
   document.getElementById("title2note").style.display = "none";
   // attach events
   for(j=0;j<titleToNote.elements.length;j++){
     for(i=0;i<document.getElementsByTagName(titleToNote.elements[j]).length;i++){
       var el = document.getElementsByTagName(titleToNote.elements[j])[i];
       if(el.getAttribute("title") && el.getAttribute("title") != ""){
         el.onmouseover = titleToNote.showNote;
         el.onmouseout = titleToNote.hideNote;
       }
     }
   }
 },
 showNote : function()
 {
   document.getElementById("title2note").innerHTML = this.getAttribute("title");
   this.setAttribute("title", "");
   document.getElementById("title2note").style.display = "block";
 },
 hideNote : function()
 {
   this.setAttribute("title", document.getElementById("title2note").innerHTML);
   document.getElementById("title2note").innerHTML = "";
   document.getElementById("title2note").style.display = "none";
 }
}
 /* End Title To Note */
 
//Onload Handling
var oldonload=window.onload;if(typeof window.onload!='function'){
window.onload=titleToNote.setup;
}else{window.onload=function(){oldonload();
titleToNote.setup();}}
  /* setup faster by deleting these lines and adding
         <script type="text/javascript">titleToNote.setup();</script>
         before the closing body tag in your HTML */


[ HTML ]

<html>
<head>
 <title>Title to note</title>
 <script type="text/javascript" src="js/title2note.js"></script>
 
 <style type="text/css" media="screen">
 
 @import "css/title2note.css";
 
 /* DEMO CSS */
 
 
 body{
  background-repeat:no-repeat;
  font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
  font-size:0.9em;
  line-height:130%;
  text-align:center;

  background-color: #E2EBED;
  margin:0px;
 }
 
 #mainContainer{
  width:760px;
  text-align:left;
  background-color:#FFF;
  padding:10px;
 }
 
 img{
  border:0px;
 }
 a{
  color:#F00;
 }
 </style>
</head>
<body>

<div id="mainContainer">
<img src="/images/heading3.gif">
<h1>Title To Note</h1>
<p>This nice script uses the standard title attribute to show a message in the bottom right corner of the browser instead of the standard browser tooltip.</p>
<h2>Example:</h2>
<pre>&lt;a href="#" title="b&auml;&auml;h"&gt;TestLink&lt;/a&gt;</pre>
<p>becomes <strong><a href="#" title="b&auml;&auml;h">TestLink</a></strong> <em>&lt;- Hover this and look on the bottom right.</em></p>
<h2>Examples</h2>
<p><img src="images/demo_image1.jpg" alt="TestImage" title="This picture is from an island at the west coast of Norway"> <em>&lt;- Hover this image.</em><br><br></p>
<p><strong><a href="#" title="This is just a link">TestLink</a></strong> <em>&lt;- Hover this link.</em><br><br></p>
<p><em>Should work in browsers with support for DOM and position:fixed and also in IE 5+.</em></p>
<p>Tested in: Firefox, IE5+, Opera7</p>
</div>
</body>
</html>

 


³×ƼÁð ÀÇ°ß   ÀÌ¿ëÇϽŠÀÚ·áÀÇ Èı⸦ ÀÚÀ¯·Ó°Ô ÀÛ¼ºÇϼ¼¿ä. (»ó¾÷ÀûÀÎ ±¤°í ¹× µµ¹è¼º ±Û µîÀº »çÀüÅ뺸¾øÀÌ »èÁ¦µÉ ¼ö ÀÖ½À´Ï´Ù.)
³»¿ë ¾ÆÀ̵ð ÀÇ°ß³²±â±â
µî·ÏµÈ ÀÇ°ßÀÌ ¾ø½À´Ï´Ù.
1
À̸§
³»¿ë
:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~
Æò°¡Çϱâ ÈǸ¢ÇÔ ¸Å¿ìÁÁÀ½ ÁÁÀ½ ±¦ÂúÀ½ º¸Åë º°·Î
µµ¹è¹æÁöÅ°
 73874858 º¸ÀÌ´Â µµ¹è¹æÁöÅ°¸¦ ÀÔ·ÂÇϼ¼¿ä.