Function die_fucking_ie_die in my template header?!

Discussion in 'Blogging' started by robibrk, Jun 25, 2008.

  1. #1
    I found this in my wp template header:

    <script type="text/javascript">

    function die_fucking_ie_die()
    {
    var myId;

    if (navigator.appName.indexOf("Microsoft")!=-1) {
    myId = document.getElementById("menu-left");
    if (myId) {
    myId.style.width = "200px";
    }


    myId = document.getElementById("content");
    if (myId) {
    myId.style.width = "570px";
    }

    }
    }



    </script>

    What a hell is this function function die_fucking_ie_die?
     
    robibrk, Jun 25, 2008 IP
  2. codebreaker

    codebreaker Well-Known Member

    Messages:
    281
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    you better delete that function.It makes your site to look bad in Ie browser.
     
    codebreaker, Jun 25, 2008 IP
  3. pipes

    pipes Prominent Member

    Messages:
    12,766
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #3
    Where did you get the theme from?
     
    pipes, Jun 25, 2008 IP
  4. Spawny

    Spawny Well-Known Member

    Messages:
    252
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #4
    the author must have really IE to name his function that way..LOL

    looks like an IE fix to me
     
    Spawny, Jun 25, 2008 IP
  5. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You should contact the author of the theme. Theme creators are in the best position to fix this bug.
     
    Bohol, Jun 25, 2008 IP
  6. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #6
    I think the theme author was pissed off at IE's browser bugs when coding that into the theme. Most likely it fixes an IE bug so that the theme displays properly in all browsers. (In other words, it's just a normal part of web design.)

    Funny stuff :)
     
    MTbiker, Jun 25, 2008 IP
  7. robibrk

    robibrk Well-Known Member

    Messages:
    1,115
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #7
    robibrk, Jun 25, 2008 IP
  8. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #8
    that's exactly what it is...we WP themers and XHTML designers hate IE because we always have to find fixes for that stupid piss poor browser so that our work is cross-browser compatible:rolleyes:
     
    arwen54, Jun 25, 2008 IP
  9. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #9
    OK well the function works out if the user is using Microsoft Internet Explorer, if this is the case it then:

    Changes the width of the element menu-left to 200px
    Changes the width of the element content to 570px

    That's all it does, it isn't anything bad probably you will have to view it and see if these widths are correct or not.
    The other problem is it requires the user to have JS installed, which is likely but the odd person may have it disabled.
     
    wd_2k6, Jun 25, 2008 IP
  10. dancingintherain

    dancingintherain Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Loool, now that was the funniest thing that I've heard about functions:eek:
     
    dancingintherain, Jun 25, 2008 IP
  11. David Pankhurst

    David Pankhurst Member

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    David Pankhurst, Jun 28, 2008 IP
  12. ZDavis

    ZDavis Peon

    Messages:
    124
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yup, it's a code fix. Nothing to worry about. Just a programmer being mad that he or she has to do things special for IE. It happens to all of us.
     
    ZDavis, Jun 29, 2008 IP
  13. bogtab

    bogtab Peon

    Messages:
    553
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Lol, that's awesome.
     
    bogtab, Jun 29, 2008 IP