Amazon.com Widgets

Bryan C. Fleming

Personalize your pages with Javascript

Filed under: Uncategorized — Bryan C. Fleming @ 6:56 am

Here’s an easy trick that you can do to make your web pages appear more personable:

It’s said that the sweetest word to anyone is their name. Wouldn’t it be cool to automatically show someone’s name on your web-page? Just add this Javascript code and you’ll see how easy this is to do:

Add this code to the bottom of your HTML page:

(Click the image below to see the code - Blogspot won’t let me post Javascript code)

Next, Add this code to anywhere in your page where you would want their name to appear:

To get the name to appear, you just put a ? after the page with the person’s name. For example:

http://www.youdomain.com/index.html?Bryan

Now, you might be asking. How do I know their name? Good question.

Obviously you can’t use this for random visitors to your site, but you can use it for a landing page from an email message. This is good for internet marketing. Let’s say you send your customers an email something like this:

To: Bryan Fleming
From: Your Store
Subject: Check out our new products

Hello Bryan,

We would like to show you some new products we have, you can see them here:

http://www.youdomain.com/landingpages/newproducts.htm?Bryan

So by building the page shown above with the Javascript, you can make a personal web page with their name thrown right into it. Now, you have to be sure that your email sender can merge in the first names. Most of them can.

There are a lot better ways of doing this by using cookies and server side scripting technologies like .NET, PHP, or Java. This is just a quick way where a non-programmer can give a little personalization to their pages.

Enjoy!

Like this article? Subscribe to my RSS Feed .

The MouseTrap

Filed under: Uncategorized — Bryan C. Fleming @ 5:26 am

A mouse looked through the crack in the wall to see the farmer and his wife Open a package.”What food might this contain?” The mouse wondered - he was devastated to discover it was a mousetrap.

Retreating to the farmyard, the mouse proclaimed the warning. “There is a mousetrap in the house! There is a mousetrap in the house!”The chicken clucked and scratched, raised her head and said, “Mr. Mouse, I can tell this is a grave concern to you, but it is of no consequence to me. I cannot be bothered by it.”

The mouse turned to the pig and told him, “There is a mousetrap in the house! There is a mousetrap in the house!”The pig sympathized, but said, “I am so very sorry, Mr. Mouse, but there is nothing I can do about it but pray. Be assured, you are in my prayers.”

The mouse turned to the cow and said “There is a mousetrap in the house! There is a mousetrap in the house!”The cow said, “Wow, Mr. Mouse. I’m sorry for you, but it’s no skin off my nose.”

So, the mouse returned to the house, head down and dejected, to face the farmer’s mousetrap alone.That very night a sound was heard throughout the house — like the sound of mousetrap catching its prey.The farmer’s wife rushed to see what was caught. In the darkness, she did not see it was a venomous snake whose tail the trap had caught.The snake bit the farmer’s wife. The farmer rushed her to the hospital, and she returned home with a fever.

Everyone knows you treat a fever with fresh chicken soup, so the farmer took his hatchet to the farmyard for the soup’s main ingredient.But his wife’s sickness continued, so friends and neighbors came to sit with the farmer around the clock. To feed them, the farmer butchered the pig.

The farmer’s wife did not get well; she died. So many people came for her funeral, the farmer had the cow slaughtered to provide enough meat for all of them.

The mouse looked upon it all from his crack in the wall with great sadness.

So, the next time you hear someone is facing a problem and think it doesn’t concern you, remember — when one of us is threatened, we are all at risk.We are all involved in this journey called life. We must keep an eye out for one another and make an extra effort to encourage one another.

Like this article? Subscribe to my RSS Feed .

Funny……

Filed under: Uncategorized — Bryan C. Fleming @ 8:33 pm


The State Highway Patrol in conjunction with the FBI has issued a warning advising all dog owners to keep their dogs indoors until further notice. Dogs are being picked off one at a time on an almost continual basis throughout the city. They are falling in great numbers. Police in the city advise all dog owners not to walk their dogs - KEEP THEM INDOORS UNTIL FURTHER NOTICE!

Like this article? Subscribe to my RSS Feed .
« Previous PageNext Page »
 
Free Link Exchange - Directory - SQL 2005 Web Hosting