I
IC
Hi -
I have a question about the following code:
<script>
document.write('<span id="outter" style="position:relative;">');
document.write("<object
classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0'
id=fscommand width=200 height=60><param name=movie
value='x.swf'><param name=quality value='high'></object>");
document.write('<div id="inner"
style="position:absolute;left:-1px;top:60px;overflow:hidden;width=200px;height=240">');
function SHOW() {
document.all.inner.style.visibility = "visible";
document.all.inner.innerHTML = '<object
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
id=fscommand width="200" height="240"><param name=movie
value="y.swf?"><param name=wmode value="trasparent"><PARAM
NAME=bgcolor VALUE="#FFFFFF"><param name=quality
value="high"></object>'
}
function HIDE() {
document.all.inner.style.visibility = "hidden";
}
document.write('</div>');
document.write('</span>');
</script>
In the above code x.swf would load. When you click on x.swf, y.swf
would appear below it (i.e. like a dropdown). I want to make a
change, so that the dropdown swf does not appear all at once. Rather
it starts to appear from the top until, after a few seconds, the
entire dropdown is visible. I think this can be down by dynamically
changing and increasing the div styles height value. For example, you
click on x.swf and the style height goes from 1 to 240. When you
close the div, the height would go from 240 to 0. Hopefully, this
makes sense to someone out there.
Thanks for your help in advance.
-E
I have a question about the following code:
<script>
document.write('<span id="outter" style="position:relative;">');
document.write("<object
classid='clsid27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0'
id=fscommand width=200 height=60><param name=movie
value='x.swf'><param name=quality value='high'></object>");
document.write('<div id="inner"
style="position:absolute;left:-1px;top:60px;overflow:hidden;width=200px;height=240">');
function SHOW() {
document.all.inner.style.visibility = "visible";
document.all.inner.innerHTML = '<object
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
id=fscommand width="200" height="240"><param name=movie
value="y.swf?"><param name=wmode value="trasparent"><PARAM
NAME=bgcolor VALUE="#FFFFFF"><param name=quality
value="high"></object>'
}
function HIDE() {
document.all.inner.style.visibility = "hidden";
}
document.write('</div>');
document.write('</span>');
</script>
In the above code x.swf would load. When you click on x.swf, y.swf
would appear below it (i.e. like a dropdown). I want to make a
change, so that the dropdown swf does not appear all at once. Rather
it starts to appear from the top until, after a few seconds, the
entire dropdown is visible. I think this can be down by dynamically
changing and increasing the div styles height value. For example, you
click on x.swf and the style height goes from 1 to 240. When you
close the div, the height would go from 240 to 0. Hopefully, this
makes sense to someone out there.
Thanks for your help in advance.
-E