Ir para conteúdo
Fórum Script Brasil

Derme

Membros
  • Total de itens

    27
  • Registro em

  • Última visita

Tudo que Derme postou

  1. Olá pessoal! Não estou sabendo como resolver isso! tenho uma área de 150px largura X 100px altura. Preciso redimensionar imagens para que, dentro dessa área, ocupem o maior espaço possível, mantendo a proporção da imagem. As imagens originais poderão ser menor ou maior que essa área e lembrando também que tanto poderá ter mais largura que altura ou o contrário e aínada poderá ter dimensões iguais. Tenho um código que redimensiona proporcionalmente, mas o problema é que não posso pre-deteminar um valor, teria que ser em tempo real, pois cada imagem pode ter dimensões diferentes
  2. Olá! Estou executando um video mpg no MediaPlayer direto no browser, e gostaria de parar e continuar usando javascript, mas não funciona! Na verdade o script final terá que ler o arquivo passado em cada link com javascript e executa-lo, mas primeiro preciso resolver esse problema, olha como ficou, abaixo <html> <head> <title>Untitled</title> &lt;script language="JavaScript" > function toca(op,arq){ if(op=="1"){ document.MediaPlayer.Stop() }else{ document.MediaPlayer.Play() } } </script> </head> <body> <table align="center" cellspacing="2" cellpadding="2" border="0"> <tr> <td align="center" valign="middle"> <div style="border: outset 8 navy"> <!-- ||||||||||| PLAYER ||||||||||| --> <OBJECT id="MediaPlayer" type="application/x-oleobject height=302" standby="Loading Windows Media Player components..." width="300" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <PARAM ID="FileName" NAME="FileName" VALUE="The_solo.mpg"> <PARAM NAME="AudioStream" VALUE="1"> <PARAM NAME="AutoSize" VALUE="0"> <PARAM NAME="AutoStart" VALUE="1"> <PARAM NAME="AnimationAtStart" VALUE="0"> <PARAM NAME="AllowScan" VALUE="-1"> <PARAM NAME="AllowChangeDisplaySize" VALUE="-1"> <PARAM NAME="AutoRewind" VALUE="0"> <PARAM NAME="Balance" VALUE="0"> <PARAM NAME="BaseURL" VALUE=""> <PARAM NAME="BufferingTime" VALUE="5"> <PARAM NAME="CaptioningID" VALUE=""> <PARAM NAME="ClickToPlay" VALUE="-1"> <PARAM NAME="CursorType" VALUE="0"> <PARAM NAME="CurrentPosition" VALUE="-1"> <PARAM NAME="CurrentMarker" VALUE="0"> <PARAM NAME="DefaultFrame" VALUE=""> <PARAM NAME="DisplayBackColor" VALUE="0"> <PARAM NAME="DisplayForeColor" VALUE="16777215"> <PARAM NAME="DisplayMode" VALUE="1"> <PARAM NAME="DisplaySize" VALUE="1"> <PARAM NAME="Enabled" VALUE="-1"> <PARAM NAME="EnableContextMenu" VALUE="-1"> <PARAM NAME="EnablePositionControls" VALUE="-1"> <PARAM NAME="EnableFullScreenControls" VALUE="-1"> <PARAM NAME="EnableTracker" VALUE="-1"> <PARAM NAME="InvokeURLs" VALUE="-1"> <PARAM NAME="Language" VALUE="-1"> <PARAM NAME="Mute" VALUE="0"> <PARAM NAME="PlayCount" VALUE="0"> <PARAM NAME="PreviewMode" VALUE="0"> <PARAM NAME="Rate" VALUE="1"> <PARAM NAME="SAMILang" VALUE=""> <PARAM NAME="SAMIStyle" VALUE=""> <PARAM NAME="SAMIFileName" VALUE=""> <PARAM NAME="SelectionStart" VALUE="-1"> <PARAM NAME="SelectionEnd" VALUE="-1"> <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"> <PARAM NAME="SendWarningEvents" VALUE="-1"> <PARAM NAME="SendErrorEvents" VALUE="-1"> <PARAM NAME="SendKeyboardEvents" VALUE="0"> <PARAM NAME="SendMouseClickEvents" VALUE="0"> <PARAM NAME="SendMouseMoveEvents" VALUE="0"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"> <PARAM NAME="ShowCaptioning" VALUE="0"> <PARAM NAME="ShowControls" VALUE="-1"> <PARAM NAME="ShowAudioControls" VALUE="-1"> <PARAM NAME="ShowDisplay" VALUE="0"> <PARAM NAME="ShowGotoBar" VALUE="0"> <PARAM NAME="ShowPositionControls" VALUE="0"> <PARAM NAME="ShowStatusBar" VALUE="-1"> <PARAM NAME="ShowTracker" VALUE="-1"> <PARAM NAME="TransparentAtStart" VALUE="0"> <PARAM NAME="VideoBorderWidth" VALUE="0"> <PARAM NAME="VideoBorderColor" VALUE="333333"> <PARAM NAME="VideoBorder3D" VALUE="-1"> <PARAM NAME="Volume" VALUE="-1"> <PARAM NAME="WindowlessVideo" VALUE="-1"> <embed type="application/x-mplayer2" src="" width=380height=302></embed> </OBJECT> <!-- ||||||||| FIM PLAYER ||||||||| --> </div> </td> <td valign="top"> <div><a href="java script:void(0)" onclick="toca('1','The_solo.mpg')">Para</a> | <a href="java script:void(0)" onclick="toca('2','The_solo.mpg')">Toca</a></div> </td> </tr> </table> </body> </html>
×
×
  • Criar Novo...