Recent posteets

Sort by: Date / Title /

  1. 4 weeks ago by inbox
    Code pour vos pages en Php
    1. function Kill($n,$floor=true){
    2.         if($floor){$n = floor($n);}
    3.         return number_format($n,0,",",".");     
    4. }
    5.  
    6. EXEMPLE:
    7.     <tr>
    8.         <td width=394 height=3>
    9.             <p><font color=#FFFFFF>".Kill(123456789)."</font></p>
    10.         </td>
    11.     </tr>
    12.  
    13. FIN:
    14. 123.456.789
  2. 4 weeks ago by inbox
    Code pour vos pages en Php
    1. function bbcode($text) {
    2.     $text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'<img src=\\1' . str_replace(' ', '%20', '\\3') . '>'",
    3. $text);
    4.     $text = preg_replace("#\[url\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/url\]#sie", "'<a href=\"\\1' . str_replace(' ', '%20', '\\3') . '\" target=blank>\\1\\3</a>'", $text);
    5.     $text = preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/", "<a href=$1 target=_blank>$2</a>", $text);
    6.     $text = preg_replace("/\[b\](.+?)\[\/b\]/", "<b>$1</b>", $text);
    7.     $text = preg_replace("/\[i\](.+?)\[\/i\]/", "<i>$1</i>", $text);
    8.     $text = preg_replace("/\[u\](.+?)\[\/u\]/", "<u>$1</u>", $text);
    9.     $text = preg_replace("/\[code\](.+?)\[\/code\]/", "<table width=100%><tr><th align=left>Code :</th></tr><tr><td align=left><code>$1</code></td></tr></table>", $text);
    10.     $text = preg_replace("/\[quote=(.+?)\]/", "<center><table width=80%><tr><th align=left>Message de $1 :</th></tr><tr><td align=left class=milieu_messages>", $text);
    11.     $text = preg_replace("/\[\/quote\]/", "</td></tr></table></center>", $text);
    12.     $text = preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/", "<font color=$1>$2</font>", $text);
    13.     return $text;
    14.     }
    15.  
    16. EXEMPLE:
    17.     <tr>
    18.         <td width=394 height=3>
    19.             <p><font color=#FFFFFF>".bbcode(nl2br($mess))."</font></p>
    20.         </td>
    21.     </tr>
  3. 1 month ago by spirit
    1. En HTML:
    2. <img src="..." align="absmiddle" /> Texte
    3.  
    4. En CSS :
    5. <img src="..." style="vertical-align:middle" /> Texte
  4. sponsorised links
  5. 1 month ago by sm0k1nggnu
    1. <?php
    2.         $useragent = $_SERVER['HTTP_USER_AGENT'];
    3.  
    4.    
    5. if( eregi("(msie) ([6]{1})",$useragent) )
    6. {print "IE 8.0 -> do something";}
    7.  
    8. else
    9. { } 
    10. ?>
  6. 1 month ago by sx
    1. XAML:
    2.   <Grid>
    3.       <textBox Name="myTextBox" Text="{Binding StringFormat='HH:MM dd/M/yyy'}" />
    4.   </Grid>
    5.  
    6. CS:
    7.   var dt = DateTime.Now;
    8.   myTextBox.DataContext = dt;
  7. 1 month ago by spirit
    1. Sub fusion()
    2.     Set vzone = Selection
    3.     vtxt = vzone.Range("a1").Value
    4.     For i = 2 To vzone.Rows.Count
    5.         vtxt = vtxt & Chr(10) & vzone.Cells(i, 1).Value
    6.         vzone.Cells(i, 1).ClearContents
    7.     Next
    8.     vzone.Range("a1").Value = vtxt
    9.     With vzone
    10.         .HorizontalAlignment = xlCenter
    11.         .VerticalAlignment = xlCenter
    12.         .WrapText = False
    13.         .Orientation = 0
    14.         .AddIndent = False
    15.         .IndentLevel = 0
    16.         .ShrinkToFit = False
    17.         .ReadingOrder = xlContext
    18.         .MergeCells = True
    19.     End With
    20.     vzone.Range("a1").Value = vzone.Range("a1").Value
    21. End Sub
  8. 1 month ago by spirit
    1. <!-- Add autocomplete = "off" in the form tag -->
    2.  
    3. <!-- Example -->
    4. <form name="form1" id="form1" method="post" autocomplete="off"
    5.   action="http://www.example.com/form.cgi">
    6. [...]
    7. </form>
  9. 1 month ago by jacinmontava
    1. <script type="text/javascript">
    2. function pulsar(e) {
    3.   tecla = (document.all) ? e.keyCode : e.which;
    4.   return (tecla != 13);
    5. }
    6. </script>
    7. <!-- -->
    8. <form action="loquesea.asp" onkeypress = "return pulsar(event)">
    9. <input type="text" />
    10. <input type="submit" />
    11. </form>
  10. 1 month ago by jacinmontava
    1. function stopRKey(evt) {
    2. var evt = (evt) ? evt : ((event) ? event : null);
    3. var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    4. if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
    5. }
    6. document.onkeypress = stopRKey;
  11. 1 month ago by cyo
    1. mysql -u root -p
    2. mysql> show databases;

First / Previous / Next / Last / Page 1 of 47 (467 posteets)