λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
SEO/seo-resources

[ ꡬ글 λ°°λ„ˆκ΄‘κ³  μ½”λ“œ ] μ‚¬μ΄λ“œ κ³ μ • ꡬ글 κ΄‘κ³  λ°°λ„ˆ μ œμž‘ 방법

ꡬ글 κ΄‘κ³  μ½”λ“œ ν™œμš©ν•œ μ‚¬μ΄λ“œ λ°°λ„ˆ μ œμž‘

ꡬ글 κ΄‘κ³  μ½”λ“œλ₯Ό ν™œμš©ν•΄μ„œ μ‚¬μ΄λ“œ λ°°λ„ˆ κ΄‘κ³  μ œμž‘ λ°©λ²•μž…λ‹ˆλ‹€. λͺ¨λ°”일 μƒνƒœκ°€ 되면 λ°°λ„ˆμ½”λ“œ 자체λ₯Ό 싀행이 μ•ˆ 되게 μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€. 일반적으둜 μ‚¬μš© μ‹œ ꡳ이 λͺ¨λ°”μΌμ—μ„œ 보이지 μ•ŠλŠ” μ‚¬μ΄λ“œ λ°°λ„ˆ κ΄‘κ³ λ₯Ό μ‚­μ œκΉŒμ§€ ν•  ν•„μš”λŠ” μ—†μ§€λ§Œ λ©”λͺ¨λ¦¬λ₯Ό μ†Œλͺ¨ν•˜κΈ°λ„ ν•˜κ³  더 큰 λ¬Έμ œλŠ” μ½˜μ†”μ— μ—λŸ¬ λ©”μ‹œμ§€λ₯Ό ν‘œμ‹œν•˜κΈ° λ•Œλ¬Έμ— 검색봇은 였λ₯˜λ₯Ό μΈμ‹ν•΄μ„œ μ„±λŠ₯ 검사 점수λ₯Ό ν•˜λ½μ‹œν‚΅λ‹ˆλ‹€.

κ΄‘κ³  λ² λ„ˆ μ½”λ“œ

μ‚¬μ΄λ“œ λ°°λ„ˆ CSS μ½”λ“œ μ„€λͺ…

μ•„λž˜ μ‚¬μ΄λ“œ λ°°λ„ˆ μ½”λ“œλ₯Ό μžμ‹ μ˜ κ΄‘κ³  μ½”λ“œμ— 맞게 μˆ˜μ •ν•΄μ„œ μ‚¬μš©ν•˜μ‹œλ©΄ λ©λ‹ˆλ‹€. μ‚¬μ΄λ“œ λ°°λ„ˆ κ΄‘κ³ μ˜ μœ„μΉ˜λ„ λ³€κ²½ν•΄μ„œ μ‚¬μš©ν•˜μ‹œκ³  νŽ˜μ΄μ§€μ˜ ν•΄μƒλ„μ˜ 크기λ₯Ό κ³„μ‚°ν•΄μ„œ μ„€μ •ν•˜μ‹œλ©΄ μ‚¬μ΄λ“œ λ°°λ„ˆ κ΄‘κ³ μ˜ μœ„μΉ˜λ₯Ό μ„€μ •ν•  수 μžˆμŠ΅λ‹ˆλ‹€. μ΅œλŒ€ν•œμ˜ λ…ΈμΆœκ³Ό μ‚¬μš©μžμ˜ λΆˆνŽΈν•¨μ„ μ΅œλŒ€ν•œμœΌλ‘œ 쀄이도둝 κ΄‘κ³ μ˜ μœ„μΉ˜λ₯Ό μ„€μ •ν•˜μ‹œλ©΄ λ©λ‹ˆλ‹€.

였λ₯Έμͺ½ κ³ μ • μ‚¬μ΄λ“œ λ°°λ„ˆ

position: absolute; /* μš”μ†Œλ₯Ό μ ˆλŒ€ μœ„μΉ˜μ— 배치 */
width: 160px; /* μš”μ†Œμ˜ λ„ˆλΉ„ μ„€μ • */
right: 50%; /* μš”μ†Œλ₯Ό 였λ₯Έμͺ½μ—μ„œ 50% λ–¨μ–΄μ§„ μœ„μΉ˜μ— 배치 */
top: 60px; /* μš”μ†Œλ₯Ό μœ„μ—μ„œ 60px λ–¨μ–΄μ§„ μœ„μΉ˜μ— 배치 */
margin-right: 470px; /* μš”μ†Œμ˜ 였λ₯Έμͺ½ μ—¬λ°± μ„€μ • */ 이뢀뢄을 μˆ˜μ •ν•˜μ‹œλ©΄ μœ„μΉ˜ λ³€κ²½
z-index: 9999; /* μš”μ†Œμ˜ z-index μ„€μ •, λ‹€λ₯Έ μš”μ†Œ μœ„μ— ν‘œμ‹œλ˜λ„λ‘ 함 */
transform: translateX(-50%); /* μš”μ†Œλ₯Ό μˆ˜ν‰ μ€‘μ•™μœΌλ‘œ 이동 */

μ™Όμͺ½ μ‚¬μ΄λ“œ κ³ μ • λ°°λ„ˆ

position: absolute; /* μš”μ†Œλ₯Ό μ ˆλŒ€ μœ„μΉ˜μ— 배치 */
width: 160px; /* μš”μ†Œμ˜ λ„ˆλΉ„ μ„€μ • */
left: 50%; /* μš”μ†Œλ₯Ό μ™Όμͺ½μ—μ„œ 50% λ–¨μ–΄μ§„ μœ„μΉ˜μ— 배치 */
margin-left: 650px; /* μš”μ†Œμ˜ μ™Όμͺ½ μ—¬λ°± μ„€μ • */ 이뢀뢄을 μˆ˜μ •ν•˜μ‹œλ©΄ μœ„μΉ˜ λ³€κ²½
top: 60px; /* μš”μ†Œλ₯Ό μœ„μ—μ„œ 60px λ–¨μ–΄μ§„ μœ„μΉ˜μ— 배치 */
z-index: 9999; /* μš”μ†Œμ˜ z-index μ„€μ •, λ‹€λ₯Έ μš”μ†Œ μœ„μ— ν‘œμ‹œλ˜λ„λ‘ 함 */
transform: translateX(-50%); /* μš”μ†Œλ₯Ό μˆ˜ν‰ μ€‘μ•™μœΌλ‘œ 이동 */

카카였 μ• λ“œν• κ΄‘κ³  μ„€μ •

var adArea = document.createElement('ins');
adArea.className = 'kakao_ad_area'; adArea.style.display = 'block'; // κ΄‘κ³  μ˜μ—­μ„ 보이도둝 μ„€μ •
adArea.setAttribute('data-ad-unit', 'κ΄‘κ³ μ½”λ“œ'); // κ΄‘κ³  λ‹¨μœ„ μ„€μ •
adArea.setAttribute('data-ad-width', '160'); // κ΄‘κ³  λ„ˆλΉ„ μ„€μ •
adArea.setAttribute('data-ad-height', '600'); // κ΄‘κ³  높이 μ„€μ •
floatLeftElement.appendChild(adArea);

μ‚¬μ΄λ“œλ°”μ˜ 동적 이동과 κ³ μ • μ„€μ •μœΌλ‘œ λΈ”λ‘œκ·Έ 수읡 ν–₯상 λ°©μ•ˆ

μ‚¬μ΄λ“œλ°”μ™€ λΈ”λ‘œκ·Έ μˆ˜μ΅λΈ”λ‘œκ·Έμ—μ„œ μ‚¬μ΄λ“œλ°”λŠ” 정보와 κ΄‘κ³ λ₯Ό μ‚¬μš©μžμ—κ²Œ λ…ΈμΆœν•˜λ©° [ λΈ”λ‘œκ·Έ 수읡 ]에 영ν–₯을 μ£ΌλŠ” μš”μ†Œμž…λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 일뢀 μŠ€ν‚¨μ€ λͺ¨λ°”μΌμ—μ„œλŠ” μ‚¬μ΄λ“œλ°”κ°€ 선택적 μš”μ†Œλ‘œ μž‘

