All pastes #405678 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-21 21:42 UTC
rendered paste body
<html>
	<head>
		<!--
		<link rel="stylesheet" type="text/css" href="./yui/tabview/assets/tabview.css">
		<link rel="stylesheet" type="text/css" href="./yui/tabview/assets/border_tabs.css">	
		<script type="text/javascript" src="./yui/yahoo/yahoo-debug.js"></script>
		<script type="text/javascript" src="./yui/yahoo-dom-event/yahoo-dom-event-debug.js"></script>
		<script type="text/javascript" src="./yui/element/element-beta-debug.js"></script>
		<script type="text/javascript" src="./yui/connection/connection-debug.js"></script>
		<script type="text/javascript" src="./yui/tabview/tabview-debug.js"></script>
		<script type="text/javascript" src="./yui/event/event-debug.js"></script>
		<script type="text/javascript" src="./yui/dom/dom-debug.js"></script>
-->

<!-- Dependencies -->
<!-- core CSS -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.0/build/tabview/assets/tabview.css">

<!-- optional skin for border tabs -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.2.0/build/tabview/assets/border_tabs.css">

<script type="text/javascript" src="http://yui.yahooapis.com/2.2.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.2.0/build/element/element-beta-min.js"></script>

<!-- OPTIONAL: Connection (required for dynamic loading of data) -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.2.0/build/connection/connection-min.js"></script>

<!-- Source file -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.2.0/build/tabview/tabview-min.js"></script>


		<script type="text/javascript">
			function go(){
	    myTabs = new YAHOO.widget.TabView("demo");
		
	    myTabs.addTab( new YAHOO.widget.Tab({
	        label: 'Tab One Label',
	        content: '<p>Tab One Content</p>',
	        active: true
	    }));
	    
	    myTabs.addTab( new YAHOO.widget.Tab({
	        label: 'Tab Two Label',
	        content: '<p>Tab Two Content</p>'
	    }));
	    
	    myTabs.addTab( new YAHOO.widget.Tab({
	        label: 'Tab Three Label',
	        content: '<p>Tab Three Content</p>'
	    }));
	    
	    myTabs.appendTo(document.body);
	  }
		</script> 
	</head>
	
	<body onload="go()">
	</body>
</html>