Ir para conteúdo
Fórum Script Brasil

Paulo Alberto

Membros
  • Total de itens

    10
  • Registro em

  • Última visita

Posts postados por Paulo Alberto

  1. Olá pessoal,

    Estou querendo colocar a like box em um site, não sei onde estou errando então se alguém puder me dar um luz eu agradeço. Tentei de várias formas, com o XFBML, html5, iframe.

    Obrigado.

    Código com iframe:



    <html>
    <head></head>


    <body>

    <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&amp;width=292&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=true" scrolling="no" frameborder="0"
    style="border:none; overflow:hidden; width:292px; height:290px;" allowTransparency="true"></iframe>
    </body>

    </html>

    [/codebox]

    Codigo com XFBML

    [codebox]

    <html xmlns:fb="http://ogp.me/ns/fb#">
    <head><title></title></head>




    <body>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
    fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>



    <fb:like-box href="http://www.facebook.com/platform" width="270" height="290" show_faces="true" stream="false" header="true"></fb:like-box>
    </body>

    </html>

  2. Olá, estou fazendo um menu vertical e queria dar o efeito no HOME, deixando o hover já acionado sem precisar do mouse..

    efeito parecido com esse abaixo.

    Menu

    segue o codigo que fiz.



    <div id="menu">
    <table border="0" width="100%" height="100%">

    <tr>
    <td><a href="#"><i>Home</a></td>
    <td><a href="#"><i>Cursos</a></td>
    <td><a href="#"><i>Contato</a></td></tr>
    <tr>
    <td><a href="#"><i>Cursos</a></td>
    <td><a href="#"><i>Parceiros</a></td>
    <td><a href="#"><i>Localização</a></td></tr>
    <tr>
    <td><a href="#"><i>A Empresa</a></td>
    <td><a href="#"><i>Estágio</a></td>
    <td><a href="#"><i>Fotos</a></td></tr>
    </ul>

    </table>
    </div>

    [/codebox]

    CSS abaixo.

    [codebox]

    #menu table {
    padding:2px;
    margin:2px;
    float: left;
    width: 100%;
    text-decoration: none;
    font:16px;
    }
    #menu table a {

    text-decoration: none;
    padding: 2px 10px;
    float:left;
    font-family: Arial, Verdana, Geneva, sans-serif;
    font-size: 16px;
    color: #002C2D;

    }


    #menu table a:hover {
    background-color:#002C2D;
    color: #FFFFFF;
    border-bottom:3px solid #6D6D6D;
    }

    Se alguém puder me ajudar agradeço. abç

  3. Bom dia Galera,

    Bom, gostaria de saber como eu posso estar alinhando a div "rodape_barra" no meio da página(centralizada), ela extrapola o limite da div "tudo" e gostaria de deixar 30 px pra cada lado extrapolando esse limite



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>

    <title>Teste</title>
    <link rel="stylesheet" type="text/css" href="external.css" />
    &lt;script LANGUAGE="javascript" TYPE="text/javascript">
    </script>


    </head>
    <body>

    <div id="tudo">

    <div id="logo">

    </div>
    <div id="menu">
    </div>
    <div id="banner">
    </div>
    <div id="submenu">
    </div>
    <div id="meio_esq">
    </div>
    <div id="meio_dir_top">
    </div>
    <div id="meio_dir_bottom">
    </div>
    <div id="rodape_barra">
    </div>
    <div id="rodape_menu">
    </div>
    <div id="rodape">
    </div>
    </div>
    </body>
    </html>

    [/codebox]

    [codebox]

    * {
    margin:5px;
    padding:0;
    }


    #tudo {
    width: 902px;
    height: 1272px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    border:1px solid white;

    }

    #logo {

    background-color: white;
    width:450px;
    height:130px;
    float:left;
    border:1px solid gray;
    padding: 0px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    }
    #menu
    {
    background-color: white;
    width:450px;
    height:130px;
    margin:0 450px;
    margin-left: 450px;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    border:1px solid gray;

    }

    #banner {
    border:1px solid gray;
    width: 900px;
    height: 260px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;
    }

    #submenu {
    border: 1px solid gray;
    width: 900px;
    height: 70px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;

    }
    #meio_esq {
    border: 1px solid gray;
    width: 600px;
    height: 500px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;
    float: left;
    }
    #meio_dir_top {
    border: 1px solid gray;
    width: 300px;
    height: 250px;
    margin:0 598px;
    margin-left: 600px;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    background-color: white;
    }

    #meio_dir_bottom {
    border: 1px solid gray;
    width: 300px;
    height: 248px;
    margin:0 598px;
    margin-left: 600px;
    margin-right: 0;
    margin-top: 0px;
    margin-bottom: 2px;
    background-color: white;
    }

    #rodape_barra {

    border: 1px solid gray;
    width: 960px;
    height: 62px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;


    }


    #rodape_menu {

    border: 1px solid gray;
    width: 900px;
    height: 162px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;
    float: left;
    }


    #rodape {

    border: 1px solid gray;
    width: 900px;
    height: 62px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 2px;
    background-color: white;
    float: left;
    }


    body { background-color: #6D6D6D; }





  4. Olá galera,

    Sou novo nesse mundo do php, gostaria de saber se existe uma maneira facil de testar algoritmos.

    Eu quero colocar um campo para entrada de dados, mais essa entrada só pode ser feita por formulários e BD ou existe outras maneiras?

    Valeuss abç

  5. Bomm.. estou seguindo o livro PHP e MYSQL Desenvolvimento web e vendo um exemplo dado pelo livro aparece o seguinte erro "Warning: fopen(DOCUMENT_ROOT/../orders/orders.txt) [function.fopen]: failed to open stream: No such file or directory in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\.. online 69

    bom.. no livro explica esse erro de forma confusa. Gostaria de saber se alguém poderia me ajudar a corrigir o erro e explicar como funciona.

    segue o codigo abaixo:


    <html>
    <head><title>Bob's Auto Parts</title></head>

    <body>
    <form action="process.php" method="post">
    <table border="0">
    <tr bgcolor="#cccccc">
    <td width="150">Item</td>
    <td width="15">Quantidade</td>
    </tr>
    <tr>
    <td>Pneus</td>
    <td align="left"><input type="text" name="pneusqnt" size="3" maxlength="3"></td>
    </tr>
    <tr>
    <td>Óleo</td>
    <td align="left"><input type="text" name="oleoqnt" size="3" maxlength="3"></td>
    </tr>
    <tr>
    <td>Plugs</td>
    <td align="left"><input type="text" name="plugsqnt" size="3" maxlength="3"></td>
    </tr>
    <tr>
    <td>Address</td>
    <td align="center"><input type="text" name="address" size="50" maxlength="150"></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input type="submit" value="Mandar Ordem"></td>
    </tr>
    <tr>
    <td>Como você achou o Bob's</td>
    <td><select name="find">
    <option value="a">Regular consumidor
    <option value="b">TV
    <option value="c">Fone
    <option value="d">Blablabla
    </select>
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>


    //ARQUIVO PROCESS.PHP abaixo



    <?php
    $pneusqnt = $_POST['pneusqnt'];
    $oleoqnt = $_POST['oleoqnt'];
    $plugsqnt = $_POST['plugsqnt'];
    $find = $_POST['find'];
    $address = $_POST['address'];

    $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];

    ?>
    <html>
    <head>
    <title>Bob's Auto Parts Resultados</title>
    </head>

    <body>
    <h1>Bob's Auto Parts</h1>
    <h2>Ordem de Resultados</h2>
    <?php
    $date = date('H:i, jS F');
    //escreve na tela as info processadas e hora/data

    echo "<p>Suas ordens foram:";
    echo $date;
    echo "</p>";

    echo "$pneusqnt Pneus <br />";
    echo "$oleoqnt Óleo <br />";
    echo "$plugsqnt Plugs <br />";

    $totalqnt = 0;
    $totalqnt = $pneusqnt + $plugsqnt + $oleoqnt;
    echo "Total da ordem dos itens: $totalqnt";

    if ($totalqnt==0) {
    echo "<font color=red>";
    echo "Você não colocou nada na página anterior!<br />";
    echo "</font>";
    }
    else
    {
    if($pneusqnt>0)
    echo "$pneusqnt Pneus<br />";
    if($oleoqnt>0)
    echo "$oleoqnt Óleo<br />";
    if($plugsqnt>0)
    echo"$plugsqnt Plugs</br />";
    }

    $totalamount = 0.00;

    define('PNEUSPRECO', 100);
    define('OLEOPRECO', 10);
    define('PLUGSPRECO', 4);

    $totalamount = $pneusqnt * PNEUSPRECO
    + $oleoqnt * OLEOPRECO
    + $plugsqnt * PLUGSPRECO;

    $totalamount = number_format($totalamount,2, '.',' ');

    echo "<p>Total das ordens foi: $totalamount</p>";
    echo "<p>Endereço a ser enviado: $address</p>";

    $outputstrings = $date."\t".$pneusqnt."Pneus \t".$oleoqnt."Oleo \t".$plugsqnt."Plugs\t\$".
    $totalamount."\t".$address."\n";

    //abre o arquivo para anexar
    fp = fopen ("DOCUMENT_ROOT/../orders.txt",'ab');

    if (!$fp)
    {
    echo "<p><strong>Suas ordens não puderam ser processas. Por favor tente mais tarde
    </strong></p></body></html>";
    exit;
    }

    fwrite($fp, $outputstring, strlen($outputstring));
    fclose($fp);

    echo "<p>Escreva as ordens</p>";
    ?>
    </body>

    </html>

    [/codebox]

    valeu ai gente. Abç

  6. então to brincando aqui com div's e to com um problema q não sei como q se resolve.

    assim.. eu qro fazer um site q fique +- assim

    link --> Imagem das div's

    sendo q qro q as partes laterais (preta e cinza)

    não apareçam por uma pessoa q usa configuraçao de video 800x600

    quando tento mudar aqui em casa pra 800x600 o site fica todo errado

    inclusive os textos

    então qro uma ajudinha ai pra tentar concerta isso!

    lembrando q to começando com css =D

    vlwww

    segue o codigo ai..

    #topo { 
                       position:fixed;
                width:80%;
                height:30%;
                top:0;
                right:10%;
                bottom:auto;
                left:10%;
               }
            
        #MenuCentral { background-color:#CCCCCC;
                       position:fixed;
                       width:100%;
                       height:4.5%;
                       top:30%;
                       bottom:0;
                       right:0;
                       left:0;
                     }
                     
                     
        #MainEsq { background-color:#009999;
                   position:fixed;
                   width:65%;
                   height:60%;
                   top:34.5%;
                   bottom:0;
                   right:0;
                   left:0;
                  }
                   
        #MainDir { background-color:#00CCCC;
                   position:fixed;
                   width:35%;
                   height:60%;
                   top:34.5%;
                   bottom:0;
                   top:0
                   rigth:0;
                   left:65%;
                  }           
                   
        #Rodape { background-color:#CCCCCC;
                  position:fixed;
                  width:100%;
                  height:4.5%;
                  top:94.5%;
                  bottom:0;
                  right:0;
                  left:0;
                 }

×
×
  • Criar Novo...