Tags: html

Sort by: Date / Title /

  1. 7 years ago by spirit
    1. function clearDefault(el) {
    2.   if (el.defaultValue==el.value) el.value = ""
    3. }
    4.  
    5. // Then call this function using the 'onfocus' value of your input box:
    6.  
    7. <input value="Your Comment" onfocus="clearDefault(this)" type="text">
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1862"></script>
  2. 7 years ago by jacinmontava
    1. <STYLE>
    2.  H1.SaltoDePagina
    3.  {
    4.      PAGE-BREAK-AFTER: always
    5.  }
    6. </STYLE>
    7.  
    8. <!--En el sitio en que quieras forzar el salto de página deberás poner el tag h1 aplicando el estilo SaltoDePagina definido anteriormente-->
    9.  
    10. <H1 class=SaltoDePagina> </H1>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1802"></script>
  3. 8 years ago by spirit
    1. En HTML:
    2. <img src="..." align="absmiddle" /> Texte
    3.  
    4. En CSS :
    5. <img src="..." style="vertical-align:middle" /> Texte
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1707"></script>
  4. sponsorised links
  5. 8 years 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>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1697"></script>
  6. 8 years ago by spirit
    Useful for displaying code snippets for example
    1. pre {
    2. white-space: pre-wrap; /* css-3 */
    3. white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
    4. white-space: -pre-wrap; /* Opera 4-6 */
    5. white-space: -o-pre-wrap; /* Opera 7 */
    6. word-wrap: break-word; /* Internet Explorer 5.5+ */
    7. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1642"></script>
  7. 8 years ago by aric
    html / javscript
    1. <input type="file" onchange="this.submit()" name="myfile" />
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1586"></script>
  8. 8 years ago by spirit
    Controler l'ordre des tabulations dans un formulaire HTML (attribut tabindex)
    1.   <title>Controlling TAB Order</title>
    2. </head>
    3.     Field 1 (first tab selection):
    4.     <input type="text" name="field1" tabindex=1 /><br />
    5.     Field 2 (third tab selection):
    6.     <input type="text" name="field2" tabindex=3 /><br />
    7.     Field 3 (second tab selection):
    8.     <input type="text" name="field3" tabindex=2 /><br />
    9.   </form>
    10. </body>
    11. </html>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1553"></script>
  9. 8 years ago by stephane
    This code using html & css is very useful if you want to display this kind of menu! go to the adress of this source to see the demo or copy paste it in a htm file...
    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2. <html xmlns="http://www.w3.org/1999/xhtml" lang="fr">                               
    3.   <head>                                                         
    4.     <meta content="text/html; charset=UTF-8" http-equiv="content-type" />                                                           
    5.     <title>:: Demo dropdown nav menu without js ::</title>
    6.     <style type="text/css">
    7.  
    8.  
    9. /* ================================================================
    10. This copyright notice must be untouched at all times.
    11.  
    12. The original version of this stylesheet and the associated (x)html
    13. is available at http://www.cssplay.co.uk/menus/final_drop.html
    14. Copyright (c) 2005-2008 Stu Nicholls. All rights reserved.
    15. This stylesheet and the associated (x)html may be modified in any
    16. way to fit your requirements.
    17. =================================================================== */
    18.  
    19. .menu {width:745px; height:32px; position:relative; z-index:100;border-right:1px solid #000; font-family:arial, sans-serif;}
    20. /* hack to correct IE5.5 faulty box model */
    21. * html .menu {width:746px; w\idth:745px;}
    22. /* remove all the bullets, borders and padding from the default list styling */
    23. .menu ul {padding:0;margin:0;list-style-type:none;}
    24. .menu ul ul {width:149px;}
    25. /* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
    26. .menu li {float:left;width:149px;position:relative;}
    27. /* style the links for the top level */
    28. .menu a, .menu a:visited {display:block;font-size:12px;text-decoration:none; color:#fff; width:138px; height:30px; border:1px solid #000; border-width:1px 0 1px 1px; background:#09c; padding-left:10px; line-height:29px; font-weight:bold;}
    29. /* a hack so that IE5.5 faulty box model is corrected */
    30. * html .menu a, * html .menu a:visited {width:149px; w\idth:138px;}
    31.  
    32. /* style the second level background */
    33. .menu ul ul a.drop, .menu ul ul a.drop:visited {background:#d4d8bd url(http://www.cssplay.co.uk/menus/breadcrumbs/grey-arrow.gif) no-repeat 130px center;}
    34. /* style the second level hover */
    35. .menu ul ul a.drop:hover{background:#c9ba65 url(http://www.cssplay.co.uk/menus/breadcrumbs/blue-arrow.gif) no-repeat 130px center;}
    36. .menu ul ul :hover > a.drop {background:#c9ba65 url(http://www.cssplay.co.uk/menus/breadcrumbs/blue-arrow.gif) no-repeat 130px center;}
    37. /* style the third level background */
    38. .menu ul ul ul a, .menu ul ul ul a:visited {background:#e2dfa8;}
    39. /* style the third level hover */
    40. .menu ul ul ul a:hover {background:#b2ab9b;}
    41.  
    42.  
    43. /* hide the sub levels and give them a positon absolute so that they take up no room */
    44. .menu ul ul {visibility:hidden;position:absolute;height:0;top:31px;left:0; width:149px;border-top:1px solid #000;}
    45. /* another hack for IE5.5 */
    46. * html .menu ul ul {top:30px;t\op:31px;}
    47.  
    48. /* position the third level flyout menu */
    49. .menu ul ul ul{left:149px; top:-1px; width:149px;}
    50.  
    51. /* position the third level flyout menu for a left flyout */
    52. .menu ul ul ul.left {left:-149px;}
    53.  
    54. /* style the table so that it takes no ppart in the layout - required for IE to work */
    55. .menu table {position:absolute; top:0; left:0; border-collapse:collapse;;}
    56.  
    57. /* style the second level links */
    58. .menu ul ul a, .menu ul ul a:visited {background:#d4d8bd; color:#000; height:auto; line-height:1em; padding:5px 10px; width:128px;border-width:0 1px 1px 1px;}
    59. /* yet another hack for IE5.5 */
    60. * html .menu ul ul a, * html .menu ul ul a:visited {width:150px;w\idth:128px;}
    61.  
    62. /* style the top level hover */
    63. .menu a:hover, .menu ul ul a:hover{color:#000; background:#b7d186;}
    64. .menu :hover > a, .menu ul ul :hover > a {color:#000; background:#b7d186;}
    65.  
    66. /* make the second level visible when hover on first level list OR link */
    67. .menu ul li:hover ul,
    68. .menu ul a:hover ul{visibility:visible; }
    69. /* keep the third level hidden when you hover on first level list OR link */
    70. .menu ul :hover ul ul{visibility:hidden;}
    71. /* make the third level visible when you hover over second level list OR link */
    72. .menu ul :hover ul :hover ul{ visibility:visible;}
    73.  
    74. </style>
    75.  
    76.   </head>
    77. <div class="menu">
    78.  
    79. <li><a href="../menu/index.html">DEMOS<!--[if IE 7]>
    80. <!-->
    81. </a><!--<![endif]-->
    82. <!--[if lte IE 6]>
    83. <table><tr><td><![endif]-->
    84.  
    85.         <ul>
    86.         <li><a href="../menu/zero_dollars.html">zero dollars advertising page</a></li>
    87.         <li><a href="../menu/embed.html">wrapping text around images</a></li>
    88.         <li><a href="../menu/form.html">styled form</a></li>
    89.         <li><a href="../menu/nodots.html">active focus</a></li>
    90.  
    91.         <li><a class="drop" href="../menu/hover_click.html">hover/click with no borders<!--[if IE 7]>
    92. <!-->
    93. </a><!--<![endif]-->
    94.  
    95. <!--[if lte IE 6]>
    96. <table><tr><td><![endif]-->
    97.                 <ul>
    98.                         <li><a href="../menu/form.html">styled form</a></li>
    99.                         <li><a href="../menu/nodots.html">removing active/focus borders</a></li>
    100.                         <li><a href="../menu/hover_click.html">hover/click</a></li>
    101.                 </ul>
    102.  
    103. <!--[if lte IE 6]>
    104. </td></tr></table></a><![endif]-->
    105.         </li>
    106.  
    107.         <li><a class="drop" href="../menu/shadow_boxing.html">shadow boxing<!--[if IE 7]>
    108. <!-->
    109. </a><!--<![endif]-->
    110. <!--[if lte IE 6]>
    111. <table><tr><td><![endif]-->
    112.                 <ul>
    113.                         <li><a href="../menu/form.html">styled form</a></li>
    114.                         <li><a href="../menu/nodots.html">removing active/focus borders</a></li>
    115.                         <li><a href="../menu/hover_click.html">hover/click</a></li>
    116.  
    117.                 </ul>
    118.  
    119. <!--[if lte IE 6]>
    120. </td></tr></table></a><![endif]-->
    121.         </li>
    122.         <li><a class="drop" href="../menu/old_master.html">image map for detailed information<!--[if IE 7]>
    123. <!-->
    124. </a><!--<![endif]-->
    125. <!--[if lte IE 6]>
    126. <table><tr><td><![endif]-->
    127.                 <ul>
    128.                         <li><a href="../menu/form.html">styled form</a></li>
    129.                         <li><a href="../menu/nodots.html">removing active/focus borders</a></li>
    130.                         <li><a href="../menu/hover_click.html">hover/click</a></li>
    131.  
    132.                 </ul>
    133. <!--[if lte IE 6]>
    134. </td></tr></table></a><![endif]-->
    135.         </li>
    136.         <li><a href="../menu/bodies.html">fun with background images</a></li>
    137.         <li><a href="../menu/fade_scroll.html">fade scrolling</a></li>
    138.         <li><a href="../menu/em_images.html">em image sizes compared</a></li>
    139.  
    140.         </ul>
    141.  
    142. <!--[if lte IE 6]>
    143. </td></tr></table></a><![endif]-->
    144. </li>
    145. <li><a href="../boxes/index.html">BOXES<!--[if IE 7]>
    146. <!-->
    147. </a><!--<![endif]-->
    148. <!--[if lte IE 6]>
    149. <table><tr><td><![endif]-->
    150.         <ul>
    151.         <li><a href="spies.html">a coded list of spies</a></li>
    152.         <li><a href="vertical.html">vertical menu</a></li>
    153.         <li><a href="expand.html">enlarging unordered list</a></li>
    154.         <li><a href="enlarge.html">link images</a></li>
    155.  
    156.         <li><a href="cross.html">non-rectangular</a></li>
    157.         <li><a href="jigsaw.html">jigsaw links</a></li>
    158.         <li><a href="circles.html">circular links</a></li>
    159.         </ul>
    160. <!--[if lte IE 6]>
    161. </td></tr></table></a><![endif]-->
    162. </li>
    163. <li><a href="../mozilla/index.html">MOZILLA<!--[if IE 7]>
    164. <!-->
    165. </a><!--<![endif]-->
    166. <!--[if lte IE 6]>
    167. <table><tr><td><![endif]-->
    168.         <ul>
    169.  
    170.         <li><a href="../mozilla/dropdown.html">drop down menu</a></li>
    171.         <li><a href="../mozilla/cascade.html">cascading menu</a></li>
    172.         <li><a href="../mozilla/content.html">content:</a></li>
    173.         <li><a href="../mozilla/moxbox.html">mozzie box</a></li>
    174.         <li><a href="../mozilla/rainbow.html">I can build a rainbow with transparent borders</a></li>
    175.         <li><a href="../mozilla/snooker.html">a snooker cue using border art</a></li>
    176.  
    177.         <li><a href="../mozilla/target.html">target practise</a></li>
    178.         <li><a href="../mozilla/splittext.html">two tone headings</a></li>
    179.         <li><a href="../mozilla/shadow_text.html">shadow text</a></li>
    180.         </ul>
    181. <!--[if lte IE 6]>
    182. </td></tr></table></a><![endif]-->
    183. </li>
    184. <li><a href="../ie/index.html">EXPLORER</a></li>
    185.  
    186. <li><a href="../opacity/index.html">OPACITY<!--[if IE 7]>
    187. <!-->
    188. </a><!--<![endif]-->
    189.  
    190. <!--[if lte IE 6]>
    191. <table><tr><td><![endif]-->
    192.         <ul>
    193.         <li><a href="../opacity/colours.html">a colour wheel using opaque colours</a></li>
    194.         <li><a href="../opacity/picturemenu.html">a menu using opacity</a></li>
    195.         <li><a href="../opacity/png.html">partial opacity</a></li>
    196.         <li><a href="../opacity/png2.html">partial opacity II</a></li>
    197.  
    198.         <li><a class="drop" href="../menu/hover_click.html">HOVER/CLICK<!--[if IE 7]>
    199. <!-->
    200. </a><!--<![endif]-->
    201.  
    202. <!--[if lte IE 6]>
    203. <table><tr><td><![endif]-->
    204.                 <ul class="left">
    205.                         <li><a href="../menu/form.html">styled form</a></li>
    206.                         <li><a href="../menu/nodots.html">removing active/focus borders</a></li>
    207.                         <li><a href="../menu/hover_click.html">hover/click</a></li>
    208.                 </ul>
    209.  
    210. <!--[if lte IE 6]>
    211. </td></tr></table></a><![endif]-->
    212.         </li>
    213.  
    214.         </ul>
    215. <!--[if lte IE 6]>
    216. </td></tr></table></a><![endif]-->
    217. </li>
    218. </ul>
    219.  
    220. </div>
    221.  
    222.  
    223. </body>
    224. </html>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/1402"></script>
  10. 9 years ago by eltupper
    1. DirectoryIndex first_index.html second_index.html third_index.html
    2. #if "first_index.html" does not found apache tries to find the next index ("second_index.html"), if the index lists ends apache
    3. # gives the 404 error.
    4. # sorry for my bad english, it's not my natal languaje
    5.  
    6. #si "first_index.html" no es encontrado muestra el proximo en la lista ("third_index.html"), si la lista se acaba da error 404
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/810"></script>
  11. 9 years ago by jacinmontava
    El parametro wmode puesto como transparent hara que los divs siempre esten por encima del objeto flash.
    1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200" title="slip">
    2. <param name="movie" value="RUTA_ARCHIVO">
    3. <param name="quality" value="high">
    4. <param name="wmode" value="transparent"> <!-- este es el parametro que hara que los div's esten por encima del objeto flash -->
    5. <embed src="RUTA_ARCHIVO" width="500" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
    6. </object>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/723"></script>

First / Previous / Next / Last / Page 1 of 2 (20 posteets)