Showing posts with label hobby. Show all posts
Showing posts with label hobby. Show all posts

jQuery simple UI Slider

Thursday, May 26, 2011 0 comments

In this tutorial I’m going to teach you how to construct a simple UI slider using jQuery. It’s very effective and can be used for almost anything. You can slide through text, pictures, videos, etc. So let’s get started!

picprev jQuery Simple UI Slider Tutorial

You’ll first need to set up the HTML and add some basic styling to the content. So within the body of the HTML file, we’ll write:


jQuery Simple UI Slider -- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in metus risus. Donec enim nisi, sollicitudin vel malesuada ac, vehicula at neque. Cum sociis natoque penatibus et magnis dis parturient montes


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in metus risus. Donec enim nisi, sollicitudin vel malesuada ac, vehicula at neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas vulputate nisi quis ante auctor sagittis. Curabitur nisl tortor, tincidunt sagittis luctus ac, consequat sit amet dui. In hac habitasse platea dictumst. Suspendisse potenti.

Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh, Stunning Mesh

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in metus risus. Donec enim nisi, sollicitudin vel malesuada ac, vehicula at neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas vulputate nisi quis ante auctor sagittis. Curabitur nisl tortor, tincidunt sagittis luctus ac, consequat sit amet dui. In hac habitasse platea dictumst. Suspendisse potenti.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque in metus risus. Donec enim nisi, sollicitudin vel malesuada ac, vehicula at neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas vulputate nisi quis ante auctor sagittis. Curabitur nisl tortor, tincidunt sagittis luctus ac, consequat sit amet dui. In hac habitasse platea dictumst. Suspendisse potenti.


This sets up a “main_body” div that contains everything within in. Then it has the “content-slider” div which will be the actual sliding bar. The “content-scroll” div is what will be
controlled by the sliding funtcions we write later in jQuery. And finally the “content-holder” div is simply what contains the plain text that is written; all the paragraphs also have
the same class attributed to them.

Here’s the CSS setup with comments so you can understand what each property does:

* { margin: 0; padding: 0;}
a:focus { outline:none }
html {overflow-y: scroll;}
#main_body { width: 510px; margin: 0 auto; padding-top: 100px; }
/* This is the background of the slider (not the knob you actually move) */
#content-slider {
width: 490px;
height: 6px;
margin: 5px;
background: pink;
position: relative;
}
/* How big the inside of the scrolling box is */
#content-scroll {
width: 500px;
height: 300px;
margin-top: 19px;
overflow: hidden;
border: solid 1px black;
}
/* the width & height of ALL the paragraphs when aligned next to eachother */
#content-holder { width: 2500px; height: 400px; }
/* each paragraph must be "floated left" so it's next to each other paragraph as you slide */
.parag { width: 490px; height: 300px; padding: 5px; float: left; }

So as you can see, we set up a pretty simple base for our content slider. When you open up the HTML file, the content should look like this.

pic1 jQuery Simple UI Slider Tutorial

The reason you only see one of the paragraphs now is because we aligned each paragraph to be floated to the left, and we set each of them to have their own width, so that means
all the other paragraphs are all aligned right next to each other, you just can’t get to them yet.
Since everything seems to be properly aligned, let’s add an actual slider function so that we can slide through all our content.
Aside from the jquery library, we’re going to be using the ui.core and ui.slider libraries to make our sliding effect. So this is how we’re going to set up the javascript in our
HTML file (You may need to download jQuery from their website if you don’t have these libraries).






We now have access to jQuery and the UI part of jQuery, so we can create our slider functions. Put this code within

function slide_change(e, ui) {
var maxScroll = $("#content-scroll").attr("scrollWidth") - $("#content-scroll").width();
$("#content-scroll").animate({scrollLeft: ui.value * (maxScroll / 100) }, 800);
}
function slider_sliding(e, ui) {
var maxScroll = $("#content-scroll").attr("scrollWidth") - $("#content-scroll").width();
$("#content-scroll").attr({scrollLeft: ui.value * (maxScroll / 100) });
}
/* setting the final properties */
$(document).ready(function(){
$("#content-slider").slider({
animate: true,
change: slide_change,
slide: slider_sliding
});
});

The first function, “function slide_change(e, ui)” focuses on the actual changing from one content area to another. The function takes the arguments event & ui, which is why the
e and ui are in parentheses. It sets the variable maxScroll to equal a certain width
by subtracting one width from the other. Then the animate function will allow an animaton to take place when you slide the slider from one point to another. The speed is set to
800 milliseconds. You can change this number to get some different effects.

The second function, “function slider_sliding(e, ui)” focuses on the slider knob you move. This event is triggered by every mouse move during the slide. It syncs up the slider
with the content.

Then we set te final properties. We access “#content-slider” and set it to be our slider. Then we set animations to be true, and its change option is the function “slide_change” and
our slider option comes from the “slider_sliding” function. After the jQuery commands, there’s one more thing left to do, and that’s set up the CSS for the sliding knob.

