• Redirecting Questionable Adult Traffic

    Date: 2011.02.24 | Category: 2257, Scripts | Response: 0

    The one thing almost all reputable adult webmasters agree on is that one way or the other, we want to rid the net of those webmasters that profit from traffic primarily gained from either the direct promotion of or, targeting of, keywords relating to child pornography however, how can you tell what traffic you are being sent and, more importantly, how can you do something about the type of traffic that you receive to your site in order to filter out this unwanted traffic? The answer is simple, use a script to redirect the traffic elsewhere before it even hits your site.

    Child Porn Redirection Php Script.

    The following php script when used on your server will enable you to send unwanted traffic gained by the promotion of using ‘illegal’ keywords in the search engines and sites which link to your own.

    <!– Start Copy Here –>

    <?

    // Redirect “Lolita” traffic

    $refer_full_path = “$HTTP_REFERER”.”$PATH_INFO”;

    if(( preg_match(“/lolita/i”, $refer_full_path)) ||
    ( preg_match(“/child/i”, $refer_full_path)) ||
    ( preg_match(“/preteen/i”, $refer_full_path)) ||
    ( preg_match(“/pre-teen/i”, $refer_full_path)) ||
    ( preg_match(“/pedo/i”, $refer_full_path)) ||
    ( preg_match(“/underage/i”, $refer_full_path)) ||
    ( preg_match(“/beast/i”, $refer_full_path)) ||
    ( preg_match(“/rape/i”, $refer_full_path)) ||
    ( preg_match(“/kinder/i”, $refer_full_path)) ||
    ( preg_match(“/incest/i”, $refer_full_path)) ||
    ( preg_match(“/kiddie/i”, $refer_full_path))) {

    header(“Location: $refer_full_path”);
    exit;
    }

    ?>

    <?
    $words=array(“childporn”,”underage”,”beast”,”interracial”,”lolita”,”preteen”);
    for($i=0;$i<count($words);$i++){
    if(eregi($words[$i],$HTTP_REFERER)){
    header(“Location: http://www.fbi.gov/?CHILD_PORN_ON_DISK_LOGGED_AND_REPORTED”);
    }
    }
    ?>

    <!– End Copy Here –>

    In order to use this script, simply add additional keywords or partial word matches to the top part of the script and, include the bottom half of the script at the top of your HTML coding.

    Any traffic being sent to your site via keywords which you have specifically told the script not to allow access to your web site will be forwarded to the url in the bottom part of the php script which again, can be changed to wherever you like.

    Article written by Lee

  • Building A Surfer Trap – Stage 3

    Date: 2011.02.21 | Category: Traffic | Response: 0

    Building A Surfer Trap – Stage 3.

    You should hopefully by now have a basic looking surfer trap ready on your server and on your hard drive.

    Now we need to start to ‘dirty’ this surfer trap up a little.

    We have already added 1 pop-up console to each of the FPA’s including the Multi-Site FPA.

    For the next step in this ‘dirtying’ process we need to add some additional links onto each of the FPA’s including the Multi-Site FPA.

    On the FPA’s what you need to do is create a ‘no thank you’ link so, if your surfer does not want to visit the site for the FPA you have sent them to you can send them to an alternative.

    This no thank you link can go to one of two places, you need to decide where you feel the traffic can be best utilized however, from my experience i would highly recommend using this first method:

    Link the ‘no thank you’ text on each of the single site FPA’s to another DIFFERENT niche FPA in your surfer trap so, as an example, if your surfer is on the All Petite FPA in your trap, the ‘no thank you’ link would lead to Just Toon’s. If they decide not to go with the Just Toon’s site, the ‘no thank you’ link on this FPA would go to Gay Ultra and so on, you need to ensure however, that the ‘no thank you’ link goes to a completely different niche to the one of the FPA the surfer is currently on.

    The second option you have is to link the ‘no thank you’ text to the ARS POTD (picture of the day) program. This will be your last chance at selling the surfer to one of the ARS pay sites.

    In addition to the ‘no thank you’ link on each of the FPA’s you also need to add a small table to the Single-Site FPA’s. ideally this should be four columns across and 2 rows down. This will give you 8 places to put a one or two word link going to another different niche FPA than the one the surfer is currently viewing however, you also need to ensure that these 8 links are going to a different FPA than the ‘no thank you’ link you have created.

    The above stage is where we could potentially start to lose people in the instructions therefore if you have ANY questions or queries regardless of how small they may be please post on the forums.

    This stage should hopefully only take you a couple of hours to complete and, once you have tested all of the links and uploaded the FPA’s to your server you are all set for the next MAJOR step in this project…. Generating Fresh Traffic.

    Article written by Lee

  • How To Become A Gay Porn Star

    Date: 2011.02.22 | Category: Employment, General | Response: 0

    A quick look across the gay side of the adult industry will show it is lacking in one thing that its straight counterpart has in an abundance, amateur male models with their own adult porn sites. With that said, if you wanted to tap into this market how could you go about doing so and, more importantly, could you make money from working on the other side of the camera for a change? This is what we will look at in this article.

    Becoming A Porn Star – The Basics.

    Any web cam model will tell you, to have your own porn site will take a lot of persistence, time and, more importantly, personality, not least from the webmaster side of the industry however, in my opinion I think the pressure that a webmaster may face breaking into the gay male porn side of the adult industry might just be a bit harsher than what the bubbly web cam girls have to contend with, not only because as a male you will be appearing in content but, because your primary traffic base, whether you like it or not, will be a mixture of women and gay males.

    Male Amateur Sites – Getting Ready.

    Before you start to even put your first ideas down on paper you need to do one thing, spend some time to research what is needed in order to start your own amateur porn site. In doing so, you will see that not only is everything in the two paragraphs above true but, you will also learn a little about yourself and, more importantly, about other webmasters and your surfers. Now you have the fundamental questions you need to ask yourself these are, What equipment do you need to run a male amateur site? What amount of investment in both time and money do you need to put into building your site? How much will you charge your surfers for access to your site? and, Is this going to be a long term commitment from yourself that could be possibly better spent elsewhere? Answer those questions as honestly as you can before proceeding and furthermore, think long and hard about the answers.

    Gay Amateur Web Sites – The Alternatives.

    So lets stop for a moment and consider that you have realized you do not want to build and maintain your own male amateur site but, you would still like to be male porn material, where do you go from here? Well there are companies who can put you on their books and give you work from time to time such as http://www.redbagproductions.com a male modeling agency for the adult industry, this will in all likelihood be the place for you to start your search, find out how many places there are that can get you talent work and, what type of modeling work you will be required to do.

    Becoming A Gay Porn Star – An Overview.

    With sites online such as Every Stag and the slew of other male modeling agencies finding a medium to start your modeling career wont be hard but, with this career comes uncertain hours, hard work (in more ways than one) and, to some extent, fame amongst the gay adult porn surfer. If this is something that you feel you can devote the time and energy towards and, are able to cope with the voyeuristic side of your personality then go for it, if however, you are still unsure after reading this brief article, perhaps becoming a gay pornstar isn’t for you?

    Article written by Lee

  • Marketing to European Surfers

    Date: 2011.02.22 | Category: Promotion | Response: 0

    Marketing to European Surfers.

    Today we’ll try to answer couple of questions regarding dialers and how to market them to European traffic.

    How to get traffic to your European market targeted site?

    Pretty much the same way as for all the other sites, lets German market for example (Germany, Austria, Switzerland) use SE’s, German link-lists, TGPs,… feed site with your own traffic, and don’t forget to use exit-consoles.

    Is your site translated into specific language?

    Yes, of course you won’t get far using English template on German/Spanish.. sites… You can always contact Adult Site Translation if you need help with translations.

    What sponsor should you use?

    That is pretty hard to say. Practically since almost every European based sponsor offers dialers so it doesn’t really matter which one you choose. It’s the same with per sign-up sponsors: It depends how good you are in sending traffic to them. And as always try couple of them and see which one works best for you. Most of the sponsors will offer to your surfers to pay by CC, bank account and dialers.

    Me personally, I don’t really advertise dialers. I go for sign-ups because most if not all European sponsors are recurring and it brings more money in the long run. But if a surfer wants to pay the (admittedly) high phone bills – that’s fine with me In fact, sometimes I get more money from a 0190-number (dialer number in Germany starts with 0190) than I’d get if the surfer would sign-up with his CC and would cancel his membership after the first payment.

    Why are dialers so successful in the German/European market?
    Well, I can think of 3 reasons for this:

    1.) 0190-numbers are very common in Germany. Many support-hotlines use them, you can download logos for your cell phone via 0190, you can get health-tips via 0190, fax-numbers, etc… Germans see those numbers everywhere and get used to them. Of course they know that they are expensive but I think they tend to forget this because they are so common.

    2.) Much of my income from dialers is from Swiss and Austrian people. Especially surfers from Switzerland LOVE dialers (Some of them spend hours/nights with dialers and in the end if i get 50% of that for me is not bad, isn’t it? :) I think they love dialers because they hesitate to give out the information on their CC (if they have any) and they can’t/don’t like to transfer their money via bank transfers. So dialers are actually their only way to get into the members-area.

    3.) Credit cards are not very common in Germany. I would guess only some 30% have one and many who have one don’t believe that CC transactions on the internet are secure. So most of the surfers have only 2 options left: Paying by bank account or using a dialer. The bank account has 2 disadvantages in the eyes of the surfers: 1st “The sponsor knows my name, my account number, where I live and that I’m a greasy little wanker who pays for porn. -Maybe this sponsor is going to tell my neighbors about it-” 2nd “How can I explain this to my wife?” On the other hand the dialer has advantages: 1st It is anonymous. Nobody knows who and where the surfer is. 2nd The dialer is faster than typing all the necessary information needed for a bank transaction. A few seconds for a 35kb download and the surfer is ready to go. 3rd You can always find a reason why there’s this 0190-number on the phone-bill. “Well darling, you know, I had problems with my new graphic card and I had to contact the customer-support. Those damn bastards are on a 0190-number what what can I do?”

    Well, that’s about it on dialers. One warning at the end: If you like to give them a try beware of those that do auto-downloads and auto-installations. Surfers don’t like them. Use dialers where the surfers needs to click somewhere to download and install them.

    Article written by Lee

  • Adult Search Engine Optimization

    Date: 2011.02.21 | Category: Promotion, Search Engine Optimization | Response: 0

    Gone are the days when adult webmasters could Spam the search engines and get highly trafficked sites within a month of the search engines updating many of the search engines caught onto the adult industry very early on and started changing the way in which they indexed sites they went from meta tag optimized listings to theme indexing to almost every type of search engine optimization method in between.

    Search Engine Optimization Techniques.

    It would seem with the changing times of search engine optimization that there is no longer a single solitary way to get your adult sites listed highly in the search engines but rather a mixture of different adult seo methods being used on a single site ranging from increasing your pagerank, including relevant meta tags and page content to standard adult search engine optimization methods such as getting other popular websites linking to yours but with this comes a new challenge of its own webmasters need to get back to the basics to figure out what worked then and, what will work now so far as adult search engine optimization goes.

    Adult Search Engine Optimization Companies.

    There are many companies currently online that can offer adult webmasters their search engine optimization services however, how do you choose an SEO company that will not only work for you but, is cost effective for your needs, the simple answer is to ask around, there are sites online presently that offer monthly memberships to gain access to their adult seo techniques in the form of articles and tutorials just as their are sites that offer no information whatsoever or, information that, while it worked three years ago, it no longer works in today’s adult seo marketplace. You need to ask for advice from customers who have used adult optimization companies in the past and see how their results improved as well as making sure that what you are actually purchasing is a service that doesn’t just guarantee you improved site rankings but actually guarantees you will see a profit from the money you spent on the optimization services.

    Adult SEO Breakdown.

    Adult search engine optimization companies have only really become apparent in the adult industry over the last 6-12 months however, many well known and respected webmasters have been working on optimizing their adult sites for years and, whilst doing so, they have also achieved a vast knowledge base on how to optimize your adult sites for the search engines, again, ask around on the message forums to find the solution that will best suit your needs and budget and you wont go far wrong, the adult search engine optimization business model is one that in all actuality should change on a regular basis however, as mentioned above some companies are still using the same optimization methods they used three or four years ago, make sure you do your background checks before parting with any money and, most importantly, use the search engines to find their sites in search terms where, if they were any good at all, they would already have first page listings.

    Article written by Lee.

  • Why Go Adult?

    Date: 2011.02.21 | Category: Hosting | Response: 0

    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

  • Think Fresh – Work Smarter

    Date: 2011.02.24 | Category: General | Response: 0

    We have all experienced it at some point in our webmaster career, more often than not though, we hear about it all the time. What is it? Wanting to give in when we hit that proverbial brick wall.

    Hopefully this article can offer you some help and advice when it comes to getting your sales back on track or, even getting them started at all.

    Ask For Help.

    The one thing that amazes me about this industry is that despite the fact we are all business competitors we are all (mostly) willing to help other webmasters out for little or nothing in return. if you hit that brick wall then imply ask for some help.

    As webmasters we have a barrage of free tools readily available to us for asking the advice of others whether it is in email from your sponsors support reps, icq or even on the many industry related chat boards, by actually spending sometime to help yourself by asking others you can often see things from a new perspective and, get advice as to why thing that should be working are not.

    Start Over.

    So you have been doing this webmaster job for the last few months submitting to the TGP’s, building free and AVS sites but you still haven’t made a dime, something is wrong somewhere but how do you pinpoint the error? By far the easiest way to find out what is wrong is to start afresh. Head over to one of the webmaster resource sites and see what others are doing ask for advice and feedback on your sites and learn from the experiences they tell you about. Just because you might have heard the same information before doesn’t mean you shouldn’t ask about it, often one webmaster will be able to tell you an alternate way of doing something that another webmaster is. One of the best ways to get a grasp on this learning curve is to read articles and tutorials, there are thousands of them on the net from HTML to Programming and everything in-between emulate the information contained in these articles and adjust that same information to suit your needs.

    Don’t Stagnate.

    If you are not having success at the AVS side of the business try something else, you already have a good base for building free sites and even TGP’s just because you have never tried using these sources of traffic and income doesn’t mean you wont be any good at them.

    If traffic is your problem as mentioned above, ask others where they get their traffic from and how they built it up, learn to start small and grow instead of running head first into millions of hits a month that are being wasted.

    Research The Industry.

    If you are thinking of quitting, before you do spend a day or two just doing a little background research in the industry, its no secret that webmasters who join the online industry today have to work two or three times harder than our peers who joined several years ago, this is and always has been true in any business. By researching the industry you should be able to find out how others that joined before you failed and, more importantly, WHY they failed, learn from those experiences.

    Finally.

    No matter how hard and meaningless you find the work stick at it, just because you are not making any sales it doesn’t mean you wont make any sales tomorrow or even next week / month / year. Keep turning those sites out and, soon enough, when you least expect it you’ll make a sale and, you know what… the euphoric feeling you will get will be more than enough to make you realize that you HAVE been doing something right all along.

    Article written by Lee

  • Mirroring Adult Sites – Stage One.

    Date: 2011.02.23 | Category: Promotion, Tutorials | Response: 0

    In this next series of tutorials I will be exploring the benefits of utilizing your existing content to build more sites in the least amount of time possible, in fact, after you have completed the steps in this tutorial series you should be able to build over 20 types of site within 5 minutes using a single set of 50 pictures.

    So, onto the start of our tutorial.

    Stage one in this tutorial is something we have ALL done before, so what you need to do is this…

    Build a 50 pic free site, this is using a lot more content than a ‘standard’ free site however, what we are actually going to be making is a set of AVS sites and several TGP galleries, along with some SE pages and also some links list mirrored pages using this set of 50 images by building just ONE site! Sounds impossible? It isn’t… read on….

    Your site should have the following on it:

    1) Warning Page (index.html)
    2) Menu Page (menu.html)
    3) Gallery Pages (5 galleries of ten pictures called gallery1.html, gallery2.html etc)
    4) HTML Large image pages x 50 (picpage1.html, picpage2.html, etc.)
    5) Multi Site FPA (fpa.html)

    Now lets break these individual pages down into sets of instructions for each:

    Warning Page.

    This should have your standard warning text placed on it, along with an enter AND an exit link. The ‘enter’ link should link to your Multi Site FPA and the ‘exit’ link should go to a program such as the ARS Discreet Browser tour page.

    Menu Page.

    This should be a page containing an odd sized banner, links to your 5 gallery pages, plus text links at the bottom of the page ideally, these text links should be in the same style as the niche tables we created for the surfer trap except they should only contain 4 cells instead of 8. These links should go to a different ‘niche’ as the one you are building your current site for and, link to the existing FPA’s of your surfer trap.

    Gallery Pages.

    On your gallery pages, ALL of the thumbnails should be linked to the relevant HTML page with a text link at the top and at the bottom of the HTML page (No Banners are to be used on the gallery pages!) Also, the file names of the images should be pic1.jpg, pic2.jpg, etc for the full sized images and, thumb1.jpg, thumb2.jpg etc for the thumb nailed images. your images MUST be named this way!!

    Multi Site FPA.

    This should link to the individual FPA’s that you should already have on your server if you followed the surfer trap tutorial series (If you did not create this surfer trap the tutorials can be found at this link) as well as linking to the Single Site FPA’s this should also have a ‘no thank you’ link which goes to your Menu Page.

    Images.

    You need to have 50 images, you also need to have 50 thumbnails for the content you will be using on this site. I usually select my content by the niche I am building for, rename the images using The Rename then, once renamed I use Thumbnailer from Smaller Animal to create the thumbnails for each of the renamed images. This will give you 50 full sized pictures with 50 thumbnails named respectively for the larger image.

    They are the basics, now onto the good stuff…

    Once you have created these pages you need to create some folders on your Hard Drive which will be the SAME structure you will have on your server. This folder structure should look somewhat like this once you have saved each of the pages we have just created into their respective sub folders:

    FreeSite/index.html
    FreeSite/AVS/
    FreeSite/FPA/fpa.html
    FreeSite/Galleries/gallery1.html, gallery2.html, gallery3.html, etc, etc.
    FreeSite/Images/pic1.jpg, etc.
    FreeSite/Images/Thumbs/thumb1.jpg, etc.
    FreeSite/LinkList/
    FreeSite/Menu/menu.html
    FreeSite/PicPage/picpage1.html, picpage2.html, etc.
    FreeSite/Recips/
    FreeSite/Engine/
    FreeSite/TGP/

    This will give you 5 folders with HTML pages in them, one folder with the full sized images, one with thumbnails in it and five empty folders.

    At this point we will end the first stage in this tutorial as this should take you a couple of hours to complete.

    Article written by Le

  • 10 Killer Advertising Sentences

    Date: 2011.02.21 | Category: General | Response: 0

    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.

  • JavaScript Know How

    Date: 2011.02.22 | Category: Scripts | Response: 0

    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 window

    Before 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

Site Links