• Are Your European Surfers Male Or Female?

    Date: 2011.02.21 | Category: Promotion | Response: 0

    In Europe, the domain of the Web still belongs to the younger generation, with nearly 80% of European surfers under the age of 30. This is not surprising, as Europe is culturally quite different from the US.

    The older generation in Europe has typically been slower to adopt new technologies and habits compared to their American counterparts, and we can’t see this trend changing anytime soon. Cultural differences will limit Internet penetration among the older age groups.

    Female Internet usage still lags in Europe, with slightly more than 20% of Web users being women. Although this difference is less pronounced in the UK, on the Continent, males still dominate the Web scene.

    Our Target Audience

    What does this tell us? Well, first of all, it tells us that the European audience is growing more and more each and every day but, we already knew that, what we didn’t know however, until now, was just what percentage of European surfers could be persuaded to buy porn memberships or related goods from one of our sites.

    Most paysite owners will tell you that, on average the ages of their members range from 25-30 and, as such, the European market could potentially supply a vast majority of these signups if, they got the overall balance of their sites right.

    The Solution

    As you should already know by now, the European porn surfer has different expectations to its US counterpart, they wont give out personal information as readily as American surfers, this includes their email address so, this rules out sending them to ‘For Free’ programs, they are also getting really pissed-off at having to download dialer programs to access porn, heck, the average phone bill in Europe is almost double what it is in America, why antagonize these people even more? They know they are overlooked when it comes to porn surfing so we need to stop neglecting these surfers, get a site translated into a foreign language, broaden your horizons, tap into an as yet ‘untamed market’ I feel certain that if you take a few basic steps your bottom line can be increased significantly, it all comes down to this…..

    Do you have the balls to try something new?

    Article written by Lee.

  • Building A Surfer Trap – Stage 6

    Date: 2011.02.21 | Category: Traffic | Response: 0

    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

  • Converting Italian Adult Traffic – The Niche Paysites That Work

    Date: 2011.02.21 | Category: Traffic | Response: 0

    Continuing with our article series of country specific traffic and which niches work for the various global markets in this article we will take a look at some of the most complicated traffic to ‘work’ Italian Adult Surfers. The reason I say most complicated is for the simple reason that, to date there are very few Italian paysites this makes it harder for us as webmasters to tap into these markets especially if we ourselves, do not know what the Italian surfer is after. That said, lets get on with the article.

    Italian Traffic – Quick Analysis.

    As already mentioned surfers from Italy are hard to pre-qualify given that there are very few sites catering to this European market at the present time, this means that there are no sources of background information to look at or, statistical analysis’s available from other paysites.

    Italian Adult Surfers – The Niches.

    For one of the most affluent international markets going it comes as a surprise to see that there are almost no localized pay sites for the Italian market this made our initial filtering of the Italian traffic much harder opting for translated free sites over paysite tour pages to send the traffic to itself then, once they hit the free sites either choosing to send them back into our central hub or, to the US version pay site of the niche free site they were visiting. That said here are the results from the previous 3 (three) months of traffic that we observed.

    Ebony.

    The Ebony niche would appear to be the most consistent converting niche on Italian traffic however, given that almost all of the niches we used on the Italian surfers were quite evenly spread for sales (Ebony was only 5 sales in front) this, I am sure is not a good indicator and, likewise with the Japanese and Chinese traffic, this is an area of international adult marketing that should ideally be re-visited at a later day.

    For Women.

    Even more surprising than the fact there are very few localized paysites for Italy was the fact that the ‘For Women’ niche converted just as well as the other niches we used for our Italian traffic, of course, this at first would seem to indicate that the vast majority of surfers we had on our sites from Italy were female however, as we all know, the Straight male niche is big in gay so, there is a chance the sales we got from our Italian traffic to the For Women niche paysites we used were equally male and female.

    Softcore General.

    (Softcore Adult Tours) The other strange thing we noticed was that paysites we offered to our Italian surfers that were Hardcore in nature didn’t convert as well as the paysites that had softcore tours, this would lend itself to the fact that Italian porn surfers are not looking for hardcore – quite different to most other country traffic sources.

    Tranny.

    The transsexual niche paysites that we offered to the Italian surfers also had some good results again, this is strange given that almost every other countries surfer we sent to a tranny site didn’t convert. One other thing that comes up with this and, given the fact that the for women niche paysites we used had good results would be that perhaps the Italian surfers are interested in the more obscure niches available on the adult internet.

    Italian Adult Traffic – An Overview.

    All in all, as stated at the beginning of this article the Italian surfers would certainly appear at first glance to be more varied and obscure in their sexual preferences than other countries whom appear to have clear cut, well defined ‘types’ of site that interest them.

    I think as mentioned above Italian traffic needs to be looked at in more depth in a future article as, to my surprise the traffic didn’t work on the niches that previously converted well for the same amounts and quality of traffic.

    Article written by Lee

  • Protecting Your HTML Code With JavaScript

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

    We all know that source code theft is wrong and covered by copyright never the less some webmasters will inevitably try to steal the work that the honest ones amongst us create.

    Unfortunately, there is no sure fire way to stop people from stealing our HTML code but, we can make it hard for them.

    The following JavaScript coding, when placed in your <body> tag can make it harder for the opportunistic webmaster to steal your coding.

    Simply copy and paste everything below into your body tag and change the text in the var message=”” field.

    <!–Start Copy–>
    <SCRIPT language=”JavaScript”>
    <!–
    var message=”Copyright 2000 by Your Site. WARNING ! All content contained within this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.”;
    function click(e) {
    if (document.all) {
    if (event.button==2||event.button==3) {
    alert(message);
    return false;
    }
    }
    if (document.layers) {
    if (e.which == 3) {
    alert(message);
    return false;
    }
    }
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=click;
    // –>
    </SCRIPT>
    <!–End Copy–>

    Whilst this is not a sure fire way to stop the occurrence of HTML theft as mentioned already it will deter those webmasters who perhaps were there for the simplistic reason of viewing your source code.

    Article written by Lee

  • Adding Images To Your Web Pages

    Date: 2011.02.21 | Category: WebDesign | Response: 0

    The Basics

    Adding Images To Your Web Pages – The Basics.

    So you have just got into the online adult business but don’t know your ass from your elbow, you have the simplistic stuff relating to HTML down but, you want to find out how you can start adding banners and images to your pages here is a quick guide to help you on your way.

    What Is An Image?

    The answer, is, believe it or not simple, An image is a picture on a page of your website. There are however, many way to display images on your site from the size of it to the overall effect you want the image to have on your HTML page and from borders around the image and many other things.

    However, I don’t want to blind you with information at the moment considering you need to actually know the basics of adding images before you can start using fancy styles and the likes.

    Adding A Basic Image.

    The HTML code to add an image on any HTML based page is a straight forward one however, before you can use this HTML tag you need to know where on your page you want the image to appear.

    Now that you have decided where you want your image to display you need to use the image tag, the HTML coding to place an image on your page should be IMG. Also, you will need to tell your page where you want the image to come from or, in other words, you need to tell it the source of the image you want to use the HTML tag to do this is SRC.

    For example, lets say you have an image called porn.gif (you need to include the extension in your SRC coding) you would display this image on your page using the following code:

    <IMG SRC=”porn.gif”>

    Simple huh?

    Well, actually, maybe not, for example, what do you put if the images you are linking to is NOT in the same location as the page you want it to appear on? That’s not a problem, all you need to do is use the FULL location of the image in your IMG HTML tag like this:

    <IMG SRC=”http://www.domain.com/images/porn.gif”>

    You should now be able to include images on your pages without any problems.

    Image Sizes.

    Ok we can now include an image on our pages but, what if we want to make this image fit the feel of the rest of our page / site, how do you manipulate the graphic to ‘look’ right?

    There are a number of ways images can be manipulated for example, if you want the image to be 100 pixels wide by 100 pixels high you can add the WIDTH and the HEIGHT tag to your HTML coding like this:

    <IMG SRC=”http://www.domain.com/images/porn.gif” WIDTH=”100″ HEIGHT=”100″>

    That will now resize your image into a square that is 100 pixels wide and high.

    Now we have the image on our page in the right size we require what else can we do with it? Read on..

    Borders + Colors.

    In addition to placing the image and resizing the image on our pages we can also add a border and, a border color to the mage to make it stand out if needed for example:

    <IMG SRC=”http://www.domain.com/images/porn.gif” WIDTH=”100″ HEIGHT=”100″ BORDER=”2″ BORDERCOLOR=”FF0000″>

    As you can see we have now added the two tags ‘BORDER’ and ‘BORDERCOLOR’. The first ‘BORDER’ tag tells your HTML what size of border you want around your image and, this can be any size you want to make the image stand out on your page. The second ‘BORDERCOLOR’ tag tells your HTML code what color you want the border to be again, this can be any color you like to match the rest of your sites pages.

    Linking An Image.

    In addition to resizing, adding borders and colors we can also link our image to a specific URL (the most common form of this is with banner advertising) and, if you want to link your image to a URL you would use the following coding:

    <A HREF=”http://www.sponsorsurl.com”><IMG SRC=”http://www.domain.com/images/porn.gif” BORDER=”2″ WIDTH=”100″ HEIGHT=”100″ BORDERCOLOR=”FF0000″>

    This will create an image that is 100×100 pixels in size, with a border size of 2 pixels in the color FF0000 that is linked to http://www.sponsorsurl.com

    Also, the order of the HTML tags we use is not important however, you should try to get used to arranging them in a certain way to make your work easier if it ever comes to editing your images.

    Hopefully this has been of use to you and you can now see that adding banners and images to your sites isn’t as daunting as you first thought.

    Article written by Lee.

  • Community Forum Scripts

    Date: 2011.02.21 | Category: Scripts | Response: 0

    Whether you have little or much traffic one thing that will enable you to benefit greater form this traffic is giving your surfers the sense that they are part of a ‘community’ much like the message boards built around adult webmasters have the feel of a community to them your surfers will end up staying around a lot longer if you can give them a reason to come back to your site over anyone else’s.

    That said, one of the main factors in starting your own little porn community is the need to have a place where all the ‘action’ take place. What better way than you own message forum.

    However, we hit our first problem, having never thought about starting a forum up before you wouldn’t know where to go to look for scripts or, what the best one is. That’s the reason behind this little guide.

    Below you will find a short breakdown of the more commonly used message forum scripts along with a short list of features each one has to offer you when choosing to build your own online community.

    VBulletin http://www.vbulletin.com

    This is actually quite a good forum script, most of the main forums on the web use either VBulletin or PhpBB when it comes to threaded forums. VBulletin uses MySQL and .php to run the actual forum and, set-up of it can become a little tricky if you want to customize it to your exact needs and color scheme. That said, once you overcome the initial complications in setting the forum script up it is easy to handle and, with a price tag of only $160.00 its an affordable option for many.

    Ultimate Bulletin Board http://www.infopop.com

    Unlike VBulletin UBB uses Perl programming for the forum script which, means you can install it on any cgi enabled host. However, the one main drawback with this script is that it uses flat text files to store all the data which, can sometimes bog down your server with unnecessary file calls. The cost of $199.00 however can be a bit to expensive for most webmasters.

    Ikon Board http://www.ikonboard.com

    Ikon board is a nice little threaded forum script and, the fact that it is free to download makes it even more so however, even though it uses MySQL for the backend or, choose to store your data in flat text files this script just seems a little to ‘basic’ looking for my personal taste. That said, there are many types of site using IkonBoard so the script must be good enough for them to be using it. Then again, maybe its the price tag of $0.00 that has made this a popular choice.

    PhpBB http://www.phpbb.com

    PhpBB is probably the most well known free forum script on the web today, its easy to customize (within reason) supports php and MySQL functions yet seems to offer nothing in return. The basics of a forum are there however, every webmaster and their closest friend seems to be using this script. The whole idea of building up a community is so that your site can stand out from the crowd, in my humble opinion, the script does what it is supposed to but, it doesn’t offer any redeeming qualities to your site.

    Site Net BBS http://www.focalmedia.net

    Sitenet BBS, formally known as Netboard, is probably one of the better Perl based forum scripts on the market, it price tag of $69.00 makes it an affordable choice for almost everyone and, the installation process itself is VERY simple to understand. The one drawback that i have found with this forum script however is that it stores the data in flat text file which actually slow the server down quite a lot making connections to the forum time-out on numerous occasions. However customization of the script is very easy using only HTML based templates you do not need any additional programming skills and, it has a nice interface with a few good features. For the price it is well worth a look. They also offer a freeware version however the links on the bottom of the forum become annoying after a while.

    In summary there are a lot of popular forum scripts available for webmasters to start using some are free other require payment ALL have a range of different functions available in them.

    Before looking at installing any of the scripts you should always try a demo first to see which one has the features and benefits you would like to offer your community members.

    If you can get your base community built up on a forum they enjoy using then all the rest of your marketing should pay off in dividends long term.

    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

  • 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

  • Mirroring Adult Sites – Stage Three

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

    So we hit stage three of our tutorial in this stage we are going to make some pages for our top 5 AVS systems. However, as we did in the last tutorial with the new TGP galleries we created we are going to use the same content and same pages that we have already built. On with the tutorial…

    Anyone who build AVS sites will know that you need to have a standard site layout. This usually consists of an entry page (or a warning page), a navigational page (or in our case our menu.html page) and some gallery pages.

    So the first thing we need to do is open up the warning page. Once this page has been opened we now need to do some editing of the page, what I would suggest is moving the warning text to the lower half of the page and at the top making some ‘juicy’ sales text, depending on the niche you are targeting with this site you may also like to add a couple of the original thumbnail images at the VERY top of your page however, these should NOT be linked to the full size image.

    Once you have edited your page to a reasonable standard for the AVS you now need to save this page in the /FreeSite/AVS/ folder that you originally created on your HD. I would suggest saving the page as something like avs1.html or the name of the AVS you will be using this page for.

    Once you have done this you now need to duplicate this page but save it as a different name in again, in the /FreeSite/AVS/ folder so you will end up with avs1.html, avs2.html, etc.

    At the moment these AVS pages have no AVS script on them so, we need to visit the AVS system we are going to be using and fill out the details to have the AVS generate an AVS signup page script for us. Once we have the coding that the AVS provides we now have to place this on our avs1.html page. You should repeat this for each of the AVS’s you wish to use and save each instance of the generated AVS script to a separate AVS*.html page.

    be aware, that when you are putting your information into the AVS to generate the script, you should enter the ‘members area url’ as the page we created for our navigation so, the AVS script location will be /FreeSite/AVS/avs1.html and, the members area page will be, /FreeSite/Menu/menu.html.

    Once you have placed the script on our avs.html pages you should now have the following sites ready:

    1) 50 Pic Free Site With Pics On HTML Pages.
    2) 5 TGP Galleries With Pics On HTML Pages.
    3) 5 AVS Entry Pages.

    Now we are starting to see how using one set of content can amount to a mass of sites all of which can be sending traffic to our sponsors and, to our surfer trap.

    This is where stage three of our tutorial ends however, in our next tutorial we will continue to make some more sites and in an effort to get some traffic we start to play with the ones we have currently created.

    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