| ||||||||||||||||
“; document.getElementById („div3“) .innerHTML = ac + streptokok + „ |
“; als ($q == „ac“) { $xml= („http://twitter.com/statuses/user_timeline/15224867.rss“); $content.= „ | “; } elseif ($q == „me“) { $xml= („http://twitter.com/statuses/user_timeline/15224867.rss“); $content.= „ | “; } elseif ($q == „cnn“) { $xml= („http://twitter.com/statuses/user_timeline/759251.rss“); $content.= „ | “; } elseif ($q == „yahoo“) { $xml= („http://twitter.com/statuses/user_timeline/19380829.rss“); $content.= „ | “; } elseif ($q == „nelp“) { $xml= („http://twitter.com/statuses/user_timeline/78461452.rss“); $content.= „ | “; } elseif ($q == „obama“) { $xml= („http://twitter.com/statuses/user_timeline/813286.rss“); $content.= „ | “; } elseif ($q == „Mej.“) { $xml= („http://twitter.com/statuses/user_timeline/24741685.rss“); $content.= „ | “;
}
$curl_handle=curl_init ();
curl_setopt ($curl_handle, CURLOPT_URL, $xml);
curl_setopt ($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt ($curl_handle, CURLOPT_RETURNTRANSFER, 1);
$buffer = curl_exec ($curl_handle);
$xmlText = nieuwe SimpleXmlElement ($buffer, LIBXML_NOCDATA);
curl_close ($curl_handle);
$cnt = tel ($xmlText->channel->item);
voor ($i=0; $i<$cnt; $i++) {
$url = $xmlText->channel->item [$i] - >link;
$title = $xmlText->channel->item [$i] - >title;
$date = $xmlText->channel->item [$i] - >pubDate;
$this_date = $date;
$this_ts = strtotime ($this_date);
$this_date = strftime („%A, %B %d, %Y %I: %M %p“, $this_ts);
$date = ucfirst ($this_date);
$content. = „Atttt
Reporter Twittsvan de Kuiper van AndersonBarack Twittsvan ObamaInformation bij Footer |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
privé functie onRollOver (ev: Gebeurtenis): leegte { myMovie.filters = [nieuwe ColorMatrixFilter (this.getSaturationMatrix ())]; } privé functie onRollOut (ev: Gebeurtenis): leegte { myMovie.filters = nieuwe Serie (); } privé functie getSaturationMatrix (): Serie { var matrijs: Serie = nieuwe Serie (); matrijs = matrix.concat ([0, 0, 0, 0, 0]); //red serie matrijs = matrix.concat ([0, 0, 0, 0, 0]); //green serie matrijs = matrix.concat ([0, 0, 1, 0, 0]); //blue serie matrijs = matrix.concat ([0, 0, 0, 1, 0]); terugkeer matrijs; } |