Pure CSS Rollover Menu

Pure CSS Menu – light, fast, easy to make, SEO Friendly

This is my favorite technique for making CSS rollover menus. Its a combination of image replacement technique, and pure CSS list menus.
There is no javascript, and beneath it is valid XHTML code, so you don’t need to worry about SEO performance

If your menu is 400px by 50px background image should be 400px by 100px. Upper half of picture is background for normal state, and lower half is for rollover.

HTML Code

<div id=”main-nav”>
<ul>
<li><a href=”#” class=”home”><span>Home</span></a></li>
<li><a href=”#” class=”about”><span>About us</span></a></li>
<li><a href=”#” class=”faq”><span>F.A.Q.</span></a></li>
<li><a href=”#” class=”contact”><span>Contact</span></a></li>
</ul>
</div>

IBM Download The Movie For A Second

The facts are indisputable, more broadband connections – and therefore the transfer of films and other audiovisual material via the Internet is becoming quite normal. IBM has recognized the potential problem and came out with a solution that is able to pass the entire HD movie in just seconds !. And if so remarkable – the whole chipset is the dimension of 25.3 x 25.5 mm !!!

Dell And Now Linux

This is certainly great news. Dell starts shipping Linux as an alternative to Windows, which has so far been the only choice for Dell machines (except for servers and Precision working page). So far in the game 3 distribution Ubuntu, Fedora, and openSUSE – more or less expected.
Otherwise, the whole thing began with the set survey on IdeaStorm website concerning the use of Linux. More than 100,000 people took part and over 70% responded that they would benefit Linux as in the office, as in the home versions.

CSS Rollover Menu

CSS Menu – a small, fast, easy for IT capacity, good for SEO

This is my favorite technique of making CSS menu. And the principle of it is a combination of a couple of CSS techniques (image replacement, css list menus ..).
It proved quite ok technique, absolutely the same is shown in FF, IE and Opera and has a normal HTML under the hood, so will Google and other search engines quite correctly index your content – and this is probably the most important.

Instructions for use

1) Make a background imageAttention this is an image , not two.
If you me 400px with 50px (as in this case), the background image should be 400px by 100px. The upper half of the normal state, and the lower for rollover

3) Insert CSS
All that remains is to insert this CSS , and that’s it – enjoy in your CSS menu

Draganov blog

redesign
I hope you like it. Anyway, smorila me so she passed the green theme, um, this is actually a modified theme I’ve ever seen on x sites on the net.

I quickly crippled CSS and decided to go with this minimalist version. I hope it is now a little more pleasant to read
IBM and MySQL now together
It is not yet official, but the Reuters announced. It is expected that today at a press conference to be further details of this partnership.
IBMvec has extensive experience with large database systems ( DB2 ), we’ll see how this partnership will affect the further development of MySQL, I think it will be extremely positive, and that soon we can expect the native XML support
Thunderbird 2
A few minutes ago I read that a new TB, and fast better I installed. The first thing I was thrilled that add support for Gmail . Simply enter your username with gmail and that’s it. Other newspapers have tags, now you can easily add a custom tag and later easily find all relevant messages. He also was promoted searches, now it unfolds in real time, or you search as you type. More impressions in a few days, while a little more extensive testing, and for that time:

IBM – Download the movie for a second
The facts are indisputable, more broadband connections – and therefore the transfer of films and other audiovisual material via the Internet is becoming quite normal. IBM has recognized the potential problem and came out with a solution that is able to pass the entire HD movie in just seconds !. And if so remarkable – the whole chipset is the dimension of 3.25 x 5.25 mm !!!.

Green Technologies Blog

Just how much solar energy do we use?

First, lets learn a thing or two. The good thing to start with is defining what exactly Photovoltaic means. Wikipedia says:

Photovoltaics (PV) is the field of technology and research related to the application of solar cells for energy by converting sunlight directly into electricity. Due to the growing demand for clean sources of energy, the manufacture of solar cells and photovoltaic arrays has expanded dramatically in recent years.

And a quote from EIA site

Photovoltaic devices use semiconducting materials to convert sunlight directly into electricity. Solar radiation, which is nearly constant outside the Earths atmosphere, varies with changing atmospheric conditions (clouds and dust) and the changing position of the Earth relative to the sun. Nevertheless, almost all U.S. regions have useful solar resources that can be accessed.

