-
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
-
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
-
Why Go Adult?
When choosing a hosting company why choose an adult host over a mainstream one?
Simple, They provide above other things, a better quality of service, affordability and, most importantly, reliability.
Adult hosts face a variety of technical and support issues, this coupled with the points mentioned above makes them a far superior choice to standard mainstream hosting providers. This is one of the main factors why more and more mainstream internet based companies are now turning to the adult business forum to provide their hosting solutions.
Mainstream going adult? Yes that’s right, more and more mainstream companies are turning to our industries hosting providers for the fast speeds, security and, reliable infrastructures they can offer after all, adult sites are amongst the most prolific on the internet on average gaining more daily hits to their sites than mainstream websites so, they need to be cost efficient, not only to the hosting companies but, also to their clients, the webmaster.
Our industry strives on the use of heavy graphics, coupled with streaming media files to secure sales and longevity, this is why the adult hosting companies need to be able to provide not just a single, heavily laden server but tens of them, sometimes even hundreds all producing gigabytes of traffic on a daily basis.
Adult hosting companies are constantly upgrading their equipment in order to improve not just their servers, connectivity but also the smaller things that are often overlooked by webmasters, hubs, routers, switches and the likes along side the not so technical aspects of running a host, The staff.
Along with all of this technical equipment they also need to maintain a high level of technical knowledge, after all, not just anyone can install operating systems capable of running multi-million dollar industries. They need the knowledge to maintain, upgrade, repair and sell their services to the best of their capabilities.
What does this mean to you? Well, we all want to make money and, through the use of faster servers, e-commerce solutions and the technical support your hosting provider can give you, you will be fattening your wallet on a daily, weekly, monthly basis.
Adult hosting, quite simply, is the crème de la crème of the hosting world, they offer solid, solutions whether you are starting in the adult industry or, operate a mainstream e-commerce site.
So how do you choose a host that is right for you?
You need to ask some basic questions of the host and, do your homework. Not only should you find out what hosting solutions they can offer you but, you need to find out what their support service is like, how affordable they are in comparison to other companies who can offer similar or the same service. Whilst on the subject of hosting support, before you sign on the dotted line, give your host a call out of office hours, if they answer, then you can almost be certain they are a good hosting provider.
Of course, not all hosts will have 24 hour phone support, however, that said, some offer 24 hour icq support, email support and more.
Another sure fire way to find out if a hosting company is any good is to ask on the heavily traveled webmaster message boards, after all, you are not the only webmaster out there who will have tried this company, if they are no good, someone will know about it and point you in the direction of a reputable host like http://www.webair.com.
Hopefully, this article will have given you some insight into the world of adult hosting companies and, will assist you in making the right choice of host for your site, whatever type of website you might be hosting.
Article Written By Lee
-
The Next Big Traffic Craze – Thumbnail Link Lists
As adult webmasters are constantly thriving to create the next craze in traffic sources to garner sales from their sites it comes as no surprise that there is already talk amongst the ranks of the next big thing, what is this new idea? The Thumbnail Link List.
Thumbnail Link Lists – Re-Inventing The Wheel.
As the past year and a half have taught us as webmasters, regular TGP’s have almost become a thing of the past with more and more thumbnail TGP’s being created and submitted to daily, why then, has it taken so long for someone to think up the idea of the Thumbnail Link List? Quite simply I think it has been a case of to much has happened over the last 12 months in the adult industry for webmasters to think this idea up.So What Is A Thumbnail Link List?
A thumbnail link list is in effect a way of displaying free sites on your own standard Link List by utilizing small thumbnail samples of the images contained within the free sites galleries, in fact, much the same way that a thumbnail TGP works however, instead of only listing single image galleries your link list will consist of links to individual free sites.Much like the Thumbnail TGP traffic source, the thinking behind the Thumbnail Link List is that by showing your surfers what type of pictures the sites within your link list contain they will be more likely to visit the free site thus improving your CTR to your webmaster submitted sites and, ultimately, your site overall allowing you to manipulate the traffic to garner more sales for yourself as the Thumbnail Link List owner.
Submitting Your Site To A Thumbnail Link List.
Looking at the Thumbnail Link List idea from a webmaster who would be submitting your free sites for listing (and ultimately traffic) how do the rules of the Thumbnail Link List differ to that of the regular link list which we are all used to seeing, well for a start, the main difference will be that you either need to submit a thumbnail yourself or, enter the url to one of your gallery pages in addition to the main entrance to your free site, this will actually be the only significant change in how you operate your link list submissions compared tot he current link list method, however, as each Thumbnail Link List owner will have their own individual rules you should check before submitting as to what is required from you as a submitter.Thumbnail Link Lists – Overview.
The whole Thumbnail Link List idea is one that, in all seriousness should mean more traffic not only for the submitters of the free sites but, also for the Thumbnail Link List owner themselves, by offering the surfers a preview of the content contained within the free sites they will be visiting they can simply reduce the amount of sites that do not appeal to them and focus more on the sites that do meaning that the webmasters who submit highly niched free sites to the links lists will now be able to benefit from a larger traffic base and ultimately, more sales.Article written by Lee
-
Domain Name Extensions + SEO
With a slew of new TLD (Top Level Domain) extensions being launched in the first quarter of 2004 in addition to the hundreds already available how many of us actually take time to consider that when we register a .com, .net or, .org domain how will these sites help or hinder us with our search engine work? This is what we will take a closer look at in this article.
Domain Name Extensions – What Are They?
First of all, before we look at how the extensions of our domain names can assist us in running our search engine optimization methods we need to understand what the TLD’s themselves are actually for. Domain name extensions are essentially a way to recognize specific locales via the usage of domain names so for example, the domain name extension .com were primarily set up as commercial domain names however, with the commercial use of this extension it has also become, without a doubt the most popular extension for individuals or companies registering new domain names. In addition to the TLD extensions there are also a selection of domains extensions ranging from industry specific extensions such as .aero to country specific extensions such as .co.uk.Domain Name Extensions And Search Engines.
Now we understand what the domain name extensions were put in place for we can now start to look at how they may benefit us in terms of SEO (search engine optimization) for example, head across to http://www.google.com and do a search on something such as ‘penis pills’ you can see from the results shown (01/01/04) that the first 10 results are evenly spread across a range of domain name extensions ranging from .com to .net and also some smaller .go.ro domain extensions. This would lead us to assume that at the current time, Google specifically is not paying to much attention to the extensions of the domain names we are using however, given the recent updates of the last month or two across Google this has also cleaned up a lot of the results that were present 2 months prior to this search in which the .biz extension was highly populated in the rankings.Domain Name Extension Abuse + Spam.
With this slew of new domain name extensions being launched what seems like yearly this also opens up a whole lot of new problems for the webmaster primarily that of the domain name spam. Because domain names can be registered for as little as $5 per year many webmasters have taken to purchasing them, using them to spam the search engines and then, once the search engines discover the spam and remove the offending domains, the webmaster then moves on to new domains in effect, making domain names a disposable commodity to them. Whilst this method will certainly garner traffic for the search engine spammer it will also in turn mean that the traffic that honest webmasters receive from the search engines will be lower.Domain Name Extensions And Optimization.
Hopefully this brief article has given you a little insight into how domain name extensions can both benefit and also detriment your business, by choosing your domain name extensions carefully and, making sure you do your best not to spam the search engines you can make some serious income from pure search engine traffic however, once you start to buy domain names with lesser known extensions to purely spam the search engines you are not only wasting your own money but, are also potentially wasting other hard working webmasters money too.Article written by Lee
-
Whats A Twink
I think you would be surprised at the number of times I have been asked, “What’s a Twink?” Or my, personal, favorite “So how do two men have sex?”
If you know me, you know I am never really bothered by questions – I never mind people’s candor. What does bother me, though, is the bulk of the people who ask are trying to work the gay market. Unsuccessfully, I might add.
So, let’s expand our webmaster knowledge. Don’t worry, I am not about to explain how two men have sex (that I will save for my story site LOL)
I have decided, however, to give you a Gay Glossary of sorts. There are many terms that can be included here. But, I thought to start off, we will hit the basics and add to it as time goes on. Keep an eye for future articles and additions on Gay Wide Webmasters.
Here is a list of the most common terms on the Gay Adult ‘net:
- Twink – A buff and lean young man; a 20 something. Age and leanness make the guy a twink. The best example is your typical bar room stripper.
- Teen – This is the same thing as in EVERY market, hot young and under twenty – but LEGAL at 18.
- Hunk/Stud – Beautiful, built and beefcake. The guys commonly posing for calendars and such.
- Chubs (or chubby) – Just what it sounds like, a larger man. Not just muscular weight, most often heavy set.
- Bears – This is a HAIRY man. Not a young guy, most often over thirty, sometimes with a husky build (but not always). You will probably see this niche sold as “Real Men”.
- Cub – This is a YOUNG hairy guy. Sort of a HAIRY TWINK…
- Daddies – Daddies are men over thirty, who like younger guys. (Just a side note here to clear up some misconceptions, not all gay men want to do young guys!)
- Sons – the young male counterparts to Daddies. The young of the two can be a twink, cub or teen – makes no difference. This term is based on the visual couple. For our non-gay friends think of this as an example: the businessman who goes away for the weekend with his NEICE. See the comparison? LOL
- Transvestite – is a man who dresses as a woman. Whether it is simple underwear or all our female attire. A lot of webmasters confuse this with Transsexual.
- Transsexual – is a person who has decided to make the complete change and have a sex change.
- Trans Gender – this is a more general term for people who live life as the opposite sex. They are in the process of, or have completed, a sex change.
So know go have some fun. Try to classify your friends and lovers in these terms! I enjoy it when a webmistress comes up to me and says, “I heard your interview and I think my husband is a bear. But he’s a little twink-ish. What do you think?” This just makes my day! I have to laugh at the look on their husband’s face when they think I’m going to ask to examine them or something. “Turn you head and cough – OH! You’re a Twink…”
Along with what works, I have to offer some terms that DO NOT work. If used incorrectly or out of context, then your attempt at marketing to gay men can be dreadful.
- Faggot – I hate this word, personally. This is a word that is as derogatory to the Gay Community as other words are to a race.
- Nancy boy – a typically non-US term that basically is used as a derogatory manner.
- Lil Boys – a derogatory term used primarily in the Southern and Mid-Western US. It’s derived from the negative connotation that gay men are pedophiles.
- Gay Owned and Operated. Allow me to be blunt – If it is not true, do not say it. This is probably the most OVER used phrase in the gay adult market. So much so, it is relatively meaningless today.
We all need to remember from time to time, the key to success in any business is knowledge. Whether you are up selling to a sponsor or designing sites, knowing some of the more common terminology in the gay community can only help your ventures in the gay adult market. And remember, do not be afraid to try and NEVER be afraid to ask.
As always, good luck!
Article written by Gary-Alan
-
Resource Forums – The Changing Face Of The Adult Industry
Online adult webmaster resource sites are becoming a thing of the past instead, we have witnessed a new breed of resource site being birthed in the adult industry, the resource forum. It seems like almost every major adult sponsor and webmaster has their own resource forum as of the current time however, what is making these forums stand out from one another and, more importantly, can you actually learn anything valuable from them.
Webmaster Resource Forums.
Back in the day there were only a handful of resource forums made available for adult webmasters to educate themselves further, these included such sites as Ynot Masters, Netpond (then The Condom Chronicles) and Porn Resource, however, to date there are no less than 200 webmaster resource forums floating around the internet for adult webmasters to post on.With this amount of resource forums available to webmasters it seem impossible that many webmasters cant be making a profit however, upon closer inspection a disturbing trend seems to be taking place.
Resource Forums – Webmasters Posts.
With the sudden surge of webmaster resource forums in the last 6-12 months there is one thing that is apparent, most of, if not all of the resource forums to have spawned during this time have one thing in common, the webmasters who post on them, often, these webmasters are posting for a single reason, to get other webmasters to click on their signatures, nothing more, nothing less.It would appear that the adult industry is heading towards a meltdown of the adult resource forums, with more and more webmasters grabbing free scripts such as phpbb to load onto their domain and launch their own resource forum it would appear at first glance as if the industry is a thriving community of webmasters all willingly helping each other out however, this is not the case, instead, we find post after post duplicated across multiple resource forums in the effort of making the longest thread, getting the most page views and, ultimately, getting the most signature clicks.
Webmaster Resources.
So with all of this going on what’s happening to the actual resource sites? Well they are still around and, they are still being used however, these have now become second place to the message forum, often as mentioned above, webmasters will post the same message on several message boards and get several replies of exactly the same answer from exactly the same people. Whilst this in itself is a good thing (the exchange of information) my personal feelings are that we are heading towards an excess of resource forums and, whilst communication is needed, there also becomes a point at which you can get an information overload, new webmasters entering the adult industry will see the variety of forums made available to them and start posting however, in doing so they forget the one thing that they actually should be doing, working.Webmaster Resource Forums – Overview.
I think within the next 12 months we are going to see one of two things start to happen, either the resource forum phenomenon will continue as it is doing now or, the resource forum will become a thing of the past whilst a new medium takes its place, one thing is certain though all these webmasters posting on forums to get sig views and post counts are not doing the one thing they should be, making money and, this becomes all to apparent after watching the same old posts, make the rounds to the same old forums time and time again.Resource forums can be great help to the adult webmaster however, at the same time, they can also become a webmasters biggest downfall, remember why resource forums are there, to help you when you need it and to socialize when you have to, at what point to do you stop getting help and start becoming a post whore? Well only you can answer that question.
Article written by Lee
-
Maximizing Your Profit Potential – Upsells
We all know the reason why pay sites have upsells inside them, to make more money so, the past few weeks I have been ‘experimenting’ with the same type of strategy the pay sites use and, to my surprise, actually found out you can make quite a nice amount of additional income by offering your surfers products or services other than porn!
Now, this may come as a shock to many but, when you build a free site, TGP Gallery, AVS site etc you can use non adult products on them.
I have found the following work well for the various different types of site:
Free Sites.
Dating Services such as http://www.oscardate.com , http://www.adultfriendfinder.com, etc etc.Video Stores such as http://www.mallcom.com and http://www.moviemountain.com.
Sex Toys such as http://www.gayadultshopping.com and http://www.mallcom.com (Mallcom sells toys and videos)
Also, to my surprise, search engines have done really well on our traffic. Where we would usually use a text link I SSI’d some files and included some text files going directly to a variety of niches earning me in excess of $0.40 per click in some instances!!
AVS Sites.
Dating Services like those mentioned above e have found have done reasonably well however, for some reason not as well as they did on the free sites, you would think that they should do better than on free sites so I guess it is something wrong with my marketing, either way, we just plugged a link to one of our dating affiliates and, sure enough made some $$$ from them.Penis Enlargement programs did VERY well inside our AVS sites again, all we did was place a simple text link with ‘enlarge your penis’ for the text and, surprisingly we made a few good sales from that.
We also integrated our own little MallCom store front on its own domain and have been sending traffic to that and, again, the results have been reasonable.
TGP Galleries.
To my surprise, the most profitable thing that we have tested on our TGP Galleries is again, Penis Enlargement type programs, Viagra sales from http://www.kwikmed.com have been doing well the last few weeks and we even had a rebill already!One thing that I didn’t expect to work well that did was email collection, in fact, after just 10 days we already have 95 email addresses purely from our TGP Galleries. These emails will be used further in time to send out our newsletter and hopefully make some recurring sales from them.
I guess the point of this was to let you know you can use alternatives to your adult orientated sponsors on any type of site you build and make a profit from them.
Anyway, I’m off to do some more testing, I have found a nice casino sponsor imp going to send a few days of traffic to.
Article written by Lee
-
Building A Surfer Trap – Stage 6
Stage 6 already!
Only 2 more stages to go after this tutorial until you have a fully functional surfer trap!
Ok as promised in the last tutorial, we are going to implement the table pages you hopefully made in our last tutorial.
You now need to signup for ANOTHER counter code. Use the same counter as you did last time and, again, make sure the URL you send the traffic from the counter to is your main Multi-Site FPA surfer trap page.
Ok, you have the new counter code, what you should do with this is place it on every one of the niche table pages we made yesterday. Nowhere else except on these pages.
Once you have the counter code placed you now need to go back to our consoles, what we are going to do is make these HTML table pages into a secondary console from off the first pop up that we get when a surfer visits any of our FPA’s.
What you should do is enter the following coding in between the <head> and </head> tags of the niche pop-ups ensuring that you choose a DIFFERENT niche to the one of your original consoles:
<!—— BEGIN CONSOLE CODE ——->
<SCRIPT language=Javascript>
<!–
var exit=true;
function exitcnsl()
{
if (exit)
open(“http://www.yourdomain.com/tableconsolepage.html”, “tables”,”toolbar=0,location=0,status=0,menubar=0, scrollbars=0,resizable=0, width=800,height=600,top=0,left=0″);
}
//–>
</SCRIPT>
<!—— END CONSOLE CODE ——->You need to edit the figures for width= and height= to reflect the size of your table, ideally the frame of the console should be around 3 or 4 pixels either side of your tables.
Ok now once you have added the above to your existing pop-ups you now need to add the following to the newly created table consoles between the <head> and the </head> tags:
<SCRIPT language=javascript>
self.blur();
</script>What this will do is once the first console loads, it will immediately load a second console but, this second console should be ‘hidden’ behind the main window that is displayed. We have created a blur console.
We now have one last thing to do with this ‘blur console’ that we have just created.
Go to the HTML coding for the table ad console and add the same JavaScript to that page however, this time you DO NOT need to use the self.blur section of the instructions or, change the sizes of the console that pops.
Instead you need to add the following to the <body> tag:
onUnload=”exitcnsl()” so as an example your body tag may look like this:
<BODY BGCOLOR=#000000 onUnload=”exitcnsl()”>
Now you also need to alter the location for the console that will pop this time, you have a choice, you can send the console directly to the ARS POTD program or, you can send it BACK to your Multi-Site FPA page, at which point the surfer will be able to select another niche or leave your site.
Now remember, this surfer trap IS aggressive however, every time one of your counter codes load both from the FPA’s where we implemented them AND on the newly created table consoles we are gaining extra traffic.
If you have ANY questions at all please do not hesitate to post on the forums and myself or one of our administrators will assist you.
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