묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
흐르는 뉴스...에대해.좀아시느분^^ 제발..플리즈.답변좀요
2005.03.31 13:07
죄송한데...한줄짜리..
흐르는.뉴스...소스좀....부탁드려요..어제하루종일..찾앗는데..있긴있는데..
다...머라고표현해야하나...각...뉴스...페이지마다...소스가.따로있는듯한데...
잘모르겟어요...저한테있는소스..린크걸어볼게요..
<?
$fp=@fopen("http://www.imbc.com/cpi/newsscrollweb.js","a");
while(!feof($fp)) {
$fl = fgets($fp,4096);
if(ereg("<p style=margin-top:8px><marquee ID=NewsFlash direction=up scrollamount=5 scrolldelay=160 height=45 width=343>",$fl)) {
$fl = fgets($fp, 4096); //1
$fl = $fl.fgets($fp, 4096); //2
$fl = $fl.fgets($fp, 4096); //3
$fl = $fl.fgets($fp, 4096); //4
$fl = $fl.fgets($fp, 4096); //5
$fl = $fl.fgets($fp, 4096); //6
$fl = $fl.fgets($fp, 4096); //7
$fl = $fl.fgets($fp, 4096); //8
$fl = $fl.fgets($fp, 4096); //9
$fl = $fl.fgets($fp, 4096); //10
$fl = $fl.fgets($fp, 4096); //11
$fl = $fl.fgets($fp, 4096); //12
$fl = ereg_replace("onmouseover","target=_blank onmouseover", $fl);
$where = strpos($fl,"</marquee>");
if ($where < 1) { $where = strlen($fl);}
$fl = substr($fl, 0, $where);
break;
}
}
?>
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta http-equiv="Pragma" content="no-cache">
<style type="text/css">
<!--
.8 {font-size:8pt;font-family:굴림,Helvetica}
.9 {font-size:9pt;font-family:굴림,Helvetica}
.9h {font-size: 9pt;font-family:굴림,Helvetica;line-height:16px}
.9h2 {font-size: 9pt;font-family:굴림,Helvetica;line-height:15px}
.10 {font-size:10pt;font-family:굴림,arial,Helvetica;line-height:120%}
.11 {font-size:11pt;font-family:굴림,Helvetica}
.14 {font-size:15pt;font-family:굴림,Helvetica;text-decoration:underline}
.box_focus {color:black; background-color: #E4E4E4; font-size:9pt;font-family:굴림,Helvetica }
.box_focus2 {color:black; background-color: #FFFFFF; font-size:9pt;font-family:굴림,Helvetica; line-height:15px }
.box_focus3 {color:black; background-color: #FDE5B7; font-size:9pt;font-family:굴림,Helvetica; line-height:15px }
.time2 { font-family:Arial,Verdana,Helvetica; font-size : 8pt; line-HEIGHT:105%; color:#808080}
.copyright {font-size:10pt; font-family:seoul,돋움, arial}
a:link {text-decoration:none;color:#000000;}
a:visited {text-decoration:none;color:#000000;}
a:active {text-decoration:underline ;color:#000000;}
a:hover {text-decoration:underline ;color:#000000;}
-->
</style>
</head>
<body>
<table border=0 cellpadding=0 cellspacing=1 bgcolor=#CCCCCC>
<tr>
<td bgcolor=#FFFFFF>
<SCRIPT Language=JAVASCRIPT>
<!--
function MfStop(){
NewsFlash.stop();
}
function MfStart(){
NewsFlash.start();
}
-->
</SCRIPT>
<p style=margin-top:8px><marquee ID=NewsFlash direction=up scrollamount=5 scrolldelay=200 height=20 width=280>
<?= $fl ?>
</marquee>
</td>
</tr>
</table>
</body>
</html>
이상이구요..맨윗줄에..거기다가.사이트..써주고..어케하는거같은데..^^
잘모르겟네요...혹시.아는분답변부탁해요
흐르는.뉴스...소스좀....부탁드려요..어제하루종일..찾앗는데..있긴있는데..
다...머라고표현해야하나...각...뉴스...페이지마다...소스가.따로있는듯한데...
잘모르겟어요...저한테있는소스..린크걸어볼게요..
<?
$fp=@fopen("http://www.imbc.com/cpi/newsscrollweb.js","a");
while(!feof($fp)) {
$fl = fgets($fp,4096);
if(ereg("<p style=margin-top:8px><marquee ID=NewsFlash direction=up scrollamount=5 scrolldelay=160 height=45 width=343>",$fl)) {
$fl = fgets($fp, 4096); //1
$fl = $fl.fgets($fp, 4096); //2
$fl = $fl.fgets($fp, 4096); //3
$fl = $fl.fgets($fp, 4096); //4
$fl = $fl.fgets($fp, 4096); //5
$fl = $fl.fgets($fp, 4096); //6
$fl = $fl.fgets($fp, 4096); //7
$fl = $fl.fgets($fp, 4096); //8
$fl = $fl.fgets($fp, 4096); //9
$fl = $fl.fgets($fp, 4096); //10
$fl = $fl.fgets($fp, 4096); //11
$fl = $fl.fgets($fp, 4096); //12
$fl = ereg_replace("onmouseover","target=_blank onmouseover", $fl);
$where = strpos($fl,"</marquee>");
if ($where < 1) { $where = strlen($fl);}
$fl = substr($fl, 0, $where);
break;
}
}
?>
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<meta http-equiv="Pragma" content="no-cache">
<style type="text/css">
<!--
.8 {font-size:8pt;font-family:굴림,Helvetica}
.9 {font-size:9pt;font-family:굴림,Helvetica}
.9h {font-size: 9pt;font-family:굴림,Helvetica;line-height:16px}
.9h2 {font-size: 9pt;font-family:굴림,Helvetica;line-height:15px}
.10 {font-size:10pt;font-family:굴림,arial,Helvetica;line-height:120%}
.11 {font-size:11pt;font-family:굴림,Helvetica}
.14 {font-size:15pt;font-family:굴림,Helvetica;text-decoration:underline}
.box_focus {color:black; background-color: #E4E4E4; font-size:9pt;font-family:굴림,Helvetica }
.box_focus2 {color:black; background-color: #FFFFFF; font-size:9pt;font-family:굴림,Helvetica; line-height:15px }
.box_focus3 {color:black; background-color: #FDE5B7; font-size:9pt;font-family:굴림,Helvetica; line-height:15px }
.time2 { font-family:Arial,Verdana,Helvetica; font-size : 8pt; line-HEIGHT:105%; color:#808080}
.copyright {font-size:10pt; font-family:seoul,돋움, arial}
a:link {text-decoration:none;color:#000000;}
a:visited {text-decoration:none;color:#000000;}
a:active {text-decoration:underline ;color:#000000;}
a:hover {text-decoration:underline ;color:#000000;}
-->
</style>
</head>
<body>
<table border=0 cellpadding=0 cellspacing=1 bgcolor=#CCCCCC>
<tr>
<td bgcolor=#FFFFFF>
<SCRIPT Language=JAVASCRIPT>
<!--
function MfStop(){
NewsFlash.stop();
}
function MfStart(){
NewsFlash.start();
}
-->
</SCRIPT>
<p style=margin-top:8px><marquee ID=NewsFlash direction=up scrollamount=5 scrolldelay=200 height=20 width=280>
<?= $fl ?>
</marquee>
</td>
</tr>
</table>
</body>
</html>
이상이구요..맨윗줄에..거기다가.사이트..써주고..어케하는거같은데..^^
잘모르겟네요...혹시.아는분답변부탁해요