다음부동산매물스크립트1

<link rel="stylesheet" href="http://item.finance.daum.net/css/estate/estate0304.css" type="text/css">

<script language="javascript">
var singletext=new Array();
var random_val=new Array();

var swidth = 660 // 개별 아이템의 넓이
var sheight = 22 // 개별 아이템의 높이
var show_items = 1 // 아이템 개수 ?

var stop_time = 1000 // 아이템 동작 텀 (1초 = 1000)
var sspeed = 20 // 아이템이 움직이는 시간
var sstep = 1 // 아이템이 픽셀 이동 간격 ?

// 내부 변수
var new_item = show_items
var sstep_tmp = sstep
var only_one = 1;

function random_start()
{
var len = singletext.length;
if( only_one == 1){
for (i=0; i<len; ){
rand = parseInt(Math.random() * len );
len2 = random_val.length;

for (j=0; j<len2 ; j++){
if(random_val[j] == rand)
break;
}
if( j == len2){
random_val[i] = rand;
i++;
}
}
only_one=2;
}

}
// 동작 시작 함수
function move_left_start()
{
for (i=0; i<=show_items; i++)
setTimeout("move_left("+i+", "+sheight+")", stop_time) //수정
}

// 아이템 개별 이동 함수
function move_left(id, cnt)
{
obj = eval('slider_'+id)
obj.style.pixelTop-=sstep //수정
cnt -= sstep
if (cnt > 0)
{
setTimeout("move_left("+id+", "+cnt+")", sspeed)
}
else if (obj.style.pixelTop < -sstep) //수정
{
obj.style.pixelTop = show_items * sheight //수정
new_item++
if (new_item == singletext.length) new_item=0
obj.innerHTML=singletext[random_val[new_item]]
move_left_start()
}
}
</script>

<script language="javascript">
singletext[0] = "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr height='22'><td width='52' align='center'><img src='http://ndaum.uniasset.com/images/direct/mark01.gif' width='33' height='13' hspace ='3'><img src='http://ndaum.uniasset.com/images/direct/ico_photo.gif' width='12' height='11'></td><td width='52' align='center' class='base'>07-27</td><td width='80' align='center' class='base'>연립/빌라</td><td width='45' align='center' class='base'>매매</td><td width='170' align='center'><a href='../sell/sell_view.asp?id=67890&addr1=%B0%E6%BB%F3%BA%CF%B5%B5&addr2=%C4%A5%B0%EE%B1%BA&addr3=&addr5=%BF%D6%B0%FC%C0%BE&list=pre' target='_parent' class='stxt'><font color='#1F81C2'>경상북도 칠곡군 왜관읍</font></a></td><td width='50' align='center' class='base'>3/5</td><td width='50' align='center' class='base'>43</td><td width='70' align='right' class='base'>14,500</td><td width='5'></td></tr></table>";
</script>

<script language="javascript">
singletext[1] = "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr height='22'><td width='52' align='center'></td><td width='52' align='center' class='base'>07-26</td><td width='80' align='center' class='base'>상가점포</td><td width='45' align='center' class='base'>매매</td><td width='170' align='center'><a href='../sell/sell_view.asp?id=67871&addr1=%B0%E6%B1%E2%B5%B5&addr2=%BC%BA%B3%B2%BD%C3&addr3=%BA%D0%B4%E7%B1%B8&addr5=%BE%DF%C5%BE%B5%BF&list=pre' target='_parent' class='stxt'><font color='#1F81C2'>경기도 성남시 분당구 야탑동</font></a></td><td width='50' align='center' class='base'>123/3</td><td width='50' align='center' class='base'>196</td><td width='70' align='right' class='base'>73,000</td><td width='5'></td></tr></table>";
</script>

<script language="javascript">
singletext[2] = "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr height='22'><td width='52' align='center'><img src='http://ndaum.uniasset.com/images/direct/ico_photo.gif' width='12' height='11'></td><td width='52' align='center' class='base'>07-26</td><td width='80' align='center' class='base'>토지/임야</td><td width='45' align='center' class='base'>매매</td><td width='170' align='center'><a href='../sell/sell_view.asp?id=67831&addr1=%B0%AD%BF%F8%B5%B5&addr2=%C8%AB%C3%B5%B1%BA&addr3=&addr5=%BC%AD%BC%AE%B8%E9&list=pre' target='_parent' class='stxt'><font color='#1F81C2'>강원도 홍천군 서석면</font></a></td><td width='50' align='center' class='base'>123/3</td><td width='50' align='center' class='base'>750</td><td width='70' align='right' class='base'>23,000</td><td width='5'></td></tr></table>";
</script>

