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 15 of 15
  1. #1
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE vs FF(coding differences)

    So i have a javascript & css code that i used for a menu, the menu runs like it should in firefox. when i load it in internet explorer it does load the menu but it wont show the discription on the mouseover script. Why is that? it's so GD! annoying

  • #2
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    I'm not sure there is anything we can do to address your problem unless we can see code..

    (not that I am able to deal with JavaScript anyhow; maybe if you post your code or, preferably, a link, one of the JS experts will decide to help you...)

    All the best
    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #3
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my website, http://shadowfox.1111mb.com/ShadowFox_Home.html
    in the menu, at the bottom, there's suppose to be a discription that shows up, it will show up in firefox but not in internet explorer i'll copy the code and highlight the area i'm talking about

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to validate your page first before we can be assured that its a js error and not an html coding error.

    http://validator.w3.org/check?verbos...wFox_Home.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <!-- START OF SCRIPT --><SCRIPT LANGUAGE="JavaScript">


    function setVariables() {
    if (document.layers) {
    v=".top=";
    dS="document.";
    sD="";
    y="window.pageYOffset";
    }
    else if (document.all){
    v=".pixelTop=";
    dS="";
    sD=".style";
    y="document.body.scrollTop";
    }
    else if (document.getElementById){
    y="window.pageYOffset";
    }
    }
    function checkLocation() {
    object="object1";
    yy=eval(y);
    if (document.getElementById)
    document.getElementById("object1").style.top=yy
    else
    eval(dS+object+sD+v+yy)
    setTimeout("checkLocation()",10);
    }
    </script>
    <div id="object1" style="Z-INDEX: 5; LEFT: 0px; POSITION: absolute; TOP: 0px"><!--HighlightMenuScrip--><!-- START OF SCRIPT --><style type="text/css">


    #coolmenu{
    border: 1px solid white;
    width: 170px;
    background-color: #74aff6;
    }

    #coolmenu a{
    font: bold 13px Verdana;
    padding: 2px;
    padding-left: 4px;
    display: block;
    width: 100%;
    color: White;
    text-decoration: none;
    border-bottom: 1px solid white;
    }

    html>body #coolmenu a{
    width: auto;
    }

    #coolmenu a:hover{
    background-color: #8182f5;
    color: white;
    }

    #tabledescription1{
    width: 100%;
    height: 3em;
    padding: 2px;
    filter:alpha(opacity=0);
    -moz-opacity:0;
    }</style><script type="text/javascript">

    // Fading routine based on Dynamic Drive script: http://www.dynamicdrive.com/dynamici...hlightgrad.htm
    // This notice must stay intact for use

    var baseopacity=0

    function showtext(thetext){
    if (!document.getElementById)
    return
    textcontainerobj=document.getElementById("tabledescription")
    browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
    instantset(baseopacity)
    document.getElementById("tabledescription").innerHTML=thetext
    highlighting=setInterval("gradualfade(textcontainerobj)",50)
    }

    function hidetext(){
    cleartimer()
    instantset(baseopacity)
    }

    function instantset(degree){
    if (browserdetect=="mozilla")
    textcontainerobj.style.MozOpacity=degree/100
    else if (browserdetect=="ie")
    textcontainerobj.filters.alpha.opacity=degree
    else if (document.getElementById && baseopacity==0)
    document.getElementById("tabledescription").innerHTML=""
    }

    function cleartimer(){
    if (window.highlighting) clearInterval(highlighting)
    }

    function gradualfade(cur2){
    if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
    cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
    else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=20
    else if (window.highlighting)
    clearInterval(highlighting)
    }

    </script>
    <div id="coolmenu"><font color="#0000ff"><font face="Comic Sans MS" color="#8182f5">
    <h3>Main Menu</h3>
    </font><a onmouseover="showtext('Learn about this site')" onmouseout="hidetext()" href="SF_About.html"><font color="#0000ff">About</font></a> <a onmouseover="showtext('Learn about the book I am writing')" onmouseout="hidetext()" href="UntitledFrameset-1.htm"><font color="#0000ff">My Book</font></a> <a onmouseover="showtext('Veiw all my e-mail address, I have more than 1')" onmouseout="hidetext()" href="SF_Emails.html"><font color="#0000ff">Contact ME</font></a> <a onmouseover="showtext('My Blog! Random Facts and Other random things!')" onmouseout="hidetext()" href="SF_Blog.html"><font color="#0000ff">My Blog</font></a> <a onmouseover="showtext('Contact Me If you like my work or have a question')" onmouseout="hidetext()" href="SF_Design.html"><font color="#0000ff">My Design Address</font></a> <font face="Comic Sans MS" color="#8182f5">
    <h4>My Links</h4>
    </font><a onmouseover="showtext('Chat Site, Way better than myspace')" onmouseout="hidetext()" href="http://www.myyearbook.com"><font color="#0000ff">My Yearbook</font></a> <a onmouseover="showtext('Zenhex Forums, created by Zen a webdesign genious')" onmouseout="hidetext()" href="http://www.zenhex.com"><font color="#0000ff">Zenhex Forums</font></a> <a onmouseover="showtext('Mail server, way better than yahoo, better features and less spam')" onmouseout="hidetext()" href="http://mail.google.com"><font color="#0000ff">Gmail (Google Mail)</font></a> <a onmouseover="showtext('Good freeware only site to download software for pc')" onmouseout="hidetext()" href="http://www.freeware4pc.com"><font color="#0000ff">Freeware 4 Pc</font></a> <a onmouseover="showtext('Good site to get trial software some freeware')" onmouseout="hidetext()" href="http://download.cnet.com"><font color="#0000ff">CNet Downloads</font></a>
    <div id="tabledescription"></div>
    <<on the table description, it's suppose to do the function "showtext()" but it doesn't show up in IE it's driving me nuts

  • #6
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    You need to validate your page first before we can be assured that its a js error and not an html coding error.

    http://validator.w3.org/check?verbos...wFox_Home.html
    um yeah, well i just modified it, at first it didn't have the basic tags, html, title, head, body. but i fixed it, it's not html problem it is javascript. and if it's going to take all that to make it work just forget i asked, i'll leave it alone. the freakin validator gave me 19 errors, but i don't care about them cause the script loads in firefox which is the main browser i use on my own computer
    Last edited by Shadowfox.web; 12-13-2006 at 05:23 PM.

  • #7
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Why did you post this in the HTML forum, then?

    And please read the Rules and Posting Guidelines before starting a new thread. Specifically, these points:

    2) Type in a subject that summarizes your question- A great way to turn off other members wanting to help you is to type an incomplete or silly subject for your post. Examples of poor subject titles include:

    - "Help!"
    - "I'm a newbie...be gentle"
    - "How can I..."
    - "Urgent...deadline tomorrow!"

    The above subjects either have absolutely nothing to do with the question itself, or are grossly incomplete (ie: "How can I..."). When asking for help, enter a subject that summarizes your question, period! Don't use silly, incomplete, or "bait" subjects. Some examples of good titles are:

    - "How do I round a number to 2 decimal places using JavaScript?"
    - "What's the difference between require() and include() in PHP?"
    - "Can someone suggest a good, free HTML editor?"

    3) Be descriptive and articulate when asking your question- When posting, understand that you're trying to convince others to help you. Be articulate and have respect for the English language! Some important guidelines on this:

    - Always do a quick check for spelling/grammar mistakes, both in your subject and post itself.
    - Format your question and code in an easily legible manner. Use the preview button often.
    - Be concise and articulate as much as possible.

  • #8
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by Shadowfox.web View Post
    um yeah, well i just modified it, at first it didn't have the basic tags, html, title, head, body. but i fixed it, it's not html problem it is javascript. and if it's going to take all that to make it work just forget i asked, i'll leave it alone. the freakin validator gave me 19 errors, but i don't care about them cause the script loads in firefox which is the main browser i use on my own computer
    Hello Shadowfox.web,
    _Aerospace_Eng_ really is trying to help you. Without a doctype and validating your code you can't seriously expect different browsers to render your page the same. If all you want to write for is firefox that's fine but you just alienated about 75% (don't really know how many people use IE) of the people on the web.

    Anyway, I was looking for a project this morning and I recognized your menu from one I had done a while back. Totally js free. Have a look at it athttp://www.nopeople.com/shadow/coolmenu.html
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #9
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rmedek View Post
    Why did you post this in the HTML forum, then?

    And please read the Rules and Posting Guidelines before starting a new thread. Specifically, these points:
    sorry, i didn't realize

  • #10
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello Shadowfox.web,
    _Aerospace_Eng_ really is trying to help you. Without a doctype and validating your code you can't seriously expect different browsers to render your page the same. If all you want to write for is firefox that's fine but you just alienated about 75% (don't really know how many people use IE) of the people on the web.

    Anyway, I was looking for a project this morning and I recognized your menu from one I had done a while back. Totally js free. Have a look at it athttp://www.nopeople.com/shadow/coolmenu.html
    um yeah, i don't know what it's supposed to do, but it writes text over the bottom part of the menu.

  • #11
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Buttons were next to the float... had to clear them for FF. Oops.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #12
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Buttons were next to the float... had to clear them for FF. Oops.
    hey that's cool, does it work in firefox too? i'm using IE right now, not my own computer, schools, waiting for instructor to get here so i can take a us gov and pols final

  • #13
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    he excavator, can i use that code on my site?

  • #14
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Of course you can, that's why I posted it.

    /*edit- that link to your site is dead...*/
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #15
    New Coder
    Join Date
    Dec 2006
    Location
    Sandy, UT
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Of course you can, that's why I posted it.

    /*edit- that link to your site is dead...*/
    Yeah, kind of noticed, haven't been on here for a while, the company i was with died, so my site died. i very pissed at them. only had it for about 5 days


  •  

    Posting Permissions

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