<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>CSS Javascript properties syntax | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>07/10/04, 192 53 2004 2004:%i:1089503581 19:53:01</pubDate>
  <lastBuildDate>06/07/13, 158 37 2013 2013:%i:1370594269 04:37:49</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Jwmpc  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1072</link>
    <description><![CDATA[I've been over the &quot;Scripting the Box&quot; feature, which was a great help understanding how javascript can dynamically affect CSS boxes, but I'm a little unclear on how these properties are accessed in a function.<br /><br />For example the box property of &quot;background&quot; which can have color, position, etc., becomes &quot;backgroundColor&quot; or &quot;backgroundPosition&quot; etc.<br /><br />If you intended to change the absolute position of a block, would the property be listed as &quot;positionAbsolute&quot;? The intended effect is to have a black box move gradually to the right uncovering elements underneath that can select things. A pseudo-scroll you might call it.<br /><br />So my first question would be is &quot;positionAbsolute&quot; the correct way to call this property in javascript (ie, mybox.style.positionAbsolute = &quot;50,100&quot;<img src="/images/emoticons/wink.png" class="smiley" />? Or am I hopelessly confusing the syntax?<br /><br />The second question: Is there is a reference that gives the box property spellings and how they relate between the two? I checked the general CSS and Javascript references, but of course they speak only generally of box properties for either subject, and not how they might relate.<br /><br />I realize that I might be overthinking this, as exact values imply absolute ones, but if you have some experience with this, I'd appreciate your help. I posted this here, rather than in &quot;scripting&quot; because I don't want to know how to do the scripting, just the translation from CSS to Javascript.<br />]]></description>
    <pubDate>07/10/04, 192 53 2004 2004:%i:1089503581 19:53:01</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1072</guid>
   </item>
     <item>
    <title>Joe Gillespie said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1073</link>
    <description><![CDATA[The full explanation of the DOM (Document Object Model) can be found here <a href="http://www.mozilla.org/docs/dom/domref/dom_shortTOC.html">http://www.mozilla.org/docs/dom/domref/dom_shortTOC.html</a> but for what you are trying to do, you don't need to change the absolute position. The div is set to be absolute in your main CSS definitions, from there, you only need to change the top or left attributes.<br /><br /><br />function moveBox(x,y)<br />{<br /> if (document.getElementById)<br /> &nbsp; &nbsp;{<br /> &nbsp; &nbsp;var theBox = document.getElementById(&quot;box&quot<img src="/images/emoticons/wink.png" class="smiley" />;<br /> &nbsp; &nbsp;theBox.style.left=x+&quot;px&quot;;<br /> &nbsp; &nbsp;theBox.style.top=y+&quot;px&quot;;<br /> &nbsp; &nbsp;}<br />}]]></description>
    <pubDate>07/11/04, 193 34 2004 2004:%i:1089534862 04:34:22</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1073</guid>
   </item>
     <item>
    <title>Jwmpc  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1074</link>
    <description><![CDATA[Thanks! That was what I needed to know (on both questions). ]]></description>
    <pubDate>07/11/04, 193 08 2004 2004:%i:1089554894 10:08:14</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/css_javascript_properties_syntax/#p1074</guid>
   </item>
   </channel>
</rss