Announcement

Collapse
No announcement yet.

muiltiple pages on one page(tabs)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • muiltiple pages on one page(tabs)

    I want my page to hold quite a bit of content and dont really want a lot of scrolling to be necessary so I thought about using tabs to do this - simlar to http://www.authenticjobs.com/ - but dosnt have to be as advanced, i'll be happy with a more basic tab structure.....but how do I do it?


    PS thanks to the guys who have been so helpful upto now and thanks in advance for this. Hope I can return the favor some day:D

  • #2
    Re: muiltiple pages on one page(tabs)

    I have finnaly found what I want

    Using a website slider can be a BAD IDEA. But if you have good reason, here are some QUICK and EASY ways to add a slider to your website.


    But I dont quite understand how to add it in my website, I have downloaded the provided link (and fialed to input that) so I opted for a seemingly easier option, from this page

    Using a website slider can be a BAD IDEA. But if you have good reason, here are some QUICK and EASY ways to add a slider to your website.


    and tried to input example 1. I put it into the HTML box, previewed it my browser and only saw this:

    $().ready(function() {
    • Tab1
    • Tab2
    • Tab3

    $('#coda-slider-1').codaSlider();
    });

    The tabs were set as links but were inactive. How do I turn the above into what is shown on NDoherty blog?

    Comment


    • #3
      Re: muiltiple pages on one page(tabs)

      I downloaded this and it's not that hard. you first need to enter this into the head of your page on bv page properties under the between head tag,

      Code:
      <script src="jquery-1.2.1.pack.js" type="text/javascript"></script>
      	<script src="jquery-easing.1.2.pack.js" type="text/javascript"></script>
      	<script src="jquery-easing-compatibility.1.2.pack.js" type="text/javascript"></script>
      	<script src="coda-slider.1.1.1.pack.js" type="text/javascript"></script>
      
      	<script type="text/javascript">
      		jQuery(window).bind("load", function() {
      			jQuery("div#slider1").codaSlider()
      			// jQuery("div#slider2").codaSlider()
      			// etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
      		});
      	</script>
      Then take this script that you will need to edit to your word and liking. and place it into a html box on your page and size the box accordingly.

      Code:
      <h2>Coda-Slider 1.1.1</h2>
      	
      <noscript>
      	<p>Unfortunately your browser does not hava JavaScript capabilities which are required to exploit full functionality of our site. This could be the result of two possible scenarios:</p>
      	<ol>
      		<li>You are using an old web browser, in which case you should upgrade it to a newer version. We recommend the latest version of <a href="http://www.getfirefox.com">Firefox</a>.</li>
      		<li>You have disabled JavaScript in you browser, in which case you will have to enable it to properly use our site. <a href="http://www.google.com/support/bin/answer.py?answer=23852">Information on enabling JavaScript</a>.</li>
      	</ol>
      </noscript>
      
      <div class="slider-wrap">
      	<div id="slider1" class="csw">
      		<div class="panelContainer">
      		
      			<div class="panel" title="Panel 1">
      				<div class="wrapper">
      					<h3>Panel 1</h3>
      					<p>Coda-Slider v1.1 by Niall Doherty.</p>
      					<p>For info and usage instructions please see <a href="http://www.ndoherty.com/coda-slider/">ndoherty.com</a></p>
      					<p>Sed eu ligula eget eros vulputate tincidunt. Etiam sapien urna, auctor a, viverra sit amet, convallis a, enim. Nullam ut nulla. Nam laoreet massa aliquet tortor. Mauris in quam ut dui bibendum malesuada. Nulla vel erat. Pellentesque metus risus, aliquet eget, eleifend in, ultrices vitae, nisi. Vivamus non nulla. Praesent ac lacus. Donec augue turpis, convallis sed, lacinia et, vestibulum nec, lacus. Suspendisse feugiat semper nunc. Donec nisl elit, varius sed, sodales volutpat, commodo in, elit. Proin ornare hendrerit lectus. Sed non dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis suscipit. Mauris egestas tincidunt lectus. Phasellus sed quam et velit laoreet pretium. Nunc metus.</p>
      					<p><a href="#5" class="cross-link" title="Go to Panel 5">&#171; Previous</a> | <a href="#2" class="cross-link" title="Go to Panel 2">Next &#187;</a></p>
      				</div>
      			</div>
      			<div class="panel" title="Panel 2">
      				<div class="wrapper">
      					<h3>Panel 2</h3>
      					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus porta tortor sed metus. Nam pretium. Sed tempor. Integer ullamcorper, odio quis porttitor sagittis, nisl erat tincidunt massa, eu eleifend eros nibh sollicitudin est. Nulla dignissim. Mauris sollicitudin, arcu id sagittis placerat, tellus mauris egestas felis, eget interdum mi nibh vel lorem. Aliquam egestas hendrerit massa. Suspendisse sed nunc et lacus feugiat hendrerit. Nam cursus euismod augue. Aenean vehicula nisl eu quam luctus adipiscing. Nunc consequat justo pretium orci. Mauris hendrerit fermentum massa. Aenean consectetuer est ut arcu. Aliquam nisl massa, blandit at, accumsan sed, porta vel, metus. Duis fringilla quam ut eros.</p>
      					<p>Sed eu ligula eget eros vulputate tincidunt. Etiam sapien urna, auctor a, viverra sit amet, convallis a, enim. Nullam ut nulla. Nam laoreet massa aliquet tortor. Mauris in quam ut dui bibendum malesuada. Nulla vel erat. Pellentesque metus risus, aliquet eget, eleifend in, ultrices vitae, nisi. Vivamus non nulla. Praesent ac lacus. Donec augue turpis, convallis sed, lacinia et, vestibulum nec, lacus. Suspendisse feugiat semper nunc. Donec nisl elit, varius sed, sodales volutpat, commodo in, elit. Proin ornare hendrerit lectus. Sed non dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis suscipit. Mauris egestas tincidunt lectus. Phasellus sed quam et velit laoreet pretium. Nunc metus.</p>
      					<p><a href="#1" class="cross-link" title="Go to Panel 1">&#171; Previous</a> | <a href="#3" class="cross-link" title="Go to Panel 3">Next &#187;</a></p>
      				</div>
      			</div>		
      			<div class="panel" title="Panel 3">
      				<div class="wrapper">
      					<h3>Panel 3</h3>
      					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus porta tortor sed metus. Nam pretium. Sed tempor. Integer ullamcorper, odio quis porttitor sagittis, nisl erat tincidunt massa, eu eleifend eros nibh sollicitudin est. Nulla dignissim. Mauris sollicitudin, arcu id sagittis placerat, tellus mauris egestas felis, eget interdum mi nibh vel lorem. Aliquam egestas hendrerit massa. Suspendisse sed nunc et lacus feugiat hendrerit. Nam cursus euismod augue. Aenean vehicula nisl eu quam luctus adipiscing. Nunc consequat justo pretium orci. Mauris hendrerit fermentum massa. Aenean consectetuer est ut arcu. Aliquam nisl massa, blandit at, accumsan sed, porta vel, metus. Duis fringilla quam ut eros.</p>
      					<p>Sed eu ligula eget eros vulputate tincidunt. Etiam sapien urna, auctor a, viverra sit amet, convallis a, enim. Nullam ut nulla. Nam laoreet massa aliquet tortor. Mauris in quam ut dui bibendum malesuada. Nulla vel erat. Pellentesque metus risus, aliquet eget, eleifend in, ultrices vitae, nisi. Vivamus non nulla. Praesent ac lacus. Donec augue turpis, convallis sed, lacinia et, vestibulum nec, lacus. Suspendisse feugiat semper nunc. Donec nisl elit, varius sed, sodales volutpat, commodo in, elit. Proin ornare hendrerit lectus. Sed non dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis suscipit. Mauris egestas tincidunt lectus. Phasellus sed quam et velit laoreet pretium. Nunc metus.</p>
      					<p><a href="#2" class="cross-link" title="Go to Panel 2">&#171; Previous</a> | <a href="#4" class="cross-link" title="Go to Panel 4">Next &#187;</a></p>
      				</div>
      			</div>
      			<div class="panel" title="Panel 4">
      				<div class="wrapper">
      					<h3>Panel 4</h3>
      					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus porta tortor sed metus. Nam pretium. Sed tempor. Integer ullamcorper, odio quis porttitor sagittis, nisl erat tincidunt massa, eu eleifend eros nibh sollicitudin est. Nulla dignissim. Mauris sollicitudin, arcu id sagittis placerat, tellus mauris egestas felis, eget interdum mi nibh vel lorem. Aliquam egestas hendrerit massa. Suspendisse sed nunc et lacus feugiat hendrerit. Nam cursus euismod augue. Aenean vehicula nisl eu quam luctus adipiscing. Nunc consequat justo pretium orci. Mauris hendrerit fermentum massa. Aenean consectetuer est ut arcu. Aliquam nisl massa, blandit at, accumsan sed, porta vel, metus. Duis fringilla quam ut eros.</p>
      					<p>Sed eu ligula eget eros vulputate tincidunt. Etiam sapien urna, auctor a, viverra sit amet, convallis a, enim. Nullam ut nulla. Nam laoreet massa aliquet tortor. Mauris in quam ut dui bibendum malesuada. Nulla vel erat. Pellentesque metus risus, aliquet eget, eleifend in, ultrices vitae, nisi. Vivamus non nulla. Praesent ac lacus. Donec augue turpis, convallis sed, lacinia et, vestibulum nec, lacus. Suspendisse feugiat semper nunc. Donec nisl elit, varius sed, sodales volutpat, commodo in, elit. Proin ornare hendrerit lectus. Sed non dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis suscipit. Mauris egestas tincidunt lectus. Phasellus sed quam et velit laoreet pretium. Nunc metus.</p>
      					<p><a href="#3" class="cross-link" title="Go to Panel 3">&#171; Previous</a> | <a href="#5" class="cross-link" title="Go to Panel 5">Next &#187;</a></p>
      				</div>
      			</div>
      			<div class="panel" title="Panel 5">
      				<div class="wrapper">
      					<h3>Panel 5</h3>
      					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus porta tortor sed metus. Nam pretium. Sed tempor. Integer ullamcorper, odio quis porttitor sagittis, nisl erat tincidunt massa, eu eleifend eros nibh sollicitudin est. Nulla dignissim. Mauris sollicitudin, arcu id sagittis placerat, tellus mauris egestas felis, eget interdum mi nibh vel lorem. Aliquam egestas hendrerit massa. Suspendisse sed nunc et lacus feugiat hendrerit. Nam cursus euismod augue. Aenean vehicula nisl eu quam luctus adipiscing. Nunc consequat justo pretium orci. Mauris hendrerit fermentum massa. Aenean consectetuer est ut arcu. Aliquam nisl massa, blandit at, accumsan sed, porta vel, metus. Duis fringilla quam ut eros.</p>
      					<p>Sed eu ligula eget eros vulputate tincidunt. Etiam sapien urna, auctor a, viverra sit amet, convallis a, enim. Nullam ut nulla. Nam laoreet massa aliquet tortor. Mauris in quam ut dui bibendum malesuada. Nulla vel erat. Pellentesque metus risus, aliquet eget, eleifend in, ultrices vitae, nisi. Vivamus non nulla. Praesent ac lacus. Donec augue turpis, convallis sed, lacinia et, vestibulum nec, lacus. Suspendisse feugiat semper nunc. Donec nisl elit, varius sed, sodales volutpat, commodo in, elit. Proin ornare hendrerit lectus. Sed non dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis suscipit. Mauris egestas tincidunt lectus. Phasellus sed quam et velit laoreet pretium. Nunc metus.</p>
      					<p><a href="#4" class="cross-link" title="Go to Panel 4">&#171; Previous</a> | <a href="#1" class="cross-link" title="Go to Panel 1">Next &#187;</a></p>
      				</div>
      			</div>
      			
      		</div><!-- .panelContainer -->
      	</div><!-- #slider1 -->
      </div><!-- .slider-wrap -->
      
      <p id="cross-links">
      	Same-page cross-link controls:<br />
      	<a href="#1" class="cross-link">Panel 1</a> | <a href="#2" class="cross-link">Panel 2</a> | <a href="#3" class="cross-link">Panel 3</a> | <a href="#4" class="cross-link">Panel 4</a> | <a href="#5" class="cross-link">Panel 5</a>
      </p>
      this code has all the info on your pages.

      Then you need a css file lol ok this is the one they used.

      Code:
      	<style type="text/css">
      		
      		* { margin: 0; padding: 0 }
      		/* I've used a hard CSS reset above, but you should consider a more sophisticated reset, such as this one: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */
      		
      		p { text-align: left; margin: 15px 0 }
      		
      		p, ul { font-size: 13px; line-height: 1.4em } 
      		
      		p a, li a { color: #39c; text-decoration: none }
      		
      		p.intro { border-bottom: 1px solid #ccc; margin-bottom: 20px; padding: 20px 0 30px 0; text-align: center; width: 100% }
      		
      		p#cross-links { text-align: center }
      		
      		p#cross-links { border-bottom: 1px solid #ccc; margin-bottom: 30px; padding-bottom: 30px }
      		
      		noscript p, noscript ol { color: #a00; font-size: 13px; line-height: 1.4em; text-align: left }
      		noscript a { color: #a00; text-decoration: underline }
      		noscript ol { margin-left: 25px; }
      		
      		a:focus { outline:none }
      		
      		img { border: 0 }
      		
      		h3 { border-bottom: 1px solid silver; margin-bottom: 5px; padding-bottom: 3px; text-align: left }
      		
      		body {
      			font-family: Verdana, Arial;
      			background: #ebebeb url("images/body-bg.png") repeat-y center;
      			color: #000;
      			width: 800px;
      			margin: auto;
      			text-align: center;
      			padding-bottom: 20px;
      		}
      		
      		.stripViewer .panelContainer .panel ul {
      			text-align: left;
      			margin: 0 15px 0 30px;
      		}
      		
      		.slider-wrap { /* This div isn't entirely necessary but good for getting the side arrows vertically centered */
      			margin: 20px 0;
      			position: relative;
      			width: 100%;
      		}
      
      		/* These 2 lines specify style applied while slider is loading */
      		.csw {width: 100%; height: 460px; background: #fff; overflow: scroll}
      		.csw .loading {margin: 200px 0 300px 0; text-align: center}
      
      		.stripViewer { /* This is the viewing window */
      			position: relative;
      			overflow: hidden; 
      			border: 5px solid #000; /* this is the border. should have the same value for the links */
      			margin: auto;
      			width: 700px; /* Also specified in  .stripViewer .panelContainer .panel  below */
      			height: 460px;
      			clear: both;
      			background: #fff;
      		}
      		
      		.stripViewer .panelContainer { /* This is the big long container used to house your end-to-end divs. Width is calculated and specified by the JS  */
      			position: relative;
      			left: 0; top: 0;
      			width: 100%;
      			list-style-type: none;
      			/* -moz-user-select: none; // This breaks CSS validation but stops accidental (and intentional - beware) panel highlighting in Firefox. Some people might find this useful, crazy fools. */
      		}
      		
      		.stripViewer .panelContainer .panel { /* Each panel is arranged end-to-end */
      			float:left;
      			height: 100%;
      			position: relative;
      			width: 700px; /* Also specified in  .stripViewer  above */
      		}
      		
      		.stripViewer .panelContainer .panel .wrapper { /* Wrapper to give some padding in the panels, without messing with existing panel width */
      			padding: 10px;
      		}
      		
      		.stripNav { /* This is the div to hold your nav (the UL generated at run time) */
      			margin: auto;
      		}
      		
      		.stripNav ul { /* The auto-generated set of links */
      			list-style: none;
      		}
      		
      		.stripNav ul li {
      			float: left;
      			margin-right: 2px; /* If you change this, be sure to adjust the initial value of navWidth in coda-slider.1.1.1.js */
      		}
      		
      		.stripNav a { /* The nav links */
      			font-size: 10px;
      			font-weight: bold;
      			text-align: center;
      			line-height: 32px;
      			background: #c6e3ff;
      			color: #fff;
      			text-decoration: none;
      			display: block;
      			padding: 0 15px;
      		}
      		
      		.stripNav li.tab1 a { background: #60f }
      		.stripNav li.tab2 a { background: #60c }
      		.stripNav li.tab3 a { background: #63f }
      		.stripNav li.tab4 a { background: #63c }
      		.stripNav li.tab5 a { background: #00e }
      		
      		.stripNav li a:hover {
      			background: #333;
      		}
      		
      		.stripNav li a.current {
      			background: #000;
      			color: #fff;
      		}
      		
      		.stripNavL, .stripNavR { /* The left and right arrows */
      			position: absolute;
      			top: 230px;
      			text-indent: -9000em;
      		}
      		
      		.stripNavL a, .stripNavR a {
      			display: block;
      			height: 40px;
      			width: 40px;
      		}
      		
      		.stripNavL {
      			left: 0;
      		}
      		
      		.stripNavR {
      			right: 0;
      		}
      		
      		.stripNavL {
      			background: url("images/arrow-left.gif") no-repeat center;
      		}
      		
      		.stripNavR {
      			background: url("images/arrow-right.gif") no-repeat center;
      		}
      		
      	</style>
      now you can save that code as a style.css and link to it in the page or do like i did and popped the code into the START OF PAGE tab in page properties.

      Hope that help you.
      Demo of the one i done.
      Alien Dude Solutions

      Comment


      • #4
        Re: muiltiple pages on one page(tabs)

        Cool....thanks for your help on that. Think I will get some sleep before having a go though, my brain is fried now!!!!!

        one more question though, does that CSS file have to be saved seperatly? Ive seen youve said put it in start of page tab in page properties, but will that effect the other items on that page?

        Comment


        • #5
          Re: muiltiple pages on one page(tabs)

          Sorry about that previous stupid question.....I really was tired. Ive done everthing that you've said do. But ive ended up with somthing that resembles an inline frame (I think thats what its called)[IMG]file:///C:/DOCUME%7E1/COMPAQ%7E1/LOCALS%7E1/Temp/moz-screenshot.png[/IMG], you basically have to scroll down to see panels 1 to 5. Ive managed to change the text (i know thats simple), I thought it might not be displaying correctly because of my browser (IE so I downloaded Firefox.....still the same problem. Any ideas on what I could have missed?

          Comment


          • #6
            Re: muiltiple pages on one page(tabs)

            Did upload all the .js files and the image folder to your server that came with the script.

            I have zipped the bv page that i made HERE unzip and load into bluevoda you can check it out.
            Alien Dude Solutions

            Comment


            • #7
              Re: muiltiple pages on one page(tabs)

              No I didnt do anything with the Js files....I will give that a try now. But the demo you sent me was also the same on my screen, could it be the way my browser is set up????

              Comment


              • #8
                Re: muiltiple pages on one page(tabs)

                Nope the script needs the .js files to work. upload those to the same place your page is also the image folder and you should find it works.
                Alien Dude Solutions

                Comment

                Working...
                X