April 26

A hotel that requires our SEO services and web marketing.

Sooner or later it had to happen, in fact I was wondering when it would happen, since the hotels with the possibility of booking online are among those most interested in the services we offer from Advertalis.

But what I could not imagine that it is the first to ask this kind of work was a hotel in Dublin, Ireland. Nor any one hotel, but the elegant Fitzwilliam and with its 5 star hotel is a one of the most luxurious and exclusive of the Irish capital.

Not bad ... too bad that for the moment only want visibility into the German market, so I had to brush my good but a bit 'rusty German. And to start with the promotion of this new customer, I decided to focus on classical and specific keywords for their business, from Dublin Hotel .

Then to continue with a more complete version, I added Hotel in Dublin. But both are the same in English, in theory the best home for the international site ... so, to put a keyword more localized in the German part, I bet even at hotels in Irland. Obviously these are only the first choices, a sort of test to test the waters and correct your aim in the coming months.

If the first works of improvement in these key darrano pay off immediately, they are welcome. If not, we will aim to start other less competitive.

We like to point to the stars, to get to the moon. ;)
Then we reach for the stars! : D

February 17

Fonts truly universal, cross-browsers and cross-systems, are very few.
I refer to those fonts (character sets) that appear in the same way by all popular operating systems and computers in the world (pc, mac, unix-linux, amiga-if there are still those who use it to navigate, with Symbian handhelds or Windows Mobile, etc ...)

In fact, so that a font is displayed properly, not enough to define it in html or css. The font must be installed on the computer on who is viewing the web page. In fact, if not found, the system will replace it automatically with a standard type Arial or Times New Roman.

That's why the fonts 'web safe' are very few, the prerequisite is that they are pre-installed with ALL (or most) operating systems in the world. But some are protected by copyright, therefore not usable by other companies (see the Times New Roman to Microsoft).

Here are the lists of safe fonts for the web with variants for compatibility across all systems, ready to be pasted inside css styles.

font-family: Arial, Helvetica, sans-serif;
font-family: 'Arial Black', Gadgets, sans-serif;
font-family: 'Bookman Old Style', serif;
font-family: 'Comic Sans MS', cursive;
font-family: Courier, monospace;
font-family: 'Courier New', Courier, monospace;
font-family: Garamond, serif;
font-family: Georgia, serif;
font-family: Impact, Charcoal, sans-serif;
font-family: 'Lucida Console', Monaco, monospace;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-family: 'MS Sans Serif', Geneva, sans-serif;
font-family: 'MS Serif', 'New York', sans-serif;
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
font-family: Symbol, sans-serif;
font-family: Tahoma, Geneva, sans-serif;
font-family: 'Times New Roman', Times, serif;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-family: Webdings, sans-serif;
font-family: Wingdings, 'Zapf Dingbats', sans-serif;

View a preview of this book:

Font Size:

RESULT:

The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Arial, Helvetica, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Arial Black', Gadgets, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Bookman Old Style', serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Comic Sans MS', cursive;


The quick brown fox jumps over the lazy dog.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Courier, monospace;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Courier New', Courier, monospace;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Garamond, serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Georgia, serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Impact, Charcoal, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Lucida Console', Monaco, monospace;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

0123456789

font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'MS Sans Serif', Geneva, sans-serif;


The quick brown fox jumps over the lazy dog.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'MS Serif', 'New York', sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Symbol, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Tahoma, Geneva, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Times New Roman', Times, serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: 'Trebuchet MS', Helvetica, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz

0123456789

font-family: Verdana, Geneva, sans-serif;


The quick brown fox jumps over the lazy dog.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Webdings, sans-serif;


The quick brown fox jumps over the lazy dog.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789

font-family: Wingdings, 'Zapf Dingbats', sans-serif;

Jan 13

Today at work, in my new company Advertalis (so new it still has no website, ummm ...), from a client I was asked a small php script with the creation of cookies.

The aim is to identify if the visitor is new or has already come to the site and show a different message depending on the case.

It's nothing for, but it may be interesting for those who have too much knowledge of php. Then he could serve again in the future, so I decided to "annotarmela" here. :)

GETTING STARTED: To create the cookie properly, do not insert html tags or other commands first of these lines of code:

<? Php
/ *
Expiration of the cookie:
Once expired, the user will be recognized as "new"
was added to 60 * 60 * 24 * 30 (corresponding to 1 month - sec * min * gg * hh) for convenience,
in fact the value is in seconds
* /
$ Expiration = time () + 60 * 60 * 24 * 30;

