CSS ¹× JAVASCRIPT ¼Ò½º È¿°úÀûÀ¸·Î ¼û±â±â |
|
|
 |
17³â Àü |
Áö±Ý±îÁö ¼Ò½º ¼û±â½Ã·Á°í ÇϽŠºÐµé, º¸Åë javascript·Î return false ó¸®Çؼ ¸·¾Ò½À´Ï´Ù.
±×·¯³ª ÆíÁý -> ¼Ò½ºº¸±â¸¦ º¸°Å³ª ÀÚ¹Ù½ºÅ©¸³Æ®¸¦ ²¨¹ö¸®¸é ¹«¿ëÁö¹°ÀÌ µÇ¾î¹ö¸³´Ï´Ù..
µû¶ó¼, Á¦°¡ °í¾ÈÇÑ ¹æ¹ý!
PHP¸¦ ÀÌ¿ëÇÑ ¹æ¹ýÀÔ´Ï´Ù.
½ºÅ¸ÀϽÃÆ®, style.css¸¦ ¿¹Á¦·Î µé¾îº¾½Ã´Ù.
º¸Åë style.cssÆÄÀÏÀº ¸·Áö ¸øÇÕ´Ï´Ù. µû¶ó¼ ÀÌ°ÍÀ» phpÆÄÀÏ·Î ¹Ù²ã Äڵ带 ¼û±æ ¼ö ÀÖ°Ô Çϴ°̴ϴÙ.
style.cssÆÄÀÏÀÌ ´ÙÀ½°ú °°´Ù°í ÇսôÙ.
--------------------------------------------------------------------------------------------------
body {
font-size:11px;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
form {
padding:0px;
margin:0px;
}
td{
padding:2px;
}
img {
border:0px none;
}
/* General Links */
a {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:active {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:visited {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:hover {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#DDDDDD;
text-decoration:underline;
}
/* General Horizontal Lines */
hr {height:1px;width:100%;color:#999999;background:#999999;border:0;}
--------------------------------------------------------------------------------------------------
±×³É º¸Åë cssÆÄÀÏÀÔ´Ï´Ù.. µû¶ó¼ ¾Æ¹«°Íµµ ¸·Áö¸¦ ¸øÇÏÁÒ.
±×·¯¸é cssÆÄÀÏÀ» style.php·Î º¯°æ ÇÑ ÈÄ ´ÙÀ½°ú°°ÀÌ Çغ¾½Ã´Ù.
--------------------------------------------------------------------------------------------------
<?
header("Content-type: text/css");
$load_check = $_GET['load_check'];
$_load_check = sha1(date('d m A s i'));
if($load_check == $_load_check){
?>
body {
font-size:11px;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
form {
padding:0px;
margin:0px;
}
td{
padding:2px;
}
img {
border:0px none;
}
/* General Links */
a {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:active {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:visited {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#777777;
text-decoration:none;
}
a:hover {
font-size:11px;
font-weight:normal;
font-family:Verdana,Tahoma,Arial,sans-serif;
color:#DDDDDD;
text-decoration:underline;
}
/* General Horizontal Lines */
hr {height:1px;width:100%;color:#999999;background:#999999;border:0;}
<?
}
else{
echo "/* ¼Ò½º¸¦ º¸½Ã°í ½ÍÀ¸½Ã´Ù¸é ¿¬¶ôÇØÁÖ¼¼¿ä.... */";
}
?>
--------------------------------------------------------------------------------------------------
ÀÌ·¸°Ô º¯°æ ÇÑ ÈÄ ´ÙÀ½°ú °°ÀÌ cssÆÄÀÏÀ» ºÒ·¯¿É½Ã´Ù.
--------------------------------------------------------------------------------------------------
<link rel="stylesheet" href="css/style.php?load_check=<?=sha1(date('d m A s i'));?>" type="text/css" />
--------------------------------------------------------------------------------------------------
ÀÌ·¸°Ô Çϸé À¥¼¹ö´Â Àоî¿Íµµ °³ÀÎÀÌ ÀÐÀ¸·Á¸é 1Ãʸ¶´Ù ¹Ù²î´Â ÇؽðªÀ» ¾Ë¾Æ¾ß Çϱ⠶§¹®¿¡ º¸±â°¡ Èûµé¾îÁý´Ï´Ù..
¶ÇÇÑ, ¾î¶»°Ô ¾ÏȣȵǾú´ÂÁö ¸ð¸£¸é °ÅÀÇ ºÒ°¡´ÉÇÏ´Ù°í º¸¸é µË´Ï´Ù.
ÀÚ¹Ù½ºÅ©¸³Æ®µµ ÀÌ¿Í°°ÀÌ Ã³¸®ÇÏ¸é µË´Ï´Ù. |
|
̵̧ : 324 |
̵̧
¸ñ·Ï
|
|