|
|
|
|
How To Create A One Page Website Using JQuery !Author: David Drewette Is it possible to create a one page website? One that can provide relevant information on your chosen topic and yet still be lightweight and easy to write AND feature well in the search engines? Well the answer is undoubtedly yes! And here’s where I will tell you how. We’ll go through the entire site step by step. 1. Get jquery at www.jquery.com! What is jquery? Jquery is a super-lightweight multi-functional javascript library which allows you complete control over every aspect of your web pages (CSS and HTML). It’s a simple include that you provide in your web page… eg. ““ Check out the jquery.com website to get more details, but for the time begin, just understand that we need this to dynamically “call in” content to our one page site. 2. Get a template for your site! Try http://www.freecsstemplates.org/ for some great free web templates. Pick a template you like and create the file index.html. 3. Create your content area A line of code something like… is required in the middle of your page. This is where jquery will place your content. 4. Create small files to hold your content. You’ll need to create files that will hold your content in basic HTML format. For example, aboutus.html may contain… About Us WebCom Systems has been in the internet business 5. Create a menu to call in the content Now this is where the jquery magic begins! We now need a simple menu to drive the website. First we need a javascript function to call from our menu, here it is… ““ So, your menu that call this javascript function should look a bit like this… About Us So there we have it! You can now add as many content files as you like and add them to your menu! Easy eh? Now to complete the whole setup, remember to
And there you have it, a one page website! Please feel free to visit my company website at http://www.webcomsystems.biz to see a working example of this.
Article Source: http://www.articlesbase.com/web-design-articles/the-one-page-website-how-to-create-a-one-page-website-using-jquery-749985.html About the Author: Related Posts Comments |