This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded. Javascript must be enabled for this to work. if the window.location.href.toString method doesn't return a value then ExternalInterface.call will return null. Same thing happens when Javascript is disabled.
// This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
import flash.external.ExternalInterface;
var pageURL:String =
ExternalInterface.call('window.location.href.toString');
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1411"></script>
function rewrite($label)
{
/* Expression régulière permettant le changement des caractères accentués en
* caractères non accentués.
*/
$search =
array ('@[éèêëÊË]@i',
'@[àâäÂÄ]@i',
'@[îïÎÏ]@i',
'@[ûùüÛÜ]@i',
'@[ôöÔÖ]@i',
'@[ç]@i','@[^a-zA-Z0-9]@');
$replace =
array ('e',
'a',
'i',
'u',
'o',
'c',
' ');
$label =
strtolower($label);
// mais toutes les lettres de la chaîne en minuscule
$label =
str_replace(" ",
'-',
$label);
// remplace les espaces en tirets
$label =
preg_replace('#\-+#',
'-',
$label);
// enlève les autres caractères inutiles
trim($label,
'-');
// remplace les espaces restants par des tirets
return $label
}
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1223"></script>
<?php
$text =
ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
"<a href=\"\\0\">\\0</a>",
$text);
?>
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1073"></script>