Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simulate the resize of a table

Status
Not open for further replies.

cedivad

Vendor
Jul 23, 2002
14
GB
I've a serious question to you.

It's possible to simulate the resize of a table in the same way

as it happens with frames

for me it's a required the compatibilty only with IE>=5,5 && NS 6 ||>
 
Use this:
[tt]
<script>
function changeDims(elemName, w, h)
{
document.getElementById(elemName).style.width = w;
document.getElementById(elemName).style.height = h;
}
</script>

. . .

<table id=&quot;first&quot;>
. . .
<a href=&quot;#&quot; onclick=&quot;changeDims('first', 300, 100)&quot;>change elem1 size</a>
[/tt]
This work in Opera, IE5+ and Mozilla, but not eaxctly the same.
 
it's good but i wont to simulate the risize in the same way

as it happens with frames. ex.. ondrag ???
tnx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top