Posts from ‘Web Development’

Jul
31

When I first saw this I said it was a nice old game effect but what actually does is to show your DOM in a pretty effect.

The generated spectrum will contain every single nodeType 1 present in the document and will show via tooltip info about that node (nodeName, id if present, className if present). Moreover, it highlights somehow that node temporary changing the background (yellow one). The most wicked effect was in jQuery website itself, since it is dark, and since it is linear enough (you scroll and the spectrum is almost there where you scroll).

Click to see the effect :) Spectrum DOM Analyzer — pretty cool right? Try to hover your mouse over the nodes.

The official link is here: webreflection.blogspot.com/

Mar
01

Wordle is a toy for generating “word clouds” from text that you provide. The clouds give greater prominence to words that appear more frequently in the source text. You can tweak your clouds with different fonts, layouts, and color schemes. The images you create with Wordle are yours to use however you like. You can print them out, or save them to the Wordle gallery to share with your friends.

Wordle: radumicu.info

My Wordlets

More :) wordlets:

Wordle: Romania Trees Species Wordle: 34Life Word Cloud Part 3

Feb
19

Check out the new version of this article here: Highslide Nextgen and WordPress Integration Ver-2

In this tutorial or guide however you want to call it I will show you how to make Highslide and NextGEN Gallery to be lovers in WordPress.

This tutorial is not intended to the average user so a little bit of “Knowledge” is required. Although I think anyone can do it.

  1. First of all upgrade WP to the latest version, I am using v2.7.1
  2. Install NextGEN if you haven’t already from here (I am using v1.1.0)
  3. Download Highslide from here (I am using v4.0.12)

Go to your server and create a folder called highslide in the plugins folder – wp-content/plugins/highslide/.

Copy to this folder the following files/folder that you have extracted from Highslide zip file:

  • highslide-full.packed.js
  • highslide.css
  • highslide-ie6.css
  • the whole graphics folder

The folder structure should look like this:

highslide_nextgen_and_wordpress_integration.png

The first step is now complete :) Highslide and NextGEN are on there way to become lovers.

Now we have to set all the required options for Highslide, so you can check all the examples at this page and chose one from there to use. In this example I will use example-gallery-controls-in-heading.

Now create a new file called highslide.config.js in which we will add all the options for Highslide. Copy and paste all the code from that example (it should be in the page source) in our config file. It should look something like this:

hs.graphicsDir = 'http://yourdomain.com/wp-content/plugins/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'controls-in-heading';
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.75;

// This two lines will take the title of the pictures from NextGEN and add it to the caption field in Highslide.
hs.captionEval = 'this.a.title';
hs.headingText = 'I can see what you see not...';

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: false,
useControls: true,
fixedControls: false,
overlayOptions: {
opacity: 1,
position: 'top right',
hideOnMouseOut: false
}
});

Upload the file to the highslide plugin folder we have created.

As you can see all the options required by Highslide are there. The most important thing is that I’ve added 2 extra code lines that will take the title of the pictures from NextGEN and add it to the caption field of Highslide and for the heading field just a simple text.

// This two lines will take the title of the pictures from NextGEN and add it to the caption field in Highslide.
hs.captionEval = 'this.a.title';
hs.headingText = 'I can see what you see not...';

For more detailed info about this options you can take a look at this page Highslide JS API Reference. The thing you need to remember is that you can make virtually any kind of combinations to show whatever text you like.

We are getting closer ;)

Now update all the image URL-s in the .css files (highslide.css and highslide-ie6.css) with your path to the gallery folder

Initial URL: background: url(/graphics/fullexpand.gif)
New setting: background: url(http://yourdomain.com/wp-content/plugins/highslide/graphics/fullexpand.gif)

You can search and replace to do it really quick.

The final step is to edit the header.php from your template and add just above the </head> tag this lines:

<!-- Highslide Plugin -->
<link rel='stylesheet' type='text/css' href='http://yourdomain.com/wp-content/plugins/highslide/highslide.css' />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="http://yourdomain.com/wp-content/plugins/highslide/highslide-ie6.css" />
<![endif]-->
<script type="text/javascript" src="http://yourdomain.com/wp-content/plugins/highslide/highslide-full.packed.js"></script>
<script type="text/javascript" src="http://yourdomain.com/wp-content/plugins/highslide/highslide.config.js"></script>

Now for the final test just hit F5 in your browser and see the Love :) , and that’s it. Be sure to remember to update all the paths with your web addres.

I hope you enjoyed this tutorial and you will find it useful. I am open to any sugestions and feedback.

“The Love” doing her thing :D

Feb
04

Perhaps all of you tried sooner or later to center an image right in the middle of the browser screen.

I know there are many solutions to this one but I think the easiest way to center an image on a page is to use a CSS on the HTML tag like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html style="width:100%; height:100%; background:url(logo.png) no-repeat center;">
<head>
<title>RaduM</title>
</head>
</html>