-
10 Killer Advertising Sentences
10 Killer Advertising Sentences.
Tell your readers what they are probably thinking, feeling or doing as they read your ad copy. This strategy will usually trigger their own subconscious mind to bring out these feelings or actions.You can add these sentences into any ad copy. You may have to change one or two words so it relates more to the product or service you’re selling.
1. As you keep reading this ad copy, you are feeling more and more compelled to experience all the benefits of our product.
2. The more you understand just how valuable our product could be to your life, the less you think about delaying this important purchase.
3. After you read this short ad you will feel like your problems are almost completely solved, all you will have to do is order.
4. As you’re skimming through this, you’re beginning to think you have nothing to lose and everything to gain by trying out our product.
5. As you’re scanning over this ad copy, you are beginning to imagine using our product and enjoying all the benefits it brings.
6. The more you keep reading our ad the more you feel it would be a waste to let this opportunity slip by.
7. The more you review our ad the more you begin to find yourself getting very excited about our product and starting to feel the urge to buy now.
8. You don’t know it yet but, at the conclusion of this ad, you will feel driven to order and experience all the benefits of our product.
9. You don’t realize it yet but, in a few short minutes you’ll realize that you can’t put off this vital purchase and then you’ll be yanking out your credit card.
10. As every word you read travels from this ad to your brain, you start to understand just how much our product could benefit your life.
I hope this article has given you some insight as to how we, as webmasters, can actually ‘manipulate’ the surfer into doing what we want them to and, ultimately, into making us money.
Article written by Lee.
-
Designing A 404 Error Document
Designing A 404 Error Document.
Now that we know how to use .htaccess let’s get into how exactly to effectively design a 404 error document page. Here are a few tips when building your document:Keep The Design Constant.
That is, whatever design your web site supports, consider keeping that design when building your error document. This is not mandatory, however. If you have a good reason to stray from your design, then do so. Otherwise, keep it constant.
Use Attractive Dialog.
Do not use the word error. Error signifies something is terribly wrong, and while that may be so, you should give that information to your visitor in a very friendly way. Instead, consider writing “Sorry, the page you were looking for is not available at the moment”.
Include Contact Information.
Obviously, you want to fix the error, so give the user every opportunity to e-mail you about the error. Some users will not bother to do so, but you still need to give them the opportunity.
Keep The Visitor Moving.
Often, 404 error pages are like road blocks, or brick walls that the user cannot pass through. You need to break through the barriers and allow the visitor to keep traveling through your web site. If your web site supports a search capability, include a form on your error document to let them search for the information they were originally seeking. At the very least, include a link to your home page.
Give Them A Site Map.
When the user clicks upon a page that is no longer available, or was mistyped by the webmaster, consider adding a link to a site map page, or include your site map right on your 404 error document, so the user can get their bearings within your site, and can locate their desired content quickly and easily.
Give Them Help.
List tips on your error document page to help the visitor diagnose the error. For example, ask them to double check the URL in their browser’s address bar. If it’s correct, politely ask them to e-mail you to report the error. Also suggest that they visit your home page (or search utility) to find the information they are after.
List Some Popular Links.
Provide the user with a few links to your most popular content areas of your web site, as it is more likely they were searching for that content than anything else.
As you have seen, error documents are more important than you may think. Merely having a custom error page shows you have put forth effort on your web site and want to help the user find the information they need. Error documents are easy to create and adds professionalism to any web site.
Article written by Lee
-
Domain Name Registrars – Saving Your Business
The one thing that all webmasters rely on to make their money is something that all of us have, a domain name however, what would or should happen to your domain names when and if, your registrar files for bankruptcy or just disappears, surprisingly enough i do not recall this ever happening in the industry to date however, being prepared for the worst case scenario is always a good thing.
Prevention Is Better Than A Cure.
As the age old adage goes.The first thing that you should do before even registering a domain name is to check out the background of the company you are considering using, you need to ask yourself a variety of questions about this company including the following:
1) Is the registrar ICANN accredited?
ICANN (Internet Corporation for Assigned Names and Numbers) is a non profit corporation which was formed to assume the responsibility over the IP and entire domain name structure as we know it. This in essence means that if your registrar is ICANN accredited then you at least know your domain name registration will be handled professionally and, should be reasonably secure so far as your registrar going out of business.
2) What are you paying for?
Many of the domain name registration companies packages vary greatly, with some companies you register a domain yourself, some companies register it on your behalf and, others will register your domain including some form of hosting etc, check with the company you are using to see what added services and support features they offer.
3) What is their transfer policy?
Some domain name registration companies have specific policies so far as transferring domains to other companies, registrars and, individuals go. Check with your registrar before you buy your domain to see what this process involves and, as always, check with one of the other registrars to see which registration company offers the best ‘bang for your buck’.
Saving Your Name – Help And Advice.
First and foremost, if you discover your domain name registrar has closed its doors you should immediately send an email to them and ensure you keep a copy of this email for your own records, ask them what is happening and, more importantly, what controls / access you still have available (if any) to manage your currently registered domains.Usually, you will receive some form of communication within a few days from your registration company letting you know what is happening and how you can continue to use your domain name.
In most cases, when a domain name registrar company closes what you will find is that they will already be in the process of transferring the management of your domain to another registration company.
If however, you are still able to control the domain yourself then you should immediately seek out a new registrar with whom you can manage the domain / domains that you own. At this point you should contact them and ask if they have any fast track solution to transferring your domain to their company.
If All Else Fails.
If after everything else you are still at a loss as to how your domain name transfer or registration is being handled then you should contact ICANN ( http://www.icann.org ) directly. Ultimately it is their responsibility to ensure that once you have registered a domain name, you are able to access it as you would like, in most cases however, contacting ICANN is always the last move you should make and, only use this form of information should you exhaust all other methods mentioned above.Article written by Lee
-
Building A Surfer Trap – Stage 4
Building A Surfer Trap – Stage 4.
Here we go with stage 4 in our surfer trap.
We should now have a pretty basic surfer trap set up with consoles on all of the FPA’s all of the links on all of the FPA’s (Excluding the FPA graphics) should go to either another FPA or, the a POTD Program.
As mentioned in the last stage we are going to start building up some traffic to our surfer trap even though, we are not finished yet.
The first place where you can get some good free traffic would be from a toplist counter.
A good counter that I would recommend would be one of the following:
Outster http://www.outster.com (A Gay Specific Counter)
SexTracker http://www.sextracker.com (A General Adult Counter)You need to sign up to ONE of the above counters and only ONE.
Usually a counter will ask you for some details when signing up for them these will usually include:
Email Address.
Site Url
NameFor the email address, enter a REAL email.
For Your Name, Enter a name you wish to be known by to the counter owners.However, for the URL (The one to SEND traffic to FROM the counter) you should enter the index.html page of your surfer trap (The Multi-Site FPA).
You will now be given some coding once you complete the counter sign up process. This counter code you now need to place on EVERY page of your surfer trap.
Place the counter towards the bottom of your FPA’s (Including the Multi-Site FPA) this way, they will load after the rest of the graphics or at least, they should in theory.
Basically what you are doing by implementing this counter is as follows:
For each time the counter is displayed or clicked on your site (Depending on the counter you choose) you will earn one credit on the respective counters toplist.
Each credit you earn on the toplist will move you higher up the list.
Now, the higher up the list you get, the more visitors to the counter site that you are going to get visiting your surfer trap by clicking your link on the toplist.
In return, by clicking on your surfer trap link from the toplist, they are ‘registering’ another impression of your counter hence, getting you one more ‘credit’ on the counter toplist hence, moving you higher in the listings.
See where we are going with this?
The more clicks you get from the counter to your hub, the higher you will get on the toplist in the process earning you more and more traffic to filter through your surfer trap.
Adding these counter codes to your FPA’s as they stand at present should take you an hour or so to do so, for now this is where I will leave the traffic generation section of this tutorial.
Article written by Lee
-
Everything You Need To Know About Meta Tags And More!
Everything You Need To Know About Meta Tags And More!
There’s a plethora of different META Tags that you can make use of on your site. Because there are so many, it’s impossible for me to cover all of them in this article. However, I will describe the most common ones. But let’s start from the beginning, shall we?What Are META Tags?
META tags are similar to standard HTML tags. However, there is one big difference: You have to insert all META tags between the <head> </head> tags on your page(s). META tags are used primarily to include information about a document. The META tags will be invisible to your site’s visitors, but will be seen by browsers and search engines.For The Search Engines.
Several of the major search engines make use of the META Keyword tag, and virtually all of them make use of the Description tag. These tags help the search engine spider determine the content of your web site so that it can be indexed properly.This is what they look like:
<META name=”keywords” content=”Webmaster Resource Site”>
<META name=”description” content=”Online Webmaster Resource Site”>You can also instruct the search engine robot/spider how to index your site using the robots META Tag. This is what it looks like:
<META name=”robots” content=”noindex,nofollow”>
What the tag above does is tell the spider not to index the page that it appears on, and not to follow the links on that page. Here’s a complete list of attributes for the robots tag:
index – the default, the page is added to the search engine database
noindex – the page is not added to the search engine database
nofollow – the spider doesn’t follow the links on that page
none – same as “noindex, no follow”
To use any of these attributes simply replace the “noindex,nofollow” text in the example above with whatever you want to use. If you need to use more than one attribute, separate them with a comma.
Client Pull.
Have you ever seen a page that automatically refreshes to another URL after a few seconds? Did you ever wondered how it was done? I’ll tell you. The page made use of one of the http-equiv META Tags to automatically “pull” you to a different page after a few seconds. Here’s what the code looks like:<META http-equiv=”refresh” content=”1; url=newpage.htm”>
The value of content denotes how many seconds will pass before the new page is called for. If you want it to happen as soon as a person hits that page, then set the value to “0”.
Prevent Caching.
If you want to prevent a page being saved in your visitor’s cache you can do so by inserting the following three tags:<META HTTP-EQUIV=”expires” CONTENT=”0″>
<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Cache-Control” CONTENT=”no-cache”>Why would you want a page not to be cached? If your site is updated frequently and you always want your visitors to see the newest content/changes, or if you want to ensure that a new banner is loaded each time from your server when a page is accessed, you’ll want to use the tags above.
A quick note here on banner caching: In addition to using the tags above, you’ll want to append random numbers at the end of the tag calling the image.
Rating Your Content.
By using the rating META tag on your site, you can specify the appropriateness of your web site for kids. The tag looks like this:<META name=”rating” content=”general”>
In addition to the general rating, you can use three others. They are:mature
restricted
14 years
Misc. Tags
Below I’ve listed several other popular tags that you may have seen around the web.
The generator META tag is used to specify what program was used to create your web site. Many HTML editing tools automatically insert this so that a company can gauge their market penetration. The tag looks like this:
<META name=”generator” content=”program name and version”>
The author tag is used to identify the author of a page. Simply replace “author’s name” with your name or email address.
<META name=”author” content=”author’s name”>
The copyright tag identifies the individual or company that holds the copyright to a particular page. This is what it looks like:<META name=”copyright” content=”This page and all its contents are copyright 2003 by Lee Windsor. All Rights Reserved.”>
I hope this article gave you some insight into the usage of Meta Tags and how they can benefit your day to day business.
Article written by Lee
-
Robots.txt – Control The Robots That Crawl Your Sites
By writing a structured text file you can indicate to robots that certain parts of your server are off-limits to some or all robots. It is best explained with an example:
# robots.txt file for general use on web servers.
User-agent: webcrawler
Disallow:User-agent: googlebot
Disallow: /User-agent: *
Disallow: /cgi-bin
Disallow: /logs
The first line, starting with ‘#’, specifies a comment.The first paragraph specifies that the robot called ‘webcrawler’ has nothing disallowed: it may go anywhere.
The second paragraph indicates that the robot called ‘googlebot’ has all relative URLs starting with ‘/’ disallowed. Because all relative URL’s on a server start with ‘/’, this means the entire site is closed off.
The third paragraph indicates that all other robots should not visit URLs starting with /cgi-bin or /log. Note the ‘*’ is a special token, meaning “any other User-agent”; you cannot use wildcard patterns or regular expressions in either User-agent or Disallow lines.
Two common errors:
Wildcards are not supported: instead of ‘Disallow: /tmp/*’ just say ‘Disallow: /tmp’.
You shouldn’t put more than one path on a Disallow line (this may change in a future version of the spec)
Ultimately, without the use of robots.txt files on your servers/domains, you are risking a variety of potential problems including, unauthorized access to your cgi directory, unauthorized viewing of your site stats, possible spamming of the search engines by accidental crawling of doorway pages.One distinct advantage however of having a robots.txt file on your server is that, quite simply, you will be able to tell when and where your site has been indexed or potentially indexed as, all robots will automatically call for the robots.txt file BEFORE any other page on your server so, as long as you keep an eye open for any calls of this file, you can see who is knocking at your site for indexing purposes.
Below is a robots.txt example that you can copy and paste into a text document to use on your own server:
<!–Start Copy Below This Line–>
User-agent: *
Disallow: /cgi-bin
Disallow: /logs<!–End Copy Above This Line–>
The above will allow all spiders to crawl all of your site except the subdirectory’s ‘cgi-bin’ and ‘logs’ which, may be altered to suit any subdirectory’s you do not wish the spiders to crawl on your server.
Article written by Lee
-
Time Management – Organizing Your Content Purchases
From time to time it is inevitable that as adult webmasters there will be two things that will happen:
1) You will buy some licensed content.
2) You will use this content for a gallery.
However, unless your content is organized you can end up spending to much time to make a 10 pic gallery page. This article is going to offer you some sound advice on how to organize your content from the second you take delivery of it which, will save you a lot of time long term.
So we have taken delivery of our adult content either by download or, on cdrom what next, we could just file it away on cdrom but, by taking a little extra time to organize your content from the start you will end up not only building sites MUCH quicker but also saving time all round.
Here are some helpful hints to get you on the way to content organization.
1) Unzip all your content sets and, if applicable, separate them into model and niche sets.
2) Create folders for each model and, each set of 10 images within the main model sets.
3) Rename all your images in the 10 pic sets starting from pic1.jpg through to pic10.jpg.
4) Crop, compress and thumbnail each image within each set of 10 that you have.
5) create a html page that calls your thumbnails and main pics using relative urls i.e. /set1/gallery1/image1.jpg for the larger image and /set1/gallery1/thumb1.jpg for the thumbnail image.
6) Inside each of your 10 pic/thumbnail folders place this HTML page you have just created.
7) Burn each of the gallery folders to cdrom.
Lets now look at what an hour spent has enabled us to do.
Instant Galleries.
Say we want to build a 10 pic gallery to add into a free site or an AVS site that we are building, we know we have all the galleries already made, its just a case of finding the correct gallery and uploading it to our server.Image Swapping.
What happens if we need to swap an image from one of our pages to a more appropriate one for the niche we are marketing to, simple, you go to the image set you want, look for the image name and simply change the image without having to upload it as, you will now know the EXACT location on your server of the image you are changing to e.g., /set6/gallery8/image9.jpg would change to set24/gallery2/image2.jpg.
There are of course other ways this can benefit you for example, you can plug in your galleries to any site you own if you have them all uploaded to a central content location domain.
The benefits of organizing your content from the instant you take delivery are endless, the above is just a sample of how I have successfully saved time and effort by becoming more organized, the only limitations you have with your organizational skills are those that you impose on yourself.
Article written by Lee
-
GEO::IP – What Is It?
As more and more webmasters investigate the international market place to expand their online businesses I thought it would be prudent to take a look at one of the more important modules of Apache and, just how this module can help webmasters to monetize their international traffic. What is this module? GEO::IP.
Geo I.p – The Basics.
GEO::IP is an Apache module which is able to recognize countries by specific I.P blocks. GEO::IP in itself is, in effect a database of the current i.p addresses in use on the internet across the globe. When used in conjunction with various scripting languages, Perl, Php, Etc the Apache GEO::IP module can assist online businesses with the following:Detecting credit card fraud.
Automatically select the geographically closest mirror.
Analyzing your web server logs to determine the countries of your visitors.What this means to the webmaster is that they can now market their sites to a specific language or, country in addition to either redirecting or, refusing other countries / languages access to their online sites.
GEO::IP Module – Where To Find It.
The GEO::IP module is available from several sources online in either paid or, free forms. The most up-to-date and professional form of the GEO::IP module can be found on the Maxmind website ( http://www.maxmind.com ).Once you have the GEO::IP module you should either ask your host to, or, install it yourself on your Apache based web server.
Geo I.p – Different Modules.
In addition to the simplistic ‘country i.p’ based detection, there is also another more complex GEO::IP module, this module is often referred to as ‘I.p to Location’ which, in simplistic terms means that you can target specific cities of the world hence, if you want to offer a service to surfers in Miami, you are able to redirect your Miami surfers to a page with content of specific interest to them.Redirecting Traffic.
Geo i.p is the basis behind most of the international traffic redirection systems available for webmasters to use in order to monetize their global traffic more efficiently, whether those systems are paid, free, subscription based or, otherwise they will ALL use the fundamental basics of the GEO::IP module.Through the use of the geoip module you will be able to maximize and filter the traffic sources you currently have and, decide on whether you send your surfers to a Pay site, a dialer or, a traffic trade.
Scripting – Putting GEO::IP To Work.
Many programming firms are now looking at the global market place in addition to webmasters as they now have the ability to offer their clients a wider product base from country specific banner displays to multi-lingual tours, programmers can develop new ways to enable webmasters to profit from their traffic unlike ever before. One such company is Geo Scripting ( http://www.geoscripting.com ).GEO::IP – Overview.
All in all the Geo i.p Apache module is going to become more and more prominent in the industry, sponsors are already starting to use country specific redirects on their affiliates traffic base and, individual webmasters are beginning to capitalize on this module through redirecting their own traffic to the sponsors that offer them multi-lingual paysites. When all is said and done, I am all for anything that can better assist webmasters in monetizing their global revenue streams especially as in the last 4 years I have been online it would only seem to be the last 2 months when this untapped source of income has come into the forefront of the adult industry.Article written by Le
-
So That’s What It Means!
Often you will hear other webmaster talking about things such as unique hits, banner exchanges and, AVS systems. The article below is a simplified glossary of those and many other terms that you will begin to hear day in and day out of your working life as an adult webmaster.
AVS (Adult Verification System)
The protection system that was designed to prevent minors from accessing adult sites. AVS services usually also have a large network of sites that adult surfers can access with one password. You can find a list of Age Verification Systems at Adult Sponsor ProgramsAVS Site
A site that uses an AVS system.Banner Exchange
A program that enables an exchange of traffic between a whole variety of adult sites. They provide you with some coding which you put in your HTML in order to get additional visitors to your adult site. You can visit: Porn Client for a highly respected Banner Exchange System.Blind Links
When you place a misleading link on a site that will encourage the surfer to click on it. They will be sent to a new site that has nothing to do with what they expected to see. For example, if you had a text link saying ‘Free Porn’ and they get sent to a paysite when they click on the link.Browser
A program that displays and navigates web pages you are using a browser now to view this page.Chargeback
A chargeback is what happens when a surfer changes their mind or decides they don’t like the site or service they signed up for and tells their credit card company they will not pay the fee for your sponsor or paysite charges. Chargebacks are bad for everyone concerned because do you not only lose income for the sale, penalties are applied and sometimes they are applied to you.Click-Thru Program
A sponsorship program that pays you an amount of money for each and every single visitor you send to their site. You can also find a list of per click sponsors at Adult Sponsor Programs.Content Provider
A company that offer adults pictures, video clips for sale or lease. For a complete list of the best content providers head over to http://www.adult-content-providers.com.Dead Or Broken Link
A link that is no longer valid or isn’t working. When you click on the link you get a page not found error.E-Zine
An E-Zine is in simplified terms and online magazine.FTP (File Transfer Protocol)
You need to upload (FTP) your web pages from your computer on to the web for everyone to see. One of the most well known FTP clients is Cute FTP.Hits
Number of times your page was viewed over a specific period of time.Hit Counter
Tool used to track the number of surfers that click onto your adult site. A good hit counter can be found at: http://www.sextracker.comHot-Linking
When someone links to an image on your server to display it on their site instead of linking to the image on their own server. You can prevent Hot-Linking by having a .htaccess file on your server.HTML (HyperText Markup Language)
This is the language used to write web pages. This page is written in HTML.ISP
Your internet service provider. AOL is a well known ISP.Java
A programming language used by programmers to build and create programs. Not to be confused with JavaScript (see below).JavaScript
A scripting language you can directly insert into HTML documents. They only work with surfers that have Java enabled on their browser.Legal Content
Adult content for which you have rights to display on your site.Model Release
Document that a model signs at the time the photographs of them are taken.Message Board
A message board is a place where you can ask and offer advice about the industry or just generally chat with other adult webmasters for example the message board at: http://www.europeanwebmasters.com.Newbie
A new adult webmaster.Partnership, Sponsor or, Affiliate Program
A revenue program that pays you a percentage or fixed price for every member you send to your sponsor’s site.Pay Site
An adult website where surfers have to pay a fee for access.Pic Post
A site where you can submit a picture and your ad on a daily basis.Plug In
A plug in is a ready-made type of web “CONTENT”. Many plug in providers will even host the content on their servers and allow you to change colors, Fonts and, add a logo graphic, so the plug in matches your site. Plug In content is generally more expensive than image content.Ratio
A ratio like this refers to click throughs and actual sales made from them. When a webmaster says they got a 1:250 ratio, they mean that out of 250 people who clicked on his sponsor banner, one of the surfers paid for memberships.Signup Ratio
The amount of surfers that paid to view your adult site (See the example above headed RATIO).Spamming
Promoting a site or service to newsgroups or e-mail addresses that have not given you permission to do so. Spamming can also mean posting your referral codes on message boards constantly inn order to get other webmasters to sign up beneath you.TGP (Thumbnail Gallery Post)
A site where you can submit your gallery pages. They in return put up your gallery and send you additional traffic.Thumbnail
A smaller version of an image used to link to a larger version of the same image.Turnkey Site
An adult site that is already designed and finished with logos, content, billing solutions and, hosting. All you have to do is maintain the site. Newbies often make the mistake of buying a turnkey site before they properly know how to market them.Traffic
The term used to refer to the amount of visitors to your adult website over a specific period of time.Uniques
Number of visitors to your site. If 10 surfers visit your site on any given day and 2 of them click onto your site 3 times the same day, it will be referred to as 8 unique visitors for that day.URL
A web address. Actual address to a page would be a URL. For example: http://www.adultwebmasternewsletter.com is the URL to our Adult Webmaster Newsletter Site.Warning or Entry Page
The page before a surfer sees the main content of your site.Web Host
A company that will provide you with a hosting account so that you may upload your website on their server so that surfers may see your site. For a reputable host you might like to try http://www.webair.com.Article written by Lee
-
JavaScript Know How
JavaScript can be one of the most useful additions to any web page. It comes packaged as standard in Microsoft’s Internet Explorer and, Netscape Navigator and allows webmasters to perform field validations, mouse-over’s, pop ups and a whole entourage of other nifty little features on our sites.
In this article we will show you how to:
– Display the browser name and version number
– Change the text in the status bar of the browser
– Use an input box to get text from the user
– Use a message box to display text to the user
– Change the title of the browser windowBefore that, however, we need to know how to setup our web page so that it can run the JavaScript. JavaScript code is inserted between opening and closing script tags: <script> and </script>, like this:
<script language=”JavaScript”>
–> JavaScript code goes here <–
</script>
These script tags can be placed anywhere on the page, however, it’s common practice to place them between the <head>and </head> tags. A basic HTML page that contains some JavaScript looks like this:
<html>
<head>
<title> My Test Page </title>
<script language=”JavaScript”>function testfunc()
{
var x = 1;
}</script>
</head>
<body>
<h1>Hello</h1>
</body>
</html>For the examples in this article, you should use the basic document format I have just shown you, inserting the JavaScript code between the <script> and </script>tags. When you load the page in your browser, the JavaScript code will be executed automatically.
Displaying the browsers name and version number.
The “navigator” object in JavaScript contains the details of the user’s browser, including its name and version number. They can be displayed in a browser using the document.write function:document.write(“Your browser is: ” + navigator.appName);
document.write(“<br>Its version is: ” + navigator.appVersion);I run Windows 2000 and Internet Explorer version 6, so the output from the code above looks like this in my browser window:
Your browser is: Microsoft Internet Explorer
Its version is: 4.0 (compatible; MSIE 6.0b; Windows NT 5.0)Changing the text in the status bar of the browser.
To change the text in the status bar of a browser window, just change the “status” member of the “window” object, which represents the entire browser window:window.status = “This is some text”;
Using an input box to get text from the user.
Just like in traditional windows applications, you can use an input box to get some text input from the user. The “prompt” function is all you need:var name = prompt(“What is your name?”);
document.write(“Hello ” + name);The prompt function accepts just one argument (the title of the input box), and returns the value entered into the text box. In the example above, you get the users name and store it in the “name” variable. You then use the “document.write” function to output their name into the browser window.
Using a message box to display text to the user.
You can display a message box containing an OK button. These are great when you want to let the user know what is happening during their time on a particular page. You can use a message box to display the “name” variable from our previous example:var name = prompt(“What is your name?”);
alert(“Your name is: ” + name);The “alert” function takes one argument, which is the text to display inside of the message box.
Changing the title of the browser window.
To change the title of a web browser’s window, simply modify the “document.title” variable, like this:document.title = “My new title”;
One bad thing about the “document.title” variable is that it can only be manipulated in Microsoft Internet Explorer. Netscape’s implementation of JavaScript doesn’t allow for modification.
In Closing.
As you can see from the examples in this article, JavaScript is a powerful scripting language that can be used to enhance a visitor’s experience with our site. However, you shouldn’t use JavaScript too much because in some cases it can annoy visitors and send them packing before your site even loads!Article Written By Lee
Premium Sponsors
Categories
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing