Ir para conteúdo
Fórum Script Brasil

julio reis

Membros
  • Total de itens

    5
  • Registro em

  • Última visita

Posts postados por julio reis

  1. Estou com um problema meu script não ta funcionando no firefox

    alguém me da um help egue o codigo:

    player.html

    <html>

    <head>

    <script language="javascript" src="player.js" type="text/javascript"></script>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    </head>

    <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

    <!-- ImageReady Slices (camaradepontaldoparana_03.jpg) -->

    <table id="Table_01" width="746" height="54" border="0" cellpadding="0" cellspacing="0">

    <tr>

    <td rowspan="3"background="images/player_01.jpg" width="288">

    Radio em teste</td>

    <td>

    <img src="images/player_02.jpg" width="29" height="14" alt=""></td>

    <td rowspan="3">

    <img src="images/player_03.jpg" width="13" height="54" alt=""></td>

    <td>

    <img src="images/player_04.jpg" width="19" height="14" alt=""></td>

    <td rowspan="3">

    <img src="images/player_05.jpg" width="70" height="54" alt=""></td>

    <td>

    <img src="images/player_06.jpg" width="22" height="14" alt=""></td>

    <td rowspan="3">

    <img src="images/player_07.jpg" width="10" height="54" alt=""></td>

    <td>

    <img src="images/player_08.jpg" width="19" height="14" alt=""></td>

    <td rowspan="3">

    <img src="images/player_09.jpg" width="276" height="54" alt=""></td>

    </tr>

    <tr>

    <td>

    <a href="#"><img src="images/player_10.jpg" width="29" height="30" onclick="java script:Tocar();" border="0"></a></td>

    <td>

    <a href="#"><img src="images/player_11.jpg" width="19" height="30" onclick="java script:Parar();" border="0"></a></td>

    <td>

    <a href="#"><img src="images/player_12.jpg" width="22" height="30" onclick="java script:MaisVol();" border="0"></a></td>

    <td>

    <a href="#"><img src="images/player_13.jpg" width="19" height="30" onclick="java script:MenosVol();" border="0"></a></td>

    </tr>

    <tr>

    <td>

    <img src="images/player_14.jpg" width="29" height="10" alt=""></td>

    <td>

    <img src="images/player_15.jpg" width="19" height="10" alt=""></td>

    <td>

    <img src="images/player_16.jpg" width="22" height="10" alt=""></td>

    <td>

    <img src="images/player_17.jpg" width="19" height="10" alt=""></td>

    </tr>

    </table>

    <div id="Roxplayer" style="visibility:hidden" >

    <script language="javascript" type="text/javascript">

    if(-1 != navigator.userAgent.indexOf("MSIE"))

    {

    document.write('<object id="embPlayer" width="50" height="30" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" >');

    document.write('<param id="urlMediaPlayer" name="URL" value="mms://wms3.netpoint.com.br/camarapontal" />');

    document.write('<param name="TransparentAtStart" value="0" />');

    document.write('<param name="ShowControls" value="0" />');

    document.write('<param name="ShowDisplay" value="0" />');

    document.write('<param name="autoStart" value="1" />');

    document.write('<param name="autoSize" value="0" />');

    document.write('<param name="uiMode" value="invisible" />');

    document.write('<param name="volume" value="30" />');

    document.write('<param name="ShowStatusBar" value="1" />');

    document.write('</object>');

    }

    else

    {

    document.write('<object id="embPlayer" width="50" height="30" type="application/x-ms-wmp"');

    document.write('<param id="urlMediaPlayer" name="URL" value="mms://wms3.netpoint.com.br/camarapontal" />');

    document.write('<param name="TransparentAtStart" value="0" />');

    document.write('<param name="ShowControls" value="0" />');

    document.write('<param name="ShowDisplay" value="0" />');

    document.write('<param name="autoStart" value="1" />');

    document.write('<param name="autoSize" value="0" />');

    document.write('<param name="uiMode" value="invisible" />');

    document.write('<param name="volume" value="30" />');

    document.write('<param name="ShowStatusBar" value="1" />');

    document.write('</object>');

    }

    </script>

    </div>

    </div>

    <!-- End ImageReady Slices -->

    </body>

    </html>

    js

    function Tocar()

    {

    document.getElementById('embPlayer').controls.play();

    }

    // controle para radio

    function Parar()

    {

    document.getElementById('embPlayer').controls.stop();

    }

    // controle incrementa volume

    function MaisVol()

    {

    if(document.getElementById('embPlayer').GetVolume != undefined)

    {

    curVolume = document.getElementById('embPlayer').GetVolume();

    newVolume = (curVolume + 10);

    if(newVolume < 100)

    {

    document.getElementById('embPlayer').SetVolume(newVolume);

    }

    else

    {

    document.getElementById('embPlayer').SetVolume(100);

    }

    //alert(document.embPlayer.GetVolume());

    }

    else

    {

    document.getElementById('embPlayer').settings.volume = document.getElementById('embPlayer').settings.volume + 20;

    }

    }

    // controle decrementa volume

    function MenosVol()

    {

    if(document.getElementById('embPlayer').GetVolume != undefined)

    {

    curVolume = document.getElementById('embPlayer').GetVolume();

    newVolume = (curVolume - 10);

    if(newVolume > 10)

    {

    document.getElementById('embPlayer').SetVolume(newVolume);

    }

    else

    {

    document.getElementById('embPlayer').SetVolume(0);

    }

    //alert(document.embPlayer.GetVolume());

    }

    else

    {

    document.getElementById('embPlayer').settings.volume = document.getElementById('embPlayer').settings.volume - 20;

    }

    }

    function MM_openBrWindow(theURL,winName,features) { //v2.0

    window.open(theURL,winName,features);

    }

  2. Pessoal preciso urgente configurar uma maquina para receber 2 sites, já me bati de todas as maneiras para tentar acertar instalei o apache2triad, mas não acerto fazer as conf coretas no apache preciso urgente de um help, se for necessario pago para alguém fazer este trabalho.

    Obrigado

    MSN djjulioreis@hotmail.com

  3. meu codigo

    preciso que so abra os submenu quando clique na categoria.

    esse e meu script atual

    <?php

    include "configuracao_mysql.php";

    $query = mysql_query('SELECT * FROM categorias'); // Seleciona todas as categorias

    while ( $categorias = mysql_fetch_array( $query ) ) // Laço das categorias

    {

    echo('<b>'.$categorias['titulo'].'</b><br>'); // Imprime título da categoria

    $queryMenu = mysql_query('SELECT * FROM menu WHERE categoria=.$categorias['id].'');

    // Pesquisa na tabela menu todos os links que pertencem a esta categoria

    while ( $link = mysql_fetch_array($queryMenu) ) // Laço dos links da categoria

    {

    $complemento = strstr($link['url'],'http://') ? ' target=_blank"' : '' ;

    // Verifica se a URL é um link para outro site, se for, adiciona 'target=blank' para

    // abrir a página em outra janela

    $idlink="?pg=produtos&pd=";

    echo(' - <a href="'.$idlink.''.$link['id].'" '.$complemento.'>'.$link['titulo'].'</a><br>');

    // Imprime o link

    }

    }

    ?>

    obrigado

  4. Pessoal to com um erro no meu menu sera que alguém pode dar um help ai.

    Valeu

    <script type="text/javascript">

    if (document.getElementById){ //DynamicDrive.com change

    document.write('<style type="text/css">\n')

    document.write('.submenu{display: none;}\n')

    document.write('</style>\n')

    }

    function SwitchMenu(obj){

    if(document.getElementById){

    var el = document.getElementById(obj);

    var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change

    if(el.style.display != "block"){ //DynamicDrive.com change

    for (var i=0; i<ar.length; i++){

    if (ar.className==submenu") //DynamicDrive.com change

    ar.style.display = "none";

    }

    el.style.display = "block";

    }else{

    el.style.display = "none";

    }

    }

    }

    </script>

    <table width="100%" bgcolor="white"cellspacing="0" cellpadding="0">

    <tr>

    <td width="120" valign="top" align="center"><?php

    include "configuracao_mysql.php";

    $query = mysql_query('SELECT * FROM categorias'); // Seleciona todas as categorias

    while ( $categorias = mysql_fetch_array( $query ) ) // Laço das categorias

    { ?><? $div = $categorias['id]; ?>

    <?

    echo('<div id="masterdiv"> <div class="menutitle" onclick="SwitchMenu("$div")"><table width=124 cellspacing="0" cellpadding="0" background="images/botcat.gif">

    <tr>

    <td width="20"> </td>

    <br><td width=100 height="23" background="/images/catbot.jpg"><img src="images/subcat.jpg"> <span class="menug"><b>'.$categorias['titulo'].'</b></span></td>

    </tr>

    </table></div>');

    // Imprime título da categoria

    $queryMenu = mysql_query('SELECT * FROM menu WHERE categoria=.$categorias['id].'');

    // Pesquisa na tabela menu todos os links que pertencem a esta categoria

    while ( $link = mysql_fetch_array($queryMenu) ) // Laço dos links da categoria

    {

    $complemento = strstr($link['url'],'http://') ? ' target=_blank"' : '' ;

    // Verifica se a URL é um link para outro site, se for, adiciona 'target=blank' para

    // abrir a página em outra janela

    $idlink="?pg=produtos&pd=";

    ?>

    <?

    echo(' <span class="submenu" id="$div"><table width=120 cellspacing="0" cellpadding="0">

    <tr>

    <td width="120"> <img src="images/subcat.gif" align="middle"> <b><a href="/'.$idlink.''.$link['id].'" '.$complemento.'>'.$link['titulo'].'</a></b></td>

    </tr>

    </table></span>');

    // Imprime o link

    }

    }

    ?></td>

    </tr>

    </table>

    Caso queiram ver o erro basta ir em www.sosdominios.net/loja_modelo

    valeu

×
×
  • Criar Novo...