So basically, this is the technology implemented in solar arrays and panels we see every day.The data figures confirm the fact that production of the photovoltaic units is doubling every two years.

Click to see the data visualizations
Google PowerMeter – Track Your Electricity Usage

Google has announced a new software that enables you to track home electricity usage and helps to cut your bills down.

Here is a quote from project page.

At Google were committed to helping enable a future where access to personal energy information helps everyone make smarter energy choices. To get started, were working on a tool called Google PowerMeter which will show consumers their electricity consumption in near real-time in a secure iGoogle Gadget. We think PowerMeter will offer more useful and actionable feedback than complicated monthly paper bills that provide little detail on consumption or how to save energy.

This project is still in progress.To make it work, you need to have smart power meters for measuring power consumption and transfer the data to your computer/Internet. Google is currently developing that technology together with smart meter and utility manufacturers on implementing the technology into devices as well as standardizing the communication protocols. Yet, a question of security arises, i.e. who else gets to see your data?

Usage

Now, this is tricky part 🙂
Basicly you should add your images, minding naming rules

<div id=”img-holder”>

<div class=”gallery-item”>
<img src=”/web/20110325073247im_/http://dragan.yourtree.org/projects/canvas-gallery/001_s.jpg” id=”img001″/>
<canvas width=”77″ height=”77″ id=”canvas001″/>
</div>

<div class=”gallery-item”>
<img src=”/web/20110325073247im_/http://dragan.yourtree.org/projects/canvas-gallery/002_s.jpg” id=”img002″/>
<canvas width=”77″ height=”77″ id=”canvas002″/>
</div>

<div class=”gallery-item”>
<img src=”/web/20110325073247im_/http://dragan.yourtree.org/projects/canvas-gallery/003_s.jpg” id=”img003″/>
<canvas width=”77″ height=”77″ id=”canvas003″/>
</div>

So, first image thumb is 001_s.jpg and larger size is 001_m.jpg and so on. (Yes, exactly like on Flickr)

Then in canvasGallery.js add reflections to all that images and set scroll speed.
(combination of timeout and step)

view plaincopy to clipboardprint?
Gallery.addItem(‘001’);
Gallery.addItem(‘002’);
Gallery.addItem(‘003’);
Gallery.addItem(‘004’);
Gallery.addItem(‘005’);
Gallery.addItem(‘006’);
Gallery.addItem(‘007’);
Gallery.addItem(‘008’);
Gallery.addItem(‘009’);

//set scroll options (timeout,step)
$(‘img-holder’).setFXOptions(40,4);

MyTabz – News

tested On  IE 6 pc
Firefox PC
PC works 9.x
How to Use

the Body section of your web page:
Write your HTML code (see example bellow)
the head section of your web page:
define CSS for the tabs (you can use CSS from this example)
include Prototype Library
MyTabz include the plugin
HTML

< Div id = “accordion” > < div id = “T1” class = “my_tab” > < h5 class = “tab_title” > Tab 1 < / h5 > < p >

tab1: lorem ipsum dolor sit amet, consectetuer adipiscing elit. Clinical need foot. As throat pot. Till shooting. Recommended drink sales, but fears. Live bananas. However, my pain, diving but, but for convenience, manufacturing running approval. Tomorrow Laoreet drink. But the sad than what in the region. Till members. Integer sit amet diam vitae tellus iaculis tincidunt. Chat mauris sit this deductible but, antioxidants monitoring, pot. No programming or fear. Largest moms, graduated and developers said the price was zero temperature by running a bow or even now. However, laoreet it. Dolor congue vitae nibh. Maecenas eu ipsum feugiat iaculis or any other bed. Suspendisse a nisl neque consectetuer drink of life. , Whosoever shall not at all.
Live sauce, one element players expected, but the Reserved Reserved bananas, but a very ecological graduated in the refrigerator. Each entrance is always now. Now developer pool, football offset poverty ultricies, notebook and, very important. No developer graduated, it is sterilized, such as yeast and sorted by them. Lorem soccer pot, hydrogen may sit this protein is important, now. In fact, it was only at. Maecenas vitae. Sed pulvinar, nor hairstyle. Have any kind now. Eu now offset button. Integer diam just want convenience, Bureau needs to sit level. In order not now. Tomorrow dui Pakistan, where the author is important, but the author, chocolate chips, the lion. The goodies of the bed, a soft ut, molestie eget, dapibus ut, elit. Jasmine for bananas. Now bow lakes, pull makeup element of a set and energy. The refinancing. However, antioxidants clinical vehicles.
< / P > < / div > < div id = “T2” class = “my_tab” > < h5 class = “tab_title” > Tab 2 < / h5 > < p >

