Cita:
mi pregunta es si en el filepath<script type="text/javascript" src="js/switchcheckout.js" ></script>
<style type="text/css">
.handcursor{
cursor:hand;
cursor:pointer;
}
</style>
<h3 id="joecontent1-title" class="handcursor">What is JavaScript?</h3>
<p id="joecontent1" class="switchgroup2">
</p>
<script type="text/javascript">
var example=new switchcontent("switchgroup2", "p")
contents to just "p" elements
example.setStatus('[open] ', '[closed] ')
example.setColor('green', 'red')
example.collapsePrevious(false)
simultanously
example.setPersist(false)
example.defaultExpanded(0,1)
example.setContent(0, 'prueba.htm')
content
example.init()
</script>
<style type="text/css">
.handcursor{
cursor:hand;
cursor:pointer;
}
</style>
<h3 id="joecontent1-title" class="handcursor">What is JavaScript?</h3>
<p id="joecontent1" class="switchgroup2">
</p>
<script type="text/javascript">
var example=new switchcontent("switchgroup2", "p")
contents to just "p" elements
example.setStatus('[open] ', '[closed] ')
example.setColor('green', 'red')
example.collapsePrevious(false)
simultanously
example.setPersist(false)
example.defaultExpanded(0,1)
example.setContent(0, 'prueba.htm')
content
example.init()
</script>
Cita:
en vez de buscar una web externa pueda seleccionar un texo que se encuentra en la misma pagina o algun codigo php igualmente que se encuentra en la misma pagina example.setContent(0, 'prueba.htm')