everydayhub.tistory.com

ꡬ글 μ• λ“œμ„ΌμŠ€ κ΄‘κ³  μ½”λ“œ μ„€μ •

var adArea = document.createElement('ins');
adArea.className = 'adsbygoogle'; adArea.style.display = 'block'; // κ΄‘κ³  μ˜μ—­μ„ 보이도둝 μ„€μ •
adArea.setAttribute('data-ad-client', 'ca-pub-κ΄‘κ³  ν΄λΌμ΄μ–ΈνŠΈ μ½”λ“œ'); // κ΄‘κ³  ν΄λΌμ΄μ–ΈνŠΈ μ„€μ •
adArea.setAttribute('data-ad-slot', 'κ΄‘κ³  슬둯 μ½”λ“œ'); // κ΄‘κ³  슬둯 μ„€μ •
adArea.setAttribute('data-ad-format', 'auto'); // κ΄‘κ³  포맷 μ„€μ •
adArea.setAttribute('data-full-width-responsive', 'true'); // κ΄‘κ³ μ˜ κ°€λ‘œν­ λ°˜μ‘ν˜• μ„€μ •
floatRightElement.appendChild(adArea);

슀크립트 μ½”λ“œ

<style> #floatLeft { position: absolute; width: 160px; right: 50%; top: 60px; margin-right: 470px; z-index: 9999; transform: translateX(-50%); } #floatRight { position: absolute; width: 160px; left: 50%; margin-left: 650px; top: 60px; z-index: 9999; transform: translateX(-50%); } @media (max-width: 1300px) { #floatLeft, #floatRight { display: none; } } </style> <div class="height"> <div id="floatLeft"> <script> if (window.innerWidth > 768) { var floatLeftElement = document.querySelector('#floatLeft'); if (floatLeftElement) { var adArea = document.createElement('ins'); adArea.className = 'kakao_ad_area'; adArea.style.display = 'block'; adArea.setAttribute('data-ad-unit', 'κ΄‘κ³ μ½”λ“œ'); adArea.setAttribute('data-ad-width', '160'); adArea.setAttribute('data-ad-height', '600'); floatLeftElement.appendChild(adArea); var script = document.createElement('script'); script.src = "//t1.daumcdn.net/kas/static/ba.min.js"; script.async = true; document.body.appendChild(script); } } </script> </div> </div> <div class="height"> <div id="floatRight"> <script> if (window.innerWidth > 768) { var floatRightElement = document.querySelector('#floatRight'); if (floatRightElement) { var adArea = document.createElement('ins'); adArea.className = 'adsbygoogle'; adArea.style.display = 'block'; adArea.setAttribute('data-ad-client', 'ca-pub-κ΄‘κ³ μ½”λ“œ'); adArea.setAttribute('data-ad-slot', 'κ΄‘κ³ μ½”λ“œ'); adArea.setAttribute('data-ad-format', 'auto'); adArea.setAttribute('data-full-width-responsive', 'true'); floatRightElement.appendChild(adArea); var script = document.createElement('script'); script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-μ½”λ“œ"; script.async = true; script.crossOrigin = "anonymous"; document.body.appendChild(script); (adsbygoogle = window.adsbygoogle || []).push({}); } } </script> </div> </div> <script> $(document).ready(function() { if (window.innerWidth > 1300) { var floatPositionLeft = parseInt($("#floatLeft").css('top')); var floatPositionRight = parseInt($("#floatRight").css('top')); $(window).scroll(function() { var scrollTop = $(window).scrollTop(); var newPositionLeft = scrollTop + floatPositionLeft + "px"; var newPositionRight = scrollTop + floatPositionRight + "px"; $("#floatLeft").stop().animate({ "top": newPositionLeft }, 500); $("#floatRight").stop().animate({ "top": newPositionRight }, 500); }).scroll(); } else { $("#floatLeft").hide(); $("#floatRight").hide(); } }); </script>