To access the slider in the CSS, use the class “.ui-slider-handle”. So for this example write up the CSS like so:

.ui-slider-handle {
width: 35px;
height: 14px;
position: absolute; /* this is very important */
top: -4px;
background: purple;
border: solid 1px black;
}

And that’s it you’re done! You can play around a little with the functions and CSS styling to make it look and work exactly how you want it to. Thanks for reading the tutorial
and hopefully learning something new!

Figures & captions

0 comments

HTML doesn't have an element that allows to insert a figure with a caption. It was once proposed (see HTML3), but never made it into HTML4. Here is one way to simulate such a figure element:

Eiffel tower

Scale model of the
Eiffel tower in
Parc Mini-France


Then in the style sheet you use the class "figure" to format the figure the way you want. For example, to float the figure to the right, in a space equal to 30% of the width of the surrounding paragraphs, these rules will do the trick:

div.figure {
float: right;
width: 30%;
border: thin silver solid;
margin: 0.5em;
padding: 0.5em;
}
div.figure p {
text-align: center;
font-style: italic;
font-size: smaller;
text-indent: 0;
}

In fact, only the first two declarations (float and width) are essential, the rest is just for decoration.

How to find a new tech-articles

Saturday, May 21, 2011 0 comments

We live in the future and there are new devices,

 smart gadgets and computers, almost every day of our lives. It can be quite difficult to continue with our daily lives, few of them stay current with technology because we will look to fly past so fast that it all began to blur together. This is one reason to find a great resource for information related to technology is very important for those who live digital. It is very important to not only understand the technology at hand, but the technology will soon be well.

Many tech blogs online has many services that come out every day, it makes as if they share a lot of information. In fact, many times the big tech blogs spend more time cranking out funny little to keep his blog active than they take time to make a real informative post. This is one reason why many consumers are looking for real products low in the IT and gadgets to start looking for new technology stuff, not the blog. This article provides more depth and informative content for the reader. Many times, product review or renewal of other gadgets can be found in the format. This is one of the best ways for those who are thinking of buying a new gadget to get all the information they need to make a decision.

With the help of new technology articles to find what you want is easy. You just need to find sites that offer reliable information and website updates. There are several technology blogs that actually provide a high level of quality information, but they are few and far between. When you find a great source for technology insights you'll be amazed how much information you can find the latest devices, gadgets and technology trends.

Do not pay for a liner technology blog when you can get new technology for in-depth articles provide insider trading tech know how and gadgets you are looking for updates! There are many sources of good news articles technology out there, so take w

Miracle of Number

Friday, May 20, 2011 0 comments

Apparently the number or numbers by using the Indonesian language has a structure or pattern that is unique and may not be found in other nations. Only in Indonesia.

Any nation, state and local governments must have its own reference to the figures from one, two to ten. For example, the number three we call it in Indonesia but in other countries there is a call tri, three, san, tolu and so forth.

Even when there who still remember the numbers are in the local language of friends each from one to ten then sometimes there is mention the same figures and some are different from the Indonesian language. Probably depends on the delicious on the tongue or in the ear.

Direct only. Here I not teach you arithmetic but consider the row of numbers below.

1 = One
2 = Two
3 = Three
4 = Four
5 = Five
6 = Six
7 = Seven
8 = Eight
9 = Nine

It turned out that each number has a brother is marked with the same initial letter. When two brothers are summed number, then the results would be ten. Examples One and Nine. Having the initial letter is S and if the results djiumlahkan one and nine is ten.

Likewise with the Two and Eight, Three and Seven and Four and Six. Ascending up to number five. Five add up to itself also the result of ten.

Do not stop there, apparently the letter was originally also had an important role formation of this number. For example One and Nine are both first letter is S, which incidentally was ranked 19 in alphabetical order. When the numbers one and nine are added then divided by two to find the average then the result is 5. The form number 5 is identical with the letter S. Ever read Mathematics of the Universe, should be added that 19 is the number of the LORD.

Then Two and Eight. Initial letter is D who finished fourth. When eight divided by two, the result is four (justification).

Next Four and Six. First letter is E the fifth. Five are among the Four and Six (justification anymore).

While the number five is the first letter L. Where L is used for symbol numbers in the calculation of fifty Roman (justification is still disconnected).

Then how about the Three and Seven? It turned out difficult to find justification. Added, subtracted, divided and multiplied it turns out has not met. Three times seven outcome 21, less one digit with the letter T is the sequence to 20. But the symbol V is used to indicate the number seven in the calculation of Arabic. And V-22 comes out to.

It turns out, do not use math. Simply written just on blank paper and then can certainly see the connection. Try to write a small letter T (t) in a paper. Then rotate the paper 180 degrees so you can clearly see the number seven. And what about number three? Also the same. Write a large letter T on the paper used Times New Roman font and rotate 90 degrees to the right clockwise. Tada .... You certainly could see three figures clearly. But a little sharp. (Justification is also imposed at all).

