대체 뭐가 문제이지?

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
대체 뭐가 문제이지?

QA

대체 뭐가 문제이지?

본문

제가 친구들이랑 비밀 채팅 사이트를 제작중인데

주기적으로 새로고침을 안하고도 div를 새로고침 할려고 하는데

 

뭐가 문제일까요?
 

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8">

    <meta name="viewport" content="width=device-width, internal-scale=1.0">

    <title>채팅</title>

    <link href="main.css" rel="stylesheet" type="text/css" media="all"/>

    <?php

include './function.php';

?>

 

</head>

<body>

 

            <header id="header">

                <a class="logo" href="index.html">OneChat</a>

 

                </header>

 

<div id="wrapper1">

    <div id="first" class="container">

        <div class="title">

            <h2>채팅</h2>

        </div>

        <div id="4" class="content">

            <h3><p>

                

<?php echo read_file('./db'); ?>

            </p></h3>

        </div>

    </div>

</div>

<form method="post" action="system.php" id="chat_form" name="chat_form" autocomplete="off">

    <footer id="footer">

        <center><table border="0" style="border:none">

            <tr>

            <td ><input type="text" tabindex="1" id="email" placeholder="입력" class="inputtext radius1" name="사용자" value=""></td>

            

            <td ><input type="submit" tabindex="2" value="전송" class="fbbutton"/></td>

            </tr>

            

            

            

    </table></center>

    

    </footer>

    </form>

 

</body>

<script>

        function autoRefresh_4_div()

        {

        var currentLocation = window.location;

        $("#4").fadeOut('slow').load(currentLocation + ' #4').fadeIn("slow");

        }

        setInterval('autoRefresh_4_div()', 3000); //3초 후 새로고침

        </script>

</html>

 

이 질문에 댓글 쓰기 :

답변 3

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT