1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery RSS Reader</title>
<link rel="stylesheet" type="text/css" href="li-scroller.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script type="text/javascript" src="js/jquery.li-scroller.1.0.js"></script>
<script type="text/javascript">
$(function(){
$("ul#ticker01").liScroll();
});
</script>
</head>
<body>
<?php
$feed = file_get_contents('http://www.neoscreen.fr/meteo/rss/france.xml');
$xml1 = simplexml_load_string($feed);
$actu[1] = $xml1->xpath("//channel/item[1]/title");
$actu[2] = $xml1->xpath("//channel/item[2]/title");
$actu[3] = $xml1->xpath("//channel/item[3]/title");
$actu[4] = $xml1->xpath("//channel/item[4]/title");
$actu[5] = $xml1->xpath("//channel/item[5]/title");
$actu[6] = $xml1->xpath("//channel/item[6]/title");
$actu[7] = $xml1->xpath("//channel/item[7]/title");
$actu[8] = $xml1->xpath("//channel/item[8]/title");
$actu[9] = $xml1->xpath("//channel/item[9]/title");
$actu[10] = $xml1->xpath("//channel/item[10]/title");
$actu[11] = $xml1->xpath("//channel/item[11]/title");
$actu[12] = $xml1->xpath("//channel/item[12]/title");
$actu[13] = $xml1->xpath("//channel/item[13]/title");
$actu[14] = $xml1->xpath("//channel/item[14]/title");
$actu[15] = $xml1->xpath("//channel/item[15]/title");
$actu[16] = $xml1->xpath("//channel/item[16]/title");
$actu[17] = $xml1->xpath("//channel/item[17]/title");
$actu[18] = $xml1->xpath("//channel/item[18]/title");
$actu[19] = $xml1->xpath("//channel/item[19]/title");
$actu[20] = $xml1->xpath("//channel/item[20]/title");
?>
<div class="tickercontainer0">
<div class="logo"><img src="ca_toulouse.png"/></div>
<div class="tickercontainer">
<div class="mask">
<ul id="ticker01">
<?php
for ($i = 1; $i < 21; $i++)
{
echo '<li><a href="#">'.html_entity_decode($actu[$i][0]).'<font color="red" size="6"> ||</font></li>';
}
?>
<!-- eccetera -->
</ul>
</div>
</div>
</div>
</body>
</html> |
Partager