tab2: lorem ipsum dolor sit amet, consectetuer adipiscing elit. Clinical need foot. As throat pot. Till shooting. Recommended drink sales, but fears. Live bananas. However, my pain, diving but, but for convenience, manufacturing running approval. Tomorrow Laoreet drink. But the sad than what in the region. Till members. Integer sit amet diam vitae tellus iaculis tincidunt. Chat mauris sit this deductible but, antioxidants monitoring, pot. No programming or fear. Largest moms, graduated and developers said the price was zero temperature by running a bow or even now. However, laoreet it. Dolor congue vitae nibh. Maecenas eu ipsum feugiat iaculis or any other bed. Suspendisse a nisl neque consectetuer drink of life. , Whosoever shall not at all.
Live sauce, one element players expected, but the Reserved Reserved bananas, but a very ecological graduated in the refrigerator. Each entrance is always now. Now developer pool, football offset poverty ultricies, notebook and, very important. No developer graduated, it is sterilized, such as yeast and sorted by them. Lorem soccer pot, hydrogen may sit this protein is important, now. In fact, it was only at. Maecenas vitae. Sed pulvinar, nor hairstyle. Have any kind now. Eu now offset button. Integer diam just want convenience, Bureau needs to sit level. In order not now. Tomorrow dui Pakistan, where the author is important, but the author, chocolate chips, the lion. The goodies of the bed, a soft ut, molestie eget, dapibus ut, elit. Jasmine for bananas. Now bow lakes, pull makeup element of a set and energy. The refinancing. However, antioxidants clinical vehicles.
< / P > < / div >

.
.
.
.
< / Div >
Javascript

First, initialise Class. First argument ( ‘accordion’) is ID of div that contains all the tabs, second ( ‘div.my_tab) is div class of single tab.
For second argument is also valid format, “.my_tab ‘, or’ div # tabs div.my_tab ‘
var MyTabs = new mt ( ‘tabs’ , ‘div.my_tab’ ) ;
Now we can remove h5 elements, since we do not need them anymore …
MyTabs . removeTabTitles ( ‘h5.tab_title’ ) ;
Next, we add tabs. First parameter is ID of div that holds that tab, and is second title.

MyTabs . addTab ( ‘T1’ , ‘Tab 1’ ) ;
MyTabs . addTab ( ‘T2’ , ‘tab 2’ ) ;
MyTabs . addTab ( ‘T3’ , ‘tab 3’ ) ;
MyTabs . addTab ( ‘T4’ , ‘tab 4 – Long Title ” ) ;

Finaly, we activate the tab # 3;

MyTabs . makeActive ( ‘T3’ ) ;

Canvas Gallery with reflections

Canvas gallery with thumb reflection. Based oin Prototype and reflection.js
First task was to extend Prototype and add 3 new functions: scrollLeft, scrollRight, and stopScroll.

This may not seams completley necessary but it makes code a lot cleaner. Take scroll buttons for example:

view plaincopy to clipboardprint?
//Add event listeners on scroll buttons
$(‘md’).observe(‘mouseover’,function(event){
$(‘img-holder’).scrolRight();
});
$(‘md’).observe(‘mouseout’,function(event){
$(‘img-holder’).stopScroll();
});

// as simple as that :]
I really learned a lot from this project, mostly about prototype.
Prototype really have awesome possibilities, all that you need is good plan and some coding skills.
Even if you are not top-notch ajax programmer there is a lot of examples and resources on the Internet.

Future of this project and usage

This project is still in deep beta, and if someone wants to use this gallery i advise to take demo page and modify it to your needs.
Otherwise you risk to loose some css or javascript dependency.

I will try to make new version of this as soon as possible.