Small javascript to auto-adjust height of same class DIVs
$30-100 USD
Færdiggjort
Slået op næsten 18 år siden
$30-100 USD
Betales ved levering
We need a tiny Javascript that lets you find all divs with the same class name on a page and then automatically adjusts the height of all Divs to the height of the DIV with the largest height by setting a class name in a function. The divs could be anywhere on the page and not necessarily in a parent div. The script needs to update if the text size in the browser is increased or decreased. Using css with display:table etc will not work in this case. Needs to be cross browser compatible. Thanks. eg. function tag: equaldiv('columnset1')
## Deliverables
html source:
<div>
<div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><div>
<div class="columnset1"><p>long text<p><p>long text<p></div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p></div>
</div>
<div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p><p>long text<p></div>
<div class="columnset1"><p>long text<p></div>
</div>
</div>
<div>
<div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><p>long text<p><div>
<div class="columnset1"><p>long text<p><p>long text<p><p>long text<p><p>long text<p></div>
<div class="columnset1"><p>long text<p></div>
</div> </div>
## Platform
JavaScript Cross browser compatible,
Internet Explorer, FireFox, Opera, Netscape, Safari
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased.