웹프로그래밍

Global It Leader!!


그누보드


 
 

게시판 목록에서 본문 보여주기

페이지 정보

작성자 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 16,755회 작성일 12-03-15 16:06

본문

게시판 목록에서 본문 내용 보여주기

########### 게시판 목록 제목에 마우스 오버되면 호출되는 스크립트 #############

<script type="text/javascript">
<!--
	//내용 미리보기 ajax 사용
	function onMouse_View(wr_id, id, v) {

		var action = "<?=$board_skin_path?>/get_view.php?wr_id="+wr_id+"&bo_table=<?=$bo_table?>";

			var request = null;
			try {
				request = new XMLHttpRequest();
			} catch (trymicrosoft) {
				try {
					request = new ActiveXObject("Msxml12.XMLHTTP");
				} catch (othermicrosoft) {
					try {
						request = new ActiveXObject("Microsoft.XMLHTTP");
					} catch (failed) {
						request = null;
					}
				}
			}

			var req = request;
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					if (req.status == 200) {
						var desc = decodeURIComponent(req.responseText);

					if(id) {
						descID = document.getElementById(id);

							if(v=='over') 
								descID.innerHTML = "<div class='desc-view-div'><span class='vclose' onclick=\"onMouse_View('','"+id+"');\">X</span>"+desc+"</div>";
							 else 
								descID.innerHTML = "";

						}

					}
				}
			}
			req.open("GET", action, true);
			//req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
			req.send(null);

	}

//-->
</script>

##########get_view.php 파일 ##########################################################







<?
include_once("./_common.php");

$list = sql_fetch(" select wr_option, wr_content from `$write_table` where `wr_id` = '$_GET[wr_id]' ");
if ($list) {

			$html = 0;
		if (strstr($list['wr_option'], "html1"))
			$html = 1;
		else if (strstr($list['wr_option'], "html2"))
			$html = 2;

        $list['content'] = conv_content($list['wr_content'], $html);

	echo $list['content'];

}
?>






댓글목록

등록된 댓글이 없습니다.

전체 59
게시물 검색
그누보드 목록
번호 제목 글쓴이 조회 날짜
59 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11053 04-28
58 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7727 04-28
57 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15908 04-28
56 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9207 05-04
55 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7290 09-29
54 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11829 05-11
열람중 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16756 03-15
52 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3945 11-15
51 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3914 11-29
50 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3963 01-31
49 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3759 02-21
48 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4070 02-25
47 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3628 03-13
46 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4086 03-20
45 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3988 03-26
44 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4193 03-27
43 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4052 06-24
42 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3711 08-20
41 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4291 01-30
40 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6888 02-14