Salve a tutti, ho un problema con un countdown in flash ho cercato di tradurre il listato di default in php come asp.net ma come al solito non mi arrendo... chiedo aiuto a voi tutti...ecco il listato che ho tradotto:
pagina annidata in masterpage
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="User_Default2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="js/swfobject.js">
var stageW = 560;
var stageH = 300;
var cacheBuster = Date.parse(new Date());
var flashvars = {};
var params = {};
params.bgcolor = "#ffffff";
params.allowfullscreen = "true";
params.wmode = "transparent";
flashvars.componentWidth = 470;
flashvars.componentHeight = 105;
flashvars.pathToFiles = "timer/";
flashvars.settingsPath = "xml/settings.xml";
flashvars.timeLeft = 10000;
flashvars.redirect = "http://fln.somee.com/default.aspx";
var so = new SWFObject("preview.swf?t="+cacheBuster, "FlabellComponent", stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
so.write("flashcontent"); // qui inseriamo l'id del contenitore
</script>
<p>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</p>
<div id="flashcontent">Testo o immagine sostitutiva del filmato</div>
<div id="FlabellComponent">
<p>
<a target="_blank" href="http://www.adobe.com/go/getflashplayer" rel="nofollow">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
</a>
</p>
</div>
</asp:Content>/code]
Mentre questo lato codice vb:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Label1.Text = Now
Dim gv_deadline As String, gv_now As Date, gv_then As Date
Dim gv_endDate As Array, gv_endDay As Array, gv_endHrs As Array
Dim gv_timerMiliseconds As Long
gv_deadline = "11/12/2009 17:00" ' edit doomsday
gv_endDate = Split(gv_deadline, " ")
gv_endDay = Split(gv_endDate(0), "/")
gv_endHrs = Split(gv_endDate(1), ":")
gv_now = DateTime.Now
gv_then = FormatDateTime(gv_endDay(0) & "/" & gv_endDay(1) & "/" & gv_endDay(2) & " " & gv_endHrs(0) & ":" & gv_endHrs(1))
gv_timerMiliseconds = DateDiff(DateInterval.Second, gv_now, gv_then) * 1000
Label1.Text = gv_timerMiliseconds
End Sub
La variabile funziona ma il countdown non si visualizza.
Grazie a tutti