Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    4jd
    4jd is offline
    New Coder
    Join Date
    Sep 2011
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Why it only works in Firefox?

    Hi All I have a content slider, but it only seems to work in FF and not any of the other browsers. I am using Wordpress but its not a plugin

    This is what I have:
    page.php
    Code:
    <?php if (is_front_page()) { 
    	include ("homepage-slider.php");
    } ?>
    homepage-slider.php
    Code:
    <!--  Inner content DIVs should always carry "contentdiv" CSS class  -->
    <!--  Pagination DIV should always carry "paginate-SLIDERID" CSS class  -->
    <div id="slider1" class="sliderwrapper">
     <div class="contentdiv">
      <div class="home-div1">
       <div class="home-div-logo"></div>
      </div>
     </div>
     <div class="contentdiv">
      <div class="home-div2">
       <span></span>
      </div>
     </div>
     <div class="contentdiv">
      <div class="home-div3">
       <span></span>
      </div>
     </div>
    </div>
    <div id="paginate-slider1" class="pagination" style="display:none;">
    </div>
    
    <script type="text/javascript">
    featuredcontentslider.init({
    	id: "slider1",  //id of main slider DIV
    	contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
    	toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
    	nextprev: ["Previous", "Next"],  //labels for "prev" and "next" links. Set to "" to hide.
    	revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
    	enablefade: [true, 0.2],  //[true/false, fadedegree]
    	autorotate: [true, 4000],  //[true/false, pausetime]
    	onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
    		//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
    		//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
    	}
    })
    </script>
    There are 2 other external files :
    contentslider.js
    contentslider.css

    Click Here to see site.

    If someone could help I would really appreciate it, been bugging me big time.
    Cheers,
    Jay

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    It depends on what precisely do you mean by "it only seems to work in FF". What, exactly, is different?

    For me, as far as I can see, it works the same in all the browsers I have: FF8, IE9, IE8, IE7, Chrome 15, Opera 11 / Win7
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • #3
    4jd
    4jd is offline
    New Coder
    Join Date
    Sep 2011
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks for the reply. But I have sorted it out. Didn't fix my issue, but just got another solution. Thanks anyway for wanting to help out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •