Tags: url

Sort by: Date / Title /

  1. 1 year ago by spirit
    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.
    1. // This little trick allows a Flash movie (swf) to find out the URL of the page in which it's embedded.
    2.  
    3. import flash.external.ExternalInterface;
    4.  
    5. var pageURL:String =
    6.         ExternalInterface.call('window.location.href.toString');
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1411"></script>
  2. 1 year ago by dator
    1. function rewrite($label)
    2. {
    3.         /* Expression régulière permettant le changement des caractères accentués en
    4.         * caractères non accentués.
    5.         */
    6.         $search = array ('@[éèêëÊË]@i','@[àâäÂÄ]@i','@[îïÎÏ]@i','@[ûùüÛÜ]@i','@[ôöÔÖ]@i',
    7.         '@[ç]@i','@[^a-zA-Z0-9]@');
    8.         $replace = array ('e','a','i','u','o','c',' ');
    9.         $labelpreg_replace($search, $replace, $label);
    10.         $label = strtolower($label); // mais toutes les lettres de la chaîne en minuscule
    11.         $label = str_replace(" ",'-',$label); // remplace les espaces en tirets
    12.         $label = preg_replace('#\-+#','-',$label); // enlève les autres caractères inutiles
    13.         $label = preg_replace('#([-]+)#','-',$label);
    14.         trim($label,'-'); // remplace les espaces restants par des tirets
    15.  
    16.         return $label
    17. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1223"></script>
  3. 1 year ago by sx
    1. <?php
    2.     $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text);
    3. ?>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1073"></script>
  4. sponsorised links

First / Previous / Next / Last / Page 1 of 1 (3 posteets)