On Wed, 07 Apr 2004 16:04:41 GMT, Jeff North
<jn****@yourpan tsbigpond.net.a u> wrote:
On Wed, 07 Apr 2004 10:44:33 -0400, in
comp.infosyste ms.www.authoring.stylesheets endus <do**@email.inv alid>
wrote:
change your script to:
------------------------------
<script type="text/vbscript">
<!--
Sub DivChange (yesnobox, layername)
Dim strObjName
strObjName = "document.MainF orm." & yesnobox & ".value"
If eval(strObjName ) = "No" Then
document.getEle mentById(layern ame).style.disp lay = "block"
Elseif eval(strObjName ) = "Yes" then
document.getEle mentById(layern ame).style.disp lay = "none"
End If
End Sub
-->
</script>
------------------------------
---------------------------------------------------------------
jn****@yourpan tsbigpond.net.a u : Remove your pants to reply
---------------------------------------------------------------
You, my friend, are the MAN. Thanks so much for the quick reply.
Note to posterity: the double quotes around the none or block are
essential!
Woohoo, it finally works!
-- endus -- at -- endus -- dot -- com --
Not knowing what you want out of life is a pattern in itself,
perhaps the most rigid pattern of all. As a matter of fact
it's probably the most predominant pattern in the country
today, and just another name, in the long run, for what we
call the "American way of life". You are in a large and
very crowded boat, floating around aimlessly and complacently
in a very treacherous sea. At times I seriously regret that
I've divorced myself so completely from that pattern. Life
is much simpler that way, and very often much more pleasant.
-Hunter S. Thompson