Post by rich357 on Mar 21, 2009 0:06:26 GMT -5
Seems like all the scripting I want to try just don't work for me.
I try it in standard html it works fine. Convert to RB. Nuthin.
The script I want to use can be found at:
dynamicdrive.com/dynamicindex17/switchcontent.htm
All I'm interested in is "Demo 1".
In the line where it reads "code.setStatus", I removed the references to the images as I have no need of them.
In essence, this creates an expanding tree thing.
I try it in standard html it works fine. Convert to RB. Nuthin.
The script I want to use can be found at:
dynamicdrive.com/dynamicindex17/switchcontent.htm
All I'm interested in is "Demo 1".
In the line where it reads "code.setStatus", I removed the references to the images as I have no need of them.
In essence, this creates an expanding tree thing.
head " <script type='text/javascript' src='public/switchcontent.js' >
</script>
<style type='text/css'>
.handcursor{
cursor:hand;
cursor:pointer;
}
</style>"
html "
<h3 id='state1-title' class='handcursor'>Alabama</h3>
<div id='state1' class='switchgroup1'>
JavaScript is a scripting language originally developed by Netscape to add interactivity
and power to web documents. It is purely client side, and runs completely on the client's browser and computer.
</div>
<h3 id='state2-title' class='handcursor'>Alaska</h3>
<div id='state2' class='switchgroup1'>
Java is completely different from JavaScript.
The former is a compiled language while the later is a scripting language.
</div>
<h3 id='state3-title' class='handcursor'>Arizona</h3>
<div id='state3' class='switchgroup1'>
DHTML is the embodiment of a combination of technologies- JavaScript, CSS, and HTML.
Through them a new level of interactivity is possible for the end user experience.
</div>
<script type='text/javascript'>
var code=new switchcontent('switchgroup1', 'div')
code.setStatus(' ', ' ')
code.setColor('darkred', 'black')
code.setPersist(true)
code.collapsePrevious(true)
code.init()
</script>"