IZRADA SAJTA za 10 €

Home   FORUM   Toplista   HTML   CSS   JavaScript   PHP   DIZAJN   SEO   Mapa


KONTAKT
izuzetan[at]gmail.com






TOP LISTA SAJTOVA
Igrice
Slike

Frame

frame = void | above | below | hsides | vsides | lhs | rhs | box | border - FRAME postavlja ili vraća spoljne granice tabele u raznim oblicima. Evo primera:

<html><head>
<script type="text/javascript">
function celija(a){
    if(a=="above") document.getElementById("tabla").frame="above";
    if(a=="void") document.getElementById("tabla").frame="void";
    if(a=="below") document.getElementById("tabla").frame="below";
    if(a=="hsides") document.getElementById("tabla").frame="hsides";
    if(a=="vsides") document.getElementById("tabla").frame="vsides";
    if(a=="lhs") document.getElementById("tabla").frame="lhs";
   if(a=="rhs") document.getElementById("tabla").frame="rhs";
    if(a=="box") document.getElementById("tabla").frame="box";
    if(a=="border") document.getElementById("tabla").frame="border";
}
</script></head><body>
<table id="tabla">
   <tr>
       <td>celija 1</td>
       <td>celija 2</td>
   </tr><tr>
       <td>celija 3</td>
       <td>celija 4</td>
   </tr>
</table><br>
<input type="button" onclick=celija("above") value="Promeni frame table u above"><br>
<input type="button" onclick=celija("void") value="Promeni frame table u void"><br>
<input type="button" onclick=celija("below") value="Promeni frame table u below"><br>
<input type="button" onclick=celija("hsides") value="Promeni frame table u hsides"><br>
<input type="button" onclick=celija("vsides") value="Promeni frame table u vsides"><br>
<input type="button" onclick=celija("lhs") value="Promeni frame table u lhs"><br>
<input type="button" onclick=celija("rhs") value="Promeni frame table u rhs"><br>
<input type="button" onclick=celija("box") value="Promeni frame table u box"><br>
<input type="button" onclick=celija("border") value="Promeni frame table u border">
</body></html>

Copyright © 2010 BUbaj. Powered By bubaj.com
JavaScript    Sintaksa    Osnovne funkcije    Kontrolne strukture    Dogadjaji    Browser funkcije    HTML DOM objekti    Tabele    JS i CSS    CANVAS    Skripte