SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict Jonny's Avatar
    Join Date
    Mar 2003
    Location
    Norwich, UK
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Going out of my mind over IE6!

    Hi

    I'm having some trouble with a project (http://www.urbaneblinds.co.uk/) - IE6 just seems to be completely defying me. I have two basic issues:

    1. I'm using a number of images which utilise .png transparency. To make this work in IE6, I'm using the fix I found here: http://homepage.ntlworld.com/bobosola/pngtestfixed.htm. There example works fine and I've copied it exactly, but for some reason on my page I have no joy.

    2. I'm using the suckerfish technique to create dropdown menus. Again, this works fine without javascript in the likes of Firefox, but IE6 needs a little help in order to 'play ball'. The javascript for this is in subnav.js (css can be found in nav.css) but for some reason isn't working.

    Can anyone help?

    Many thanks.

  2. #2
    SitePoint Zealot
    Join Date
    Feb 2006
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1) Use Sleight instead: http://www.youngpup.net/projects/sleight/
    2) Read Son of Suckerfish article and use their code: http://www.htmldog.com/articles/suckerfish/dropdowns/

  3. #3
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why Sleight? It's relying on the user agent string and the code is so oldschool. I would go with pngfix.htc instead. It relies on the behavior property set in your css, an .htc and a blank .gif. Very reliable.

  4. #4
    SitePoint Member
    Join Date
    Feb 2008
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jonny,
    There is a problem with the function init()
    Code:
    <body onload="init()">
    Internet explorer has an issue with the following statement in the rotateImage function (starts at line 68 in slides.js);

    Code:
    function rotateImage(place) {
    	var new_image = getNextImage();
    	document[place].src = new_image;
    	var recur_call = "rotateImage('"+place+"')";
    	timerID = setTimeout(recur_call, interval);
    
    	var ssarray = new_image.split("/");
    	var last = ssarray.pop();
    	var sslink = last.replace(".gif", "");
    	resetLinkColours();
    	document.getElementById(sslink).firstChild.className='slideon';
    	hideArticleText();
    	var articleid = sslink.replace("main-image", "");
    	document.getElementById('article'+articleid).style.display='block';
    }
    I hope this helps.

    Cheers,
    YMas

  5. #5
    SitePoint Addict Jonny's Avatar
    Join Date
    Mar 2003
    Location
    Norwich, UK
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've tried a number of PNG transparency fixes but for some reason nothing's working!? I've never had this problem before - any idea what I'm doing wrong?

  6. #6
    SitePoint Member
    Join Date
    Feb 2008
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jonny,
    In addition to error above (to see it, look at the IE&#174; status bar [bottom left corner]), your page does not pass W3C CSS Validation. There is one error.

    The fixes are not being applied - that's why they appear not to be working.

    These errors must be fixed first.

    Regards,
    YMas

  7. #7
    SitePoint Addict Jonny's Avatar
    Join Date
    Mar 2003
    Location
    Norwich, UK
    Posts
    272
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi YMas - the javascript error you refer to is caused by the slideshow which you should see running on the right hand side. For some reason this won't work at present outside of Firefox, however I don't believe this to have any bearing on the other issues.

    The CSS error is simply because the PNG.htc fix is not standards compliant when applied in the CSS, validation won't influence its ability to work - that is my understanding anyway.

    Thanks for your help nonetheless.


Bookmarks

Posting Permissions

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