<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : showDropDown</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : showDropDown]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 07 Apr 2026 00:51:55 +0000</pubDate>
  <lastBuildDate>Tue, 14 Aug 2007 12:11:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=23897</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[showDropDown : UPDATE REGARDING RTE.The RTE &amp;#039;Font...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126503.html#126503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 14&nbsp;August&nbsp;2007 at 12:11pm<br /><br /><font color="#ff0000"><font size="4">UPDATE REGARDING RTE.<br><br><font color="#000000"><font size="2">The RTE 'Font Size', 'Font Type' buttons and colour pallette drop downs are also offset if you use a container DIV.<br><br><b>RTE_javascript.asp <br><br></b><font face="Courier New, Courier, mono" size="2">Line 226<br>&nbsp;&nbsp;&nbsp; <b>var mOffsetContainer = document.getElementById('<font color="#ff0000">container</font>')<br>&nbsp;&nbsp;&nbsp; mOffsetC = mOffsetContainer.offsetLeft;</b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document.getElementById(iframeWin).style.left = getOffsetLeft(buttonElement)<b>- mOffsetC</b> + 'px';<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document.getElementById(iframeWin).style.top = (getOffsetTop(buttonElement) + buttonElement.offsetHeight) + 'px';<br><br><font face="Verdana, Arial, Helvetica, sans-serif">The bold bits are what I inserted 'container' is the name of the container DIV.</font><br></font></font></font></font></font>]]>
   </description>
   <pubDate>Tue, 14 Aug 2007 12:11:16 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126503.html#126503</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : Nice, i&amp;#039;ll give this a go...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126332.html#126332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=12748">Mikey</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 10&nbsp;August&nbsp;2007 at 12:35am<br /><br />Nice, i'll give this a go later and report back&nbsp;<img src="https://forums.webwiz.net/smileys/smiley20.gif" border="0" alt="Thumbs%20Up" />]]>
   </description>
   <pubDate>Fri, 10 Aug 2007 00:35:11 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126332.html#126332</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : UPDATE!I&amp;#039;ve devised a better...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126312.html#126312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 09&nbsp;August&nbsp;2007 at 7:15pm<br /><br /><b><font color="#ff0000">UPDATE!</font><br><br></b>I've devised a better solution!<br><br>Simply work out the distance of your container DIV from the left of the body.<br><br>Here is the edit I made to 'function ShowDropDown'... this works for me, where my container DIV is called 'containername'.<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; var mOffsetContainer = document.getElementById('containername')<br>&nbsp;&nbsp;&nbsp; mOffsetC = mOffsetContainer.offsetLeft;<br>&nbsp;&nbsp;&nbsp; dropDownElement.style.left = (getOffsetLeft(parentElement) - offSetRight - mOffsetC) + 'px';<br>&nbsp;&nbsp;&nbsp; dropDownElement.style.top = (getOffsetTop(parentElement) + parentElement.offsetHeight - 3) + 'px';<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Thu, 09 Aug 2007 19:15:03 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126312.html#126312</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : I&amp;#039;m still no further forward...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126093.html#126093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 05&nbsp;August&nbsp;2007 at 11:03pm<br /><br />I'm still no further forward on it myself, but the site is coming together and it needs sorting.<br><br>so, I have two options.... <br><br>place a DIV around every single place that I need a popup and position the popup absolutley...<br><br>or.. carry on thinking about it...<br><br>I'm no cross browser tag genius or anything but, is there nothing we could do using <b>LayerX</b> and <b>LayerY </b>properties?<br>]]>
   </description>
   <pubDate>Sun, 05 Aug 2007 23:03:02 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126093.html#126093</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : I&amp;#039;m looking into this as...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126091.html#126091</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=12748">Mikey</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 05&nbsp;August&nbsp;2007 at 9:00pm<br /><br />I'm looking into this as well as i always place my forum in a seperate DIV so it slots in with my website.<br><br>Strangley enuff the styling is also all wrong on the links with drop down menus...<br><br>For example... <a href="http://skatenst&#111;ne.co.uk/testforum/default.asp" target="_blank">http://skatenstone.co.uk/testforum/default.asp</a><br>]]>
   </description>
   <pubDate>Sun, 05 Aug 2007 21:00:08 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126091.html#126091</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : Well it turns out it never worked...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post126003.html#126003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 03&nbsp;August&nbsp;2007 at 12:02pm<br /><br />Well it turns out it never worked in IE.&nbsp; I don't have the code anymore but it was something like...<br><br><table width="99%"><tr><td><pre class="BBcode"><br>function getOffsetLeft(elm){<br>&nbsp;&nbsp;&nbsp; var mOffsetLeft = elm.offsetLeft;<br>&nbsp;&nbsp;&nbsp; var mOffsetParent = elm.offsetParent;<br><b>&nbsp;&nbsp;&nbsp; var SecondtoLast;</b><br>&nbsp;&nbsp;&nbsp; while(mOffsetParent){<br><b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  SecondtoLast = mOffsetLeft;</b><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mOffsetLeft += mOffsetParent.offsetLeft ;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mOffsetParent = mOffsetParent.offsetParent;<br>&nbsp;&nbsp;&nbsp; }<br><b>&nbsp;&nbsp;&nbsp; return SecondtoLast;</b><br>}<br></pre></td></tr></table><br><br>anyone any ideas why this wouldn't work in IE? It DOES return the correct value... BUT IE still positions it in relation to the window... not the DIV. (the div is set up correctly, everything I position : absolute;... end up in the top left corner of it, apart from this dropdown. GRRR <img src="https://forums.webwiz.net/smileys/smiley29.gif" border="0" alt="Wacko" /><br><br>]]>
   </description>
   <pubDate>Fri, 03 Aug 2007 12:02:16 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post126003.html#126003</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : could you please either post or...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post125907.html#125907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=23476">odang</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 02&nbsp;August&nbsp;2007 at 12:34pm<br /><br />could you please either post or PM the code to correctly align the dropdowns?&nbsp; I have the exact same issue.]]>
   </description>
   <pubDate>Thu, 02 Aug 2007 12:34:31 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post125907.html#125907</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : Just an update for anyone that...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post125545.html#125545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 26&nbsp;July&nbsp;2007 at 6:16pm<br /><br />Just an update for anyone that may have a similar problem...<br><br>I solved this by adding some lines to getOffsetLeft(elm) and getOffsetTop(elm).&nbsp; The problem was that my site is surrounded by DIVs, and I needed the position from the element to the DIV, not from the elemnet to the BODY tag.<br><br>I included some new variables in the loop which adds up the distance, they are to store the two previous results given, then to pass the oldest result back to 'showDropDown'.<br><br>a messy way of doing it... but I couldn't think of a way to stop:<b><br>&nbsp;&nbsp;&nbsp; while(mOffsetParent){<br><br></b>two loops before it became a null value.<br><br><br>]]>
   </description>
   <pubDate>Thu, 26 Jul 2007 18:16:09 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post125545.html#125545</guid>
  </item> 
  <item>
   <title><![CDATA[showDropDown : I&amp;#039;m having some trouble with...]]></title>
   <link>https://forums.webwiz.net/showdropdown_topic23897_post125244.html#125244</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19173">Hydrogen</a><br /><strong>Subject:</strong> 23897<br /><strong>Posted:</strong> 23&nbsp;July&nbsp;2007 at 6:16pm<br /><br />I'm having some trouble with this both in IE and Firefox.<br><br>Whenever the drop down menu is called the pop-up is always a long way to the right, and futher down than it should be...<br><br>My entire forum is contained in a container DIV which is positioned relatively.&nbsp; But looking at the showDropDown script, it should work I thought.<br><br><font face="Courier New, Courier, mono">(getOffsetLeft(parentElement)</font> and <font face="Courier New, Courier, mono">(getOffsetLeft(parentElement) <font face="Verdana, Arial, Helvetica, sans-serif">both return the correct position of the link that calls the script, yet the pop-ups are placed in odd places.<br><br>any ideas?<br><br></font></font><br>]]>
   </description>
   <pubDate>Mon, 23 Jul 2007 18:16:59 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/showdropdown_topic23897_post125244.html#125244</guid>
  </item> 
 </channel>
</rss>