/ / Text to display for the new user (or the first visit)
$ FirstVisit = 'This is the first visit';

/ / Text to display in their second or subsequent visit
$ SecondVisit = 'Returning visitor';

if ($ _COOKIE ['AAA-WelcomeCookie']) {
$ = $ Welcometext secondVisit;
Else {}
setcookie ('AAA-WelcomeCookie', date ("H: i - Y / m / d"), $ expiration);
$ = $ Welcometext firstVisit;
}
?>
<html>
<head>

Continues with the header ... ... then, in the BODY, please insert this php code to display the message:

<body>
...
<? Php echo $ welcometext;?>
...
</ Body>
</ Html>

That's all very simple and unpretentious.
Thank Klevis, my new programmer in the process of training, who wrote most of these lines of code. :)

Sep 15

We know, for what concerns the CSS (Cascading Style Sheets, or style sheets) Internet Explorer browser is amongst the worst.

Do not parse correctly (as per manual W3C) CSS properties and reads them in his own way.

Firefox however is much closer to the official standard, but not everyone uses Firefox.

So, when you have to hit another element or a <div> things get complicated. To avoid the typical <center> </ center> and be compatible on all browsers there is a way, but you have to do a little trick.

As I sometimes do, they write it here as a personal reminder, perhaps useful to someone else.

The "trick" is this.

Need to create 2 <div> one inside the other, in this way:

<div id="contenitore1">
<div id="contenitore2">Contenuto, testo, foto, ecc...</div>
</div>

Then you need to create styles in the header of a page or file. Css part:

# {Contenitore1
text-align: center; / * for Internet Explorer * /
}

# {Contenitore2
margin: 0 auto; / * standard alignment in CSS * /
text-align: left; / * compensate center alignment * /
/ * JUST ADDED TO SEE BETTER EXAMPLE: * /
border: 2px solid # 000;
width: 50%;
}

That's it, the trick is all here.

Good alignment!

Dec 3

WARNING: If you're reading the English version of this article, the links to the files and code may not work because of machine translation from Google. Go to the Italian version and copy the material from there. Alan Curtis.

A few months ago I've had to make a flash site for a tourist agency, which had to insert a gallery of images.

Since they were small series of precise images divided into pages, I thought of using a script that I love: the LightBox v2.

The beautiful LightBox 2 is that it can create the set of images, that loads the image and then clicked it adds the backward and forward buttons. So you can browse the gallery remains in its box!

But not only the LightBox 2 also makes the preloading of the other images for faster viewing. Magnificent!

But I have noticed a problem: the good LightBox v2 does not work if called from flash!

Armed with patience, I'm going to search the net if someone had made the adjustment I needed. But I find nothing.

Then I think about it a bit 'and I decide to do it.

Hence this little tutorial with example live, downloadable here:
Flash-lightboxv2.zip
(Compatible with flash 8 and mx 2004)

Site to see the script applied: http://www.globaltravel.com.al

Flash LightBox v2

-

Note: This script is an adaptation of the original LightBox V2 by Lokesh dhakar Site http://www.huddletogether.com/projects/lightbox2/
The adaptation consists in a LightBox to load the flash movie, while also allowing series of images with buttons up / down.

Here's how to integrate it into your website or flash movie:

1. copy the following folders on the same page that contains your / flash movie:
- Css
- Images
- Js

2. open the flash file and create a new layer (layer) called "actions" that will contain actionscript. In the first frame of actions layer insert the following code:

/ / Alan Curtis - Flash LightBox v2
/ / Flash for Adaptation of the original script by Lokesh dhakar - http://www.huddletogether.com/projects/lightbox2/
/ / Http://www.alancurtis.it
/ / Http://blog.alancurtis.it
/ /
/ / Create an array with the names of large images to load.
/ / Add images, just continue with "pics [4] = ..." and so on.
/ / I create an array with the names of the big images to load.
/ / To add more images, just continue with "pics [4] = ..." and so on.
pics = new Array ();
pics [0] = "borsacaterinabianca.jpg";
pics [1] = "borsacaterinabiancarossa.jpg";
pics [2] = "borsacaterinabrunera.jpg";
pics [3] = "borsacaterinarossa.jpg";

/ / Url - images folder contains no trailing slash!
/ / URL - folder with the images, without ending slash!
var url = "pictures";

/ / Now create a variable called "allpics" containing all the names of
/ / Images separated by a comma. This variable is then passed to the LightBox.
/ / Now I create a variable Called "allpics" Which contains all the images' names
/ / Divided by a paragraph. This var will be passed to LightBox.
allpics var = url + "/" + pics [0];
var i = 1;
while (i <pics.length) {
allpics allpics = + "" + url + "/" + pics [i];
i + +;
}

3. Also in flash files, create thumbnails or buttons that will load the images, convert them to "symbol -> Button" and enter the following code for each:

on (release) {
getURL ("javascript: show (0, '" allpics + + "')");
}

4. Open the page that contains the flash movie with html editor or dreamweaver / frontpage and make the following changes:

a) Nell'HEAD (between <head> and </ head>) to add the following lines:

src="js/prototype.js" <script type="text/javascript"> </ script> <br /> <br> <script type = "text / javascript" src = "js / scriptaculous.js? load = effects "> </ script> <br /> <script type="text/javascript" src="js/lightbox.js"> </ script> <br /> <br> <link rel =" stylesheet "href =" css / lightbox.css "type =" text / css "media =" screen "/> <br /> <br>

b) in the OBJECT tag (flash file) to add the following property (if not already included automatically):

<param name="allowScriptAccess" value="sameDomain" />

c) the EMBED tag add the following property with the other (if not already included automatically):

<embed allowScriptAccess="sameDomain" …….>

d) After the movie, in an empty area (eg a cell or row), insert the following tag:

<div id="anchors"> </ div>

That's it, your flash movie is now ready to upload galleries of images made with the LightBox v2!
Enjoy the show!

November 22

Many times I have to work on the code of a site and maybe change a password of any web application made ​​in php or asp.

The problem is that many different platforms and scripts store the encrypted passwords (encrypted or encrypted if you prefer) in the configuration file. So to change your password please enter the so-called hash (result of the encryption) password.

In most cases the encryption algorithm used is the 'md5, although not quite as safe (if you search on google "md5 break" come out many sites that explain how to crack the algorithm.

But not alone: ​​other algorithms used are the 'safest MD4 and Sha-1.

Here I did a little research and I finally found one page where you can discover how to create the password hashes with these 3 algorithms on the fly.

He is so useful that it carried "live" down here, with lots of files. Zip code to insert it into your website or use it on your pc!

Encryption Tool

Password
Calculates the hash
Result

-

If you also want to integrate this script, you can follow this short tutorial:

  1. download the file encryption.js
  2. copy in the same folder as the html page where you want to put the script
  3. open the html page and enter the following code:

<h1> Password Encryption Tool </ h1>
src="encryption.js" <script type="text/javascript"> </ script>
<form>
<table border="0" cellpadding="4" cellspacing="1" bgcolor="#000000">
<tr>
<td style="color: white; font-weight: bold; padding:10px;"> Password </ td>
<td bgcolor="#32922D">
<input name="input" size="50" type="text">
</ Td>
</ Tr>
<tr>
<td style="color: white; font-weight: bold; padding:10px;"> Calculates the hash </ td>
<td align="center"> bgcolor="#32922D"
<input onclick="hash.value = hex_md4(input.value)" value="MD4" type="button">
<input onclick="hash.value = hex_md5(input.value)" value="MD5" type="button">
<input onclick="hash.value = hex_sha1(input.value)" value="SHA-1" type="button">
</ Td>
</ Tr>
<tr>
<td style="color: white; font-weight: bold; padding:10px;"> Result </ td>
<td bgcolor="#32922D"> <input name="hash" size="50" type="text"> </ td>
</ Tr>
</ Table>
</ Form>
<i> <font size="1"> Encryption Tool by <a href="http://blog.alancurtis.it/"> Alan Curtis Blog - software, scripts, web marketing & SEO </ a> </ font > </ i> <br /> <br /> <br />

This script can also be used locally, since it only requires the JavaScript enabled.
This is version. Zip download with this sample included: password_encryption_tool.zip

This example was created using the libraries to create hash made ​​by Paul Johnston, vai the author's website: http://pajhome.org.uk/crypt/md5
I have only restricted to merge algorithms in a file. Js only and did the small page html for example. If you use it and you feel like ... well let my link! Thank you!

Well, that's all!
Good encryption to all!

Improve the web with Nofollow Reciprocity.