none
Problemas com o coinslider e o IE RRS feed

  • Pergunta

  • Opa a todos,

    Pessoal tou usando o CoinSlider para gerar um banner em um site que esta funcionando legal mas somente no IE e em qualquer versao dele assim que você carrega a pagina ele mostra as imagens do coinslider uma abaixo da outra e nao executa o script. ai se vc atualizar a pagina ele carrega normalmente e executa o script.

    Alguem sabe o que ta acontecendo?

    Obrigado

    <%@ Page Title="" Language="VB" MasterPageFile="~/mp2012-01.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">    
        <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="js/fancybox/jquery.mousewheel-3.0.6.pack.js"></script>
        <link rel="stylesheet" href="js/fancybox/jquery.fancybox.css?v=2.1.0" type="text/css" media="screen" />
        <script type="text/javascript" src="js/fancybox/jquery.fancybox.pack.js?v=2.1.0"></script>
    <script type="text/javascript" src="js/CoinSlider/coin-slider.min.js"></script>
        <link rel="stylesheet" href="js/CoinSlider/coin-slider-styles.css" type="text/css" />
    	
        <script language="javascript" type="text/javascript">
            $(document).ready(function () {
                $(".cotacao").fancybox({
                    maxWidth: 640,
                    maxHeight: 600,
                    fitToView: false,
                    width: '70%',
                    height: '70%',
                    autoSize: false,
                    closeClick: false,
                    openEffect: 'elastic',
                    closeEffect: 'elastic'
                });
                $(".textos").fancybox({
                    maxWidth: 500,
                    maxHeight: 400,
                    fitToView: false,
                    width: '70%',
                    height: '70%',
                    autoSize: false,
                    closeClick: false,
                    openEffect: 'elastic',
                    closeEffect: 'elastic'
                });
    
                $("#bannersLancamentos").coinslider({
                    width: 723,
                    height: 300,
                    navigation: true,
                    delay: 5000
                });           
            });
    	</script>
    
        <style type="text/css">
            .style1
            {
                width: 100%;
            }
        </style>
    </asp:Content>
    
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server" Visible="True">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div id="outdoor">		
                    <table width="723" border="0" cellspacing="0" cellpadding="0">
    			        <tr>
    			            <td width="723" height="300" >
                                <div id='bannersLancamentos'>
                                    <%--<a href="img01_url" target="_blank">
    		                            <img src='images/1.jpg' />
    		                            <span>Description for img01</span>
    	                            </a>--%>                                 
          <asp:Label ID="lblBanners" runat="server" Text=""></asp:Label>                            
                                </div>
                            </td>
    		            </tr>
    		        </table>
    </div>
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
            
            Dim dados As New efDados        
    
            Dim bannersLancamentos As New List(Of banners)
            Dim regrasBanners As New regrasBanners
            bannersLancamentos = regrasBanners.listaBanners(1, True)        
            If bannersLancamentos.Count > 0 Then
                lblBanners.Text = ""
                For Each itens In bannersLancamentos
                    lblBanners.Text += String.Format("<a href='{0}' target=''><img src='{1}' /></a>" + Chr(13), itens.link, testeLancamento(itens.arquivo))
                Next
            End If        
    
        End Sub

    terça-feira, 27 de novembro de 2012 10:43

Respostas