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 9 of 9
  1. #1
    New Coder
    Join Date
    May 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    why is Mozilla such a giant peice of SH*T

    goddamnit. i've been working on this code for three ****ing days now and i keep getting slapped left and right with browser incompatibilities.

    here's the code:
    Code:
    <script type="text/javascript">
    
    var menuKeys = new Array();
    var menuVals = new Array();
    
    var menuArray = new Array();
    var lastOpen="default";
    
    menuKeys = [["Don't talk to me.","No really, I mean it.","Do you want to get hurt?"],["I don't GIVE A ****","SHUT THE **** UP","GET THE **** OUT OF MY LIFE"],["GOD","****ING","DAMNIT"]];
    menuVals = [["Hello!","Dolly","Why Hello!"],["Dolly","Its so nice","to have you back"],["where","you","belong"]];
    function constructMenu() {
    
             for (var item=0; item < menuKeys.length; item++) {
                    var subMenuList = document.createElement("ul");
                    for (var subitem=0; subitem < menuKeys[item].length; subitem++) {
                            var sublist = document.createElement("li");
                            var sublink = document.createElement("a");
                            sublink.setAttribute("href",menuVals[item][subitem]);
                            var node = document.createTextNode(menuKeys[item][subitem]);
                            sublink.appendChild(node);
                            sublist.appendChild(sublink);
                            subMenuList.appendChild(sublist);
                            }
                    var subMenu = subMenuList.appendChild(subMenuList);
                    menuArray.push(subMenu);
                    }
             }
    
    function expand(TagID) {
             if (lastOpen !="default") {
                    menuTag.removeChild(menuArray[lastOpen]);
                    }
             menuTag = document.getElementById(TagID);
             menuTag.appendChild(menuArray[TagID]);
             lastOpen = TagID;
    
             }
    
    
    </script>
    
    <body onload="constructMenu()">
    
    <ul Id="menu">
    
    <li id="0" onmouseover="expand(0);" />Well hello there!
    <li id="1" onmouseover="expand(1);" />My name is John!
    <li id="2" onmouseover="expand(2);" />What is your name?
    </ul>
    
    </body>
    somebody tell me where the hell i ****ed up. works PERFECTLY with IE6, not at all with Mozilla ****fox, and not at all with windows xp service **** 2

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your problem may lie in the fact that you are using digits for your ID's... Although Names and ID's may contain digits, the first character must not be a digit....

    <li id="0" onmouseover="expand(0);" />Well hello there!

    Try something like:
    <li id="menu_0" onmouseover="expand(0);" />Well hello there!

    menuTag = document.getElementById('menu_'+TagID);

    .....Willy

    BTW: Please refrain from such colorful language...
    There are many younger viewers which visit these forums...

  • #3
    New Coder
    Join Date
    May 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    doesnt work. mozilla is a POS. but then again IE can be a POS. why the hell dont browsers work PROPERLY. if we want browsers to be W3C compliant why dont they make javascript and css and such things PLUGINS that can be updated regularly, like flash and shockwave? that way all a browser has to do is load the plugin and be ready to go. that way we wouldnt have all these bull**** problems

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You are probably too stupid to implement my suggestion properly.... I gather this from your utter lack of ability to take a hint and tone down your use of expletives....

    If you code for a living you should perhaps look into getting a job as a bathroom attendant at a football stadium...

    Have a nice day;
    .....Willy

  • #5
    New Coder
    Join Date
    May 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    actually i implemented your code properly, your stupid *** didnt even test the code for yourself to see if it even worked, did you? why dont you pull your head out of your *** retard.

    i havent recieved much **** for help from faggots such as yourself anyways. you dumb ****s just throw an answer out there and dont even care if its right or wrong.

    and guess what dip****, the forums FILTER OUT THE OFFENSIVE WORDs. so if you have a ****ing problem with asterisks then you shouldnt even be on the internet in the first place.

    stick a **** up your ****ing **** ****** *** hole *****

    btw: whoever owns the forums obviously doesnt find "goddamnit" to be offensive, so if any of you niggers can't handle it, get on a different ****ing forum
    Last edited by mrtanooki; 09-14-2004 at 12:06 AM.

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Obviously you are so ignorant, you are too stupid to recognize if you implemented my suggestion properly.... Here, this may explain your problem in words you should be able to understand....

    ......Willy

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    mrtanooki, read the forums rules, rule 1.1. Also, the posting guidelines number 4 might give you a clue.

    We are all volunteers here, doing our best to help. Being rude is no way to behave in such a community. You were warned about your language in the first reply, and still you keep at it... That is not something we appreaciate.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #8
    New Coder
    Join Date
    May 2004
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    eat **** and die asshole. i have better things to do than put up with your bull****. this is my last post.

    may satan have mercy on your worthless souls

  • #9
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    So some people are idiots. On that educational note, this thread is closed.


  •  

    Posting Permissions

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