ν‹°μŠ€ν† λ¦¬ HTML λ² λ„ˆμΆœλ ₯ν™œμš© 방법

ν‹°μŠ€ν† λ¦¬ HTML λ°°λ„ˆμΆœλ ₯에 μœ„μ— μ½”λ“œλ₯Ό μˆ˜μ •ν•΄μ„œ λ„£μ–΄μ£Όμ‹œλ©΄ λ©λ‹ˆλ‹€.

μ‚¬μ΄λ“œ κ³ μ • ꡬ글 κ΄‘κ³  μ½”λ“œ λ°°λ„ˆ μž…λ ₯ν•˜κΈ° μœ„ν•΄ ν‹°μŠ€ν† λ¦¬ html λ² λ„ˆμΆœλ ₯ ν™œμš©
ν‹°μŠ€ν† λ¦¬ ν”ŒλŸ¬κ·ΈμΈ HTML λ² λ„ˆμΆœλ ₯ ν™œμš©ν•˜κΈ°

ꡬ글 μˆ˜λ™ κ΄‘κ³  μ½”λ“œ μ„€μ • 방법

κ΅¬κΈ€μ• λ“œμ„ΌμŠ€μ— μ ‘μ†ν•΄μ„œ κ΄‘κ³ λž€μ— λ“€μ–΄κ°€μ‹œλ©΄ κ΄‘κ³ λ‹¨μœ„ κΈ°μ€€ 메뉴가 μžˆμŠ΅λ‹ˆλ‹€.

μ‚¬μ΄λ“œ κ³ μ • ꡬ글 κ΄‘κ³  μ½”λ“œ λ°°λ„ˆ -1
ꡬ글 μ• λ“œμ„ΌμŠ€ κ΄‘κ³  μ½”λ“œ 생성 방법

λ””μŠ€ν”Œλ ˆμ΄ κ΄‘κ³  μ„€μ •

μ‚¬μ΄λ“œ κ³ μ • ꡬ글 κ΄‘κ³  λ””μŠ€ν”Œλ ˆμ΄ κ΄‘κ³  μ„€μ •
ꡬ글 μ• λ“œμ„ΌμŠ€μ—μ„œ λ””μŠ€ν”Œλ ˆμ΄ μ‹ κ·œκ΄‘κ³  λ‹¨μœ„ νŽΈμ§‘κΈ°
μ‚¬μ΄λ“œ κ³ μ • ꡬ글 κ΄‘κ³  μ½”λ“œ ν˜•μ„±
ꡬ글 μ• λ“œμ„ΌμŠ€ κ΄‘κ³ μ½”λ“œν˜•μ„±

ꡬ글 μ• λ“œμ„ΌμŠ€ μ½”λ“œ 생성기 ν™œμš©

μƒˆ λ””μŠ€ν”Œλ ˆμ΄ κ΄‘κ³ μ—μ„œ μˆ˜μ§ν˜• κ΄‘κ³ λ‹¨μœ„ 이름 μ„€μ • κ΄‘κ³ ν¬κΈ°λŠ” λ°˜μ‘ν˜• λ§Œλ“€κΈ° λ²„νŠΌμ„ λˆ„λ¦…λ‹ˆλ‹€.

ꡬ글 μ• λ“œμ„ΌμŠ€ μ½”λ“œ 생성기 ν™œμš©
ꡬ글 μ• λ“œμ„ΌμŠ€ μ½”λ“œ 생성기 ν™œμš©ν•΄μ„œ μ½”λ“œ 생성

단 ν‹°μŠ€ν† λ¦¬ λΈ”λ‘œκ·Έμ—μ„œ λ ˆμΌκ΄‘κ³ λŠ” μ •μ±… μœ„λ°˜μ΄λΌ μ‚¬μš©ν•˜μ‹œλ©΄ μ•ˆλ©λ‹ˆλ‹€.