<script>
random_start();
move_left_start();
if (document.all){
document.writeln('<div align=center onmouseover="sstep=0;" onmouseout="sstep='+sstep_tmp+';" style="position:absolute;width:'+(swidth)+';height:'+(sheight*show_items)+';clip:rect(0 '+(swidth)+' '+(sheight*show_items)+' 0); ">')
var tleft = 0
for (i=0; i <= show_items; i++) {
if (i > 0) {
tleft += eval('slider_'+(i-1)+'.style.pixelHeight')
}
document.writeln('<div align=center id="slider_'+i+'" style="position:absolute;width:'+swidth+';height=:'+sheight+';left:'+0+';top:'+(i*sheight+1)+';">')
document.write(singletext[random_val[i]])
document.writeln('</div>')
}
document.writeln('</div>')
}
</script>

<p> </p><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 1,766
19년 전 조회 1,611
19년 전 조회 1,553
19년 전 조회 1,830
19년 전 조회 1,843
19년 전 조회 1,843
19년 전 조회 1,752
19년 전 조회 2,548
19년 전 조회 2,354
19년 전 조회 3,517
19년 전 조회 2,643
19년 전 조회 2,613
19년 전 조회 3,451
19년 전 조회 4,671
19년 전 조회 3,021
19년 전 조회 2,845
19년 전 조회 3,389
19년 전 조회 6,338
19년 전 조회 2,239
19년 전 조회 2,038
19년 전 조회 2,004
19년 전 조회 2,045
19년 전 조회 3,237
19년 전 조회 2,309
19년 전 조회 1,998
19년 전 조회 1,679
19년 전 조회 2,142
19년 전 조회 3,422
19년 전 조회 3,269
19년 전 조회 1,965
19년 전 조회 1,539
19년 전 조회 3,221
19년 전 조회 2,097
19년 전 조회 1,661
19년 전 조회 2,881
19년 전 조회 2,017
19년 전 조회 1,907
19년 전 조회 1,864
19년 전 조회 1,820
19년 전 조회 2,260
19년 전 조회 2,672
19년 전 조회 1,828
19년 전 조회 1,566
19년 전 조회 1,578
19년 전 조회 1,522
19년 전 조회 3,265
19년 전 조회 2,962
19년 전 조회 1,713
19년 전 조회 3,449
19년 전 조회 1,875
19년 전 조회 1,525
19년 전 조회 1,996
19년 전 조회 2,131
19년 전 조회 1,690
19년 전 조회 2,375
19년 전 조회 2,023
19년 전 조회 1,642
19년 전 조회 1,820
19년 전 조회 2,078
19년 전 조회 1,848
19년 전 조회 1,624
19년 전 조회 1,689
19년 전 조회 3,176
19년 전 조회 2,039
19년 전 조회 1,897
19년 전 조회 4,392
19년 전 조회 5,024
19년 전 조회 3,195
19년 전 조회 2,925
19년 전 조회 3,530
19년 전 조회 2,076
19년 전 조회 2,434
19년 전 조회 2,720
19년 전 조회 2,800
19년 전 조회 2,400
19년 전 조회 1,661
19년 전 조회 3,419
19년 전 조회 2,015
19년 전 조회 2,426
19년 전 조회 2,479
19년 전 조회 2,922
19년 전 조회 5,248
19년 전 조회 2,514
19년 전 조회 3,360
19년 전 조회 4,305
19년 전 조회 2,538
19년 전 조회 2,494
19년 전 조회 4,087
19년 전 조회 2,780
19년 전 조회 3,021
19년 전 조회 2,242
19년 전 조회 2,259
19년 전 조회 2,039
19년 전 조회 3,329
19년 전 조회 2,154
19년 전 조회 2,826
19년 전 조회 1,789
19년 전 조회 5,348
19년 전 조회 3,594
19년 전 조회 4,343