• User Attivo

    [ASP .NET] Marquee ad uso RIQUADRO NEWS: si può bloccare lo scorrimento?

    Utilizzo un "marquee" come riquadro delle NEWS, ora vorrei fare in modo che andando sopra al testo delle NEWS col PUNTATORE DEL MOUSE lo scorrimento delle news si FERMI?

    ecco il codice e di seguito il link alla pagina:

    <marqueedataformatas="html"scrollamount="1"scrolldelay="30"direction="up"loop="infinite"
    height="360">
    <tableborder="0">
    <tr>
    <td>
    <hr/>
    <%
    While Not qryNews.EOF
    %>
    <tablewidth="100%"border="0"cellspacing="3"cellpadding="0"bgcolor="#F9F9F7">
    <tr>
    <tdwidth="14%"height="27"align="center">
    <%If Not IsNull(ImageFile(qryNews.Fields.Item("IMG1").Value)) Then%>
    <imgsrc='<%="/NewsIMG/" & ImageFile(qryNews.Fields.Item("IMG1").Value)%>'height="40"
    alt="<%=ImageDesc(qryNews.Fields.Item("IMG1").Value)%>">
    <%End If%>
    </td>
    <tdwidth="86%"align="left"valign="top"height="27">
    <fontface="Arial, Helvetica, sans-serif"size="1">
    <center>
    <i>
    <%response.write(qryNews.fields("Dal"))%>
    </i>
    </center>
    </font><fontface="Arial, Helvetica, sans-serif"size="1"><ahref="news/<%=qryNews.Fields("PAGINA")&"?IDN=" & qryNews.Fields("IDNews")&"&L="&qryNews.Fields("Lingua")%>">
    <fontface="Verdana, Arial, Helvetica, sans-serif">
    <%response.write(DelHTML(qryNews.fields("Titolo")))%>
    </font></a><fontface="Verdana, Arial, Helvetica, sans-serif"></font></font>
    </td>
    </tr>
    <tralign="left"valign="top">
    <tdwidth="14%"height="27"align="center">
    <%If Not IsNull(ImageFile(qryNews.Fields.Item("IMG2").Value)) Then%>
    <imgsrc='<%="/NewsIMG/" & ImageFile(qryNews.Fields.Item("IMG2").Value)%>'height="40"
    alt="<%=ImageDesc(qryNews.Fields.Item("IMG2").Value)%>">
    <%End If%>
    </td>
    <td>
    <fontsize="1"face="Verdana, Arial, Helvetica, sans-serif">
    <%response.write(Left(DelHTML(qryNews.fields("Testo")),50)&"...")%>
    </font>
    </td>
    </tr>
    </table>
    <hr/>
    <%
    qrynews.MoveNext
    Wend
    %>
    </td>
    </tr>
    </table>
    </marquee>

    bredasys.com

    GRAZIE a chi mi sa dare una mano...!


  • User

    @lucco78 said:

    Utilizzo un "marquee" come riquadro delle NEWS, ora vorrei fare in modo che andando sopra al testo delle NEWS col PUNTATORE DEL MOUSE lo scorrimento delle news si FERMI?

    ecco il codice e di seguito il link alla pagina:

    <marqueedataformatas="html"scrollamount="1"scrolldelay="30"direction="up"loop="infinite"
    height="360">
    <tableborder="0">
    <tr>
    <td>
    <hr/>
    <%
    While Not qryNews.EOF
    %>
    <tablewidth="100%"border="0"cellspacing="3"cellpadding="0"bgcolor="#F9F9F7">
    <tr>
    <tdwidth="14%"height="27"align="center">
    <%If Not IsNull(ImageFile(qryNews.Fields.Item("IMG1").Value)) Then%>
    <imgsrc='<%="/NewsIMG/" & ImageFile(qryNews.Fields.Item("IMG1").Value)%>'height="40"
    alt="<%=ImageDesc(qryNews.Fields.Item("IMG1").Value)%>">
    <%End If%>
    </td>
    <tdwidth="86%"align="left"valign="top"height="27">
    <fontface="Arial, Helvetica, sans-serif"size="1">
    <center>
    <i>
    <%response.write(qryNews.fields("Dal"))%>
    </i>
    </center>
    </font><fontface="Arial, Helvetica, sans-serif"size="1"><ahref="news/<%=qryNews.Fields("PAGINA")&"?IDN=" & qryNews.Fields("IDNews")&"&L="&qryNews.Fields("Lingua")%>">
    <fontface="Verdana, Arial, Helvetica, sans-serif">
    <%response.write(DelHTML(qryNews.fields("Titolo")))%>
    </font></a><fontface="Verdana, Arial, Helvetica, sans-serif"></font></font>
    </td>
    </tr>
    <tralign="left"valign="top">
    <tdwidth="14%"height="27"align="center">
    <%If Not IsNull(ImageFile(qryNews.Fields.Item("IMG2").Value)) Then%>
    <imgsrc='<%="/NewsIMG/" & ImageFile(qryNews.Fields.Item("IMG2").Value)%>'height="40"
    alt="<%=ImageDesc(qryNews.Fields.Item("IMG2").Value)%>">
    <%End If%>
    </td>
    <td>
    <fontsize="1"face="Verdana, Arial, Helvetica, sans-serif">
    <%response.write(Left(DelHTML(qryNews.fields("Testo")),50)&"...")%>
    </font>
    </td>
    </tr>
    </table>
    <hr/>
    <%
    qrynews.MoveNext
    Wend
    %>
    </td>
    </tr>
    </table>
    </marquee>

    bredasys.com

    GRAZIE a chi mi sa dare una mano...!

    Ciao,

    puoi usare i metodi stop e start dell'oggetto marquee con appositi eventi onMouseOver e onMouseOut

    ad esempio:

    <marquee dataformatas="html" scrollamount="1" scrolldelay="30" direction="up" loop="infinite" height="360" id="scorrevole">

    <tableborder="0" onMouseOver="scorrevole.stop()" onMouseOut="scorrevole.start()">
    </table>

    </marquee>

    Bye 🙂