Jump to content
Fórum Script Brasil
  • 0
Sign in to follow this  
Guest Visitante

Java Script

Question

Guest Visitante

Esta função não funciona no Firefox, não sei porque, devia aparecer os destaques sempre a rolar, no IE funciona prefitamente. :wacko: :Se alguém poder ajudar...

Private Sub destaques()


        Dim SQL As String
        Dim lbl As New Label
        Dim lbl1 As New Label
        Dim txt As String

        Dim dv As DataView = New DataView(Cn.Tables("sti_noticias"))

        lbl1.Text = ""
        For n As Integer = 0 To dv.Count - 1

            lbl.Text = lbl.Text + "messagess[" + n.ToString + "]=""<b>" _
            + dv(n)("not_titulo").ToString + "- </b>" _
            + dv(n)("not_cabec").ToString _
            + "  <b><a href=default.aspx?not_id=" _
            + dv(n)("not_id").ToString _
            + "><img border=0 width=15 src=imagens/seta.gif></a></b>" + """;"


        Next
        lbl1.Text = lbl1.Text + "<table border=""0"" width=""100%"" cellspacing=0> " _
             + "<tr>" _
  + "<td class=""tbQuadroTitulo""><b> Destaques</b></td>" _
  + "</tr>"


        Lblnotic.Text = lbl1.Text + "" _
        + "<tr>" _
        + "<td class=""tbQuadro"">" _
        + "<center>" _
       + "<!-- Inicio do JavaScript -->" _
       + "&lt;script language=JavaScript1.2> " _
       + "var messagess=new Array();    " _
       + lbl.Text _
       + "</SCRIPT>" _
       + "&lt;script language=JavaScript1.2 src=""destaque.js""></SCRIPT>" _
       + "&lt;script language=JavaScript1.2 src=""destaque1.js""></SCRIPT>" _
       + "</center>" _
       + "<!-- Fim do JavaScript -->" _
       + "" _
       + "</td>" _
       + "</tr>" _
       + "</table>"

        Lblnotic.ForeColor = Color.Red

    End Sub

Edited by fercosmig
Adicionar tag CODE

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Isso é VBscript?

bem se for é por isso que não funciona, VBscript é uma plataforma para o ASP se tiver rodando com ASP irá funcionar

agora isso que está estranho:

+ "&lt;script language=JavaScript1.2 src=""destaque.js""></SCRIPT>" _

+ "&lt;script language=JavaScript1.2 src=""destaque1.js""></SCRIPT>" _

você está usando ASPA dentro de ASPA isso está estranho

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  



  • Forum Statistics

    • Total Topics
      148600
    • Total Posts
      644294
×
×
  • Create New...