Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript not working on IE
    primarykey
    data
    text
    <p>I have the follow code, which when hovering over an element, will show a div, and hide on mouseout. This works fine on every browser, except IE, here's my code; </p> <pre><code>// JavaScript Document 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 &amp;&amp; baseopacity==0) document.getElementById("tabledescription").innerHTML="" } function cleartimer(){ if (window.highlighting) clearInterval(highlighting) } function gradualfade(cur2){ if (browserdetect=="mozilla" &amp;&amp; cur2.style.MozOpacity&lt;1) cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99) else if (browserdetect=="ie" &amp;&amp; cur2.filters.alpha.opacity&lt;100) cur2.filters.alpha.opacity+=20 else if (window.highlighting) clearInterval(highlighting) } //&lt;![CDATA[ $(window).load(function(){ $(".tiptext").mouseover(function() { $(this).children(".description").show(); }).mouseout(function() { $(this).children(".description").hide(); }); });//]]&gt; </code></pre> <p>Here is the HTML for one of the elements (each element's a picture) ;</p> <pre><code>&lt;div id="one"&gt; &lt;div class="tiptext"&gt;&lt;a href="http://mathremake.site40.net/"&gt;&lt;img src="../images/web/1.png" height="180" width="300"/&gt;&lt;/a&gt; &lt;div class="description"&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;u&gt;Ascension Math Page&lt;/u&gt;&lt;/font&gt;&lt;font size="2" face="Arial, Helvetica, sans-serif"&gt;&lt;br&gt;Ascension Collegiate's Mathematics department web page.&lt;/br&gt;&lt;/font&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And the CSS for the same element;</p> <pre><code>#one { top: 200px; position: absolute; width: 300px; position: absolute; left: 50%; margin-left: -500px; } </code></pre> <p>All help is appreciated, Thanks. :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload