Am I missing something or could you not just use onresize??<br><br>Like:<br>window.onresize=function() { /* do stuff */ }<br><br><a href="http://www.w3schools.com/htmldom/event_onresize.asp">http://www.w3schools.com/htmldom/event_onresize.asp
</a><br><br><br><br><div><span class="gmail_quote">On 1/15/07, <b class="gmail_sendername">Guillaume</b> <<a href="mailto:javascript@webdesignofficina.com">javascript@webdesignofficina.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Stefan, Paul, and all others who haven't replied yet...<br><br>Here's my function below re-aranged according to your replies...<br>I still don't understand why, when checkOptSli() is called, I always get the else statement... Not being able
<br>to compare an initial value to a listened one...<br><br>Can someone please light up the path a bit...<br><br>Regards,<br><br>Guillaume.<br><br><br>function checkOptSli() { // This is fired when a user clicks a link<br>
<br> var sto2 = 0;<br><br> sto2ID = setTimeout("checkOptJ();", 2000);<br><br>}<br><br>function checkOptJ() {<br><br> var optsh0 = checkOptK;<br><br> optsh3 = optsh0;// Initial value (offsetHeight) of element
<br><br> var optsh1 = 0;<br><br> var optsh1ID = setTimeout("checkOptL();", 2000);<br><br> optsh4 = optsh1ID;// Value to be listened to and compared to the previous one above<br><br> if ( optsh4 > optsh3 ) {
<br><br><br><br> alert( "things have moved" );<br><br> }<br><br><br><br> else {<br><br><br><br> alert( "quiet" );<br><br><br><br><br><br> }<br><br><br>
<br> }<br><br><br><br> function checkOptK(){ // Fired on the onload so we have a value as starting point<br><br> var opts1 = document.getElementById("options");<br><br> moveBy1 = opts1.offsetHeight;<br>
<br> posTn3 = 0 - moveBy1;<br><br> parseInt( posTn3 );<br><br> return posTn3;<br><br> }<br><br><br> function checkOptL(){ // Looped inside a setTimeout to see if this value is changing...<br> // And compare it inside the checkOptJ()function to the checkOptK()resulting value
<br><br> var opts2 = document.getElementById("options");<br><br> moveBy2 = opts2.offsetHeight;<br><br> posTn4 = 0 - moveBy2;<br><br> parseInt( posTn4 );<br><br> return posTn4;<br><br> }
<br><br>_______________________________________________<br>Javascript mailing list<br><a href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</a><br><a href="https://lists.LaTech.edu/mailman/listinfo/javascript">https://lists.LaTech.edu/mailman/listinfo/javascript
</a><br></blockquote></div><br>