Whitcraft, Jon
2005-Sep-01 09:38 UTC
[Rails-spinoffs] Finding the width of a div inside a div.
Hello. I have this code. [code] <div style="position:relative;width:800px;height:25px;overflow:hidden;border: 1px solid #000;" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"> <div id="iemarquee" style="position:absolute;left:0px;top:0px"><nobr><font face="Arial">Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm">click here.</a> Enjoy your stay!</font></nobr></div> </div> [/code] And I want to find the width of the inside div, but it always returns 800 unless the width of the inside div is less than 800px. Currently the div is 846px. Do you guys have any suggestions on how I would find the inside length of the div. My test page is here: http://dev2.indycar.com/online/jon/test/ticker.html Thanks, Jon Whitcraft Web Application Developer Online Services - Indianapolis Motor Speedway (317) 492-8623 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050901/fa10611e/attachment.html
Reasonably Related Threads
- ADV: Direct email blaster, email addresses extractor, maillist verify, maillist manager...........
- Direct Email Blaster, Email extractor, email downloader, email verify ...........
- Opera Problem with Autocompleter.Local
- What is "The Rails Way" to do this?
- clean 'marquee / ticker' in js