Ver Mensaje Individual
  #8 (permalink)  
Antiguo 19/07/2012, 13:09
khonzu
 
Fecha de Ingreso: abril-2012
Mensajes: 8
Antigüedad: 12 años
Puntos: 0
Exclamación Respuesta: cambio de atributo de html5 con funcion .attr

Todo el código que tengo...


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Video.aspx.cs" Inherits="Capturas.video" %>

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

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script type="text/javascript" src="/Scripts/jquery-1.4.2.js"></script>

<script type="text/javascript">
$(document).ready(function () {
$('#v1').attr('src', '/Styles/Videos/32.mp4');
});
</script>

</head>
<body>
<center>
<video id="v1" controls src="/Styles/Videos/1.mp4" type="video/mp4" runat="server" width="640" height="480" ></video>
</center>
</body>
</html>