This unique pattern may only be found in Indonesia. So what about in Malaysia who also uses the same language? It turned out that in Malaysia the number 8 is called the Eight but Lapan. So this pattern belongs only to Indonesia. Do not let them claimed the same.

Traditions Article Template

Wednesday, May 18, 2011 0 comments

Long-lasting traditions from some cultures span generations. Perhaps others are shorter lived, but either way there is value to staying connected with the past through rituals, traditions and events.

Whether you're celebrating a holiday with traditional activities or cooking a traditional dish from your country of origin, the traditions that exist in your niche can make a great new set of articles for your account.

First, identify a tradition that's been adopted in your article niche. Whatever tradition you choose should have some personal or cultural significance with which you can identify. That connection will ensure your familiarity with the tradition and why it's important to you and others in your niche.

Components of the Traditions Article Template

Keyword-Rich Title – Choose commonly-used keywords to describe the tradition in the title. Your article will be more easily found by web surfers if you stay away from obscure references in the title. Also, consider the type of audience you hope to draw with the article. Choose keywords further down the long tail of the keyword distribution curve to appeal to an audience looking for very detailed content.

Introduce the Tradition – Describe it. The structure may be in list format or just in paragraphs depending on the complexity of the topic you've chosen. Again, consider your audience as you introduce the tradition. You can choose to provide very basic information or go more in-depth.

Explain the Benefits – This is your chance to share exactly why the tradition is near and dear to your heart. Share why the tradition has become a part of the culture of your niche. For example, does it honor something? What are its origins? Who else is practicing the tradition and why?

Counter the Shortfalls – Weigh the validity of the traditions, and explain why the tradition should be continued.

Concluding the Article – Now that you've walked through the tradition, explained its benefits and thought about any shortfalls of the tradition, you have a chance to evaluate the tradition one more time and explain why it should be continued in the future ... or discontinued altogether.
This basic process should help you lay out your own observations on the various cultural traditions in your niche. Plus, an article about traditions is one of the best ways to be sure they live on.

The Movie Home of Our Own

Monday, May 9, 2011 0 comments

The Movie Home is the internet's latest unlimited movie downloading membership site. We allow our members to access thousands of movies, television shows, and video files and download or stream them straight to their PC, Laptop, Mac, cell phone, or any other multimedia device you may own - without having to pay a cent for any of our downloads!
Grab A Copy Click Here!
Inside the member's area, you will be able to download and stream thousands of movies, television episodes and videos which can be viewed on your chosen device. We have over 1 million titles available for you to download!
You will also find tons of bonus member's only material such as free satellite TV! There are no complex pieces of software involved, just simple direct downloading.
Members can download thousands of movies in a range of genres, including action, adventure, comedy, mystery, thriller, crime, romance, fantasy, new releases and children's movies.
Our database contains blockbuster movies which are being sold at your local video store or on sites like Amazon, Netflix, Best Buy and the iTunes movie store.
The Movie Home provides access to all the most popular television series; including classic series as well as the latest released episodes for TV shows currently on air.
There's also a huge international selection to choose from, including television series from the UK, Canada, Australia, among many more. Members can get access to every season, and every episode of any TV show.
Grab A Copy Click Here!
By unlimited, we mean UNLIMITED! You are free to download as many movies, television episodes, videos and much more to your device, as many times as you like, and all content is yours to keep forever! You can make copies of your downloads, transfer them to your other devices, burn them, and keep them as long as you like! We have no download limits, so you can download as many items as you like, each and every day!
Unfortunately, at this time we do not have a list of media available as our database is added to multiple times a day. You can be assured that our movies are those produced by the major Hollywood studios like Universal Pictures, Dreamworks, Paramount Pictures and 20th Century Fox.
It doesn't matter what computer system you are using at the moment. The Movie Home works with PC, Mac, Linux and all other operating systems. You can choose to transfer your downloads to your cell phone, iPod, iPad or any other multimedia device, or just watch them on your computer or TV!
All movies, television episodes, and video files are provided in HD quality Blu-ray & DVD standard quality. No other movie download website provides downloads that are as high-quality as ours.
Our movie downloads are extremely fast. On high speed internet, it takes approximately 10 minutes to download a full-length movie from our servers. Our TV episodes take just a few minutes.
With our site, we provide you with all the instructions you need to transfer your favorite movies straight to your chosen device! Just select the movie you wish to download, and start watching! It's that simple!
With The Movie Home, you are able to view the most popular downloads at the time, the new releases, and search for titles you would like to download.
The Movie Home is 100% legal. There are absolutely no copyright infringements of any kind. This site is not a peer-to-peer communications system. All content found within the member's area is the property of The Movie Home.

 
rama 8log's © 2011 | Designed by Interline Cruises, in collaboration with Interline Discounts, Travel Tips and Movie Tickets