|
|
#1 (permalink) |
![]() Fecha de Ingreso: enero-2008
Mensajes: 372
|
Ayuda con control tab en css
|
|
|
|
|
|
#2 (permalink) |
![]() |
Re: Ayuda con control tab en css
como que no?
<ul id="tab_group_one"> <li><a href="#one">One</a></li> <li><a href="#two">Two</a></li> </ul> <div id="one"><p>I am the content for tab one.</p></div> <div id="two"><p>I am the content for tab two.</p></div> <script> new Control.Tabs('tab_group_one'); </script> Esta en la misma pagina :P |
|
|
|
|
|
#3 (permalink) |
|
Colaborador
![]() ![]() ![]() ![]() Fecha de Ingreso: noviembre-2005
Ubicación: San Juan
Mensajes: 3.630
|
Re: Ayuda con control tab en css
también ten en cuenta que necesitas la librería prototype para que los tabs funcionen.
__________________
Por fin.. tengo algo parecido a un blog Sólo espero escribir un artículo algún dia... |
|
|
|
|
|
#4 (permalink) |
![]() Fecha de Ingreso: enero-2008
Mensajes: 372
|
Re: Ayuda con control tab en css
Mi codigo esta asi pero no funciona a esto me refiero como utilizo correctamente el scritp
Cita:
<html>
<body> <script src="control.tabs.2.1.1.js" type="text/javascript"></script> <script src="prototype.js" type="text/javascript"></script> <ul id="tab_group_one"> <li><a href="#one">One</a></li> <li><a href="#two">Two</a></li> </ul> <div id="one"><p>I am the content for tab one.</p></div> <div id="two"><p>I am the content for tab two.</p></div> <script> new Control.Tabs('tab_group_one'); </script> </body> </html> |
|
|
|
|
|
#5 (permalink) |
|
Colaborador
![]() ![]() ![]() ![]() ![]() ![]() Fecha de Ingreso: octubre-2006
Ubicación: A tu espalda
Mensajes: 3.436
|
Re: Ayuda con control tab en css
Si te bajas estos dos archivos:
http://livepipe.net/downloads/control.tabs.2.0.0.RC2.js http://livepipe.net/scripts/prototype.js y guardas este html en la misma carpeta:
Cita:
te debería funcionar sin problema.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Prueba</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="prototype.js"></script> <script src="control.tabs.2.0.0.RC2.js"></script> </head> <body> <ul id="tabs_example_one" class="subsection_tabs"> <li><a class="active" href="#one">One</a></li> <li><a href="#two">Two</a></li> </ul> <div style="" id="one"><p>This is the simplest example of a set of tabs.</p></div> <div style="display: none;" id="two"><p>Note that the styling for the tabs is done with CSS, not the Control.Tabs script.</p></div> <script> new Control.Tabs('tabs_example_one'); </script> </body> </html> Mikel. |
|
|
|