Skip to main content

Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Anything Slider Help, Change Animation to Fade #66635

    andieevans
    Member

    Just a quick observation:

    in ie8 the fade does not happen, the images just flick from one to another.

    Cheers

    in reply to: using ‘id’ to reference an object #66510

    andieevans
    Member

    OK, this was fun… I have finally solved my problem

    to reference the id of an element, use .attr(‘id’)

    here is the code that allows the accordion to ‘remember’ which section to show on page refresh/change

    Code:
    $(document).ready(function($) {

    var iShow = 0;
    var j = $(‘#accordion dd’).length -1;
    var i = 0;

    iShow = parseInt($.session(“eq”))-1;

    $(‘#accordion dd’).hide();
    $(‘#accordion dd’).eq(iShow).show();

    $(‘#accordion dt a’).click(function(){

    for (i=0; i< =j; i++) { if ($('#accordion dt a').eq(i).attr('id') == this.id) { //For some reason, the session object doesn't like 0, so I add 1 to the results here // and take it away when I am storing it in my iShow variable. $.session("eq",i+1); } } $('#accordion dd').slideUp(); $(this).parent().next().slideDown(); return false; }); });

    have fun!

in reply to: CSS Firefox works excellent IE shows blank page! #65941

andieevans
Member

Just took a look in Chrome and IE8 and both worked fine.

Viewing 3 posts - 1 through 3 (of 3 total)
icon-link icon-logo-star icon-search icon-star