• 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

  • 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.

  • Building Your Own Opt In Mailing List

    Date: 2011.02.21 | Category: Opt-in Mail | Response: 0

    Despite the constant launch of ‘new and improved’ email collection programs one of the more popular emails I receive each month ask how webmasters can actually start their own opt-in email list for surfers. Surprisingly enough, this is a fairly simple process and, should only realistically take a webmaster 10-15 minutes to have an opt-in email script installed.

    However, the second type of email I get from webmasters who have already installed one of these scripts is asking how they can ensure that surfers sign up to their lists this is what I will approach in this article.

    One of the easiest ways to make sure surfers join your opt0in list is to offer them a financial gain by doing so, I don’t mean you should literally pay them for their email address but, why not offer them something for free? A daily picture by email, free porn site access etc etc.

    The next biggest mistake I find are that webmasters simply place a collection box saying something like ‘enter your email address here for our newsletter’ and, lets be honest, it isn’t very enticing. Ideally you need to have a ‘headline’ that will catch the surfers attention and actually ‘make’ them want to join your list. Be specific yet be vague (bit hard I know) and you’ll soon see your list grow from one new subscriber a week to hundreds of them!

    The next thing you need to take into consideration is how quickly, not only your site, but the page with your collection box loads, if you are using a pop-up console, make sure it is heavy in text not graphics with the first words at the top not saying ‘free porn’ but a similar meaning text, everyone and their dog has seen the words ‘free porn’ on countless other porn sites. Yours NEEDS to stand out!

    You should use an effective title if you are going to be using pop-up windows for your email collection. in the title bar don’t have the window called ‘pop-up’ have it named appropriately for the niche you are trying to collect the surfers email address from. Make it relevant, make it concise.

    Balance the collection page, any type of page you build for your site should at least be appealing to the eye. Meaning that your fonts, colors and actual text need to contrast together perfectly. If you do use images on this page try to have them prominent yet not overbearing to the surfer.

    Offer a way to close a pop-up if this is what you are using to collect the emails after all, they (the surfer) may decide they don’t want to give you their email until they have seen what your site can offer. In the same way, make sure you have a link from your sites to your collection page so, if a surfer decides they do want to give you their email address they can do it without the need of closing your site and reloading it afresh.

    Overall however, the best rule you can follow is to keep to the point and keep it simple. This way you will gain the surfers attention quickly and easily and, the surfer will not be distracted from the main purpose of having them on your site – getting to your sponsor.

    Hopefully the information above will enable you to start having some more success with your traffic and, once you have the surfers email address make sure you treat it with the respect you would want your own to be treat with, an email address is a sacred thing to most surfers, if you Spam them daily they will leave your opt-in list quickly however, if you send them a ‘newsletter’ once a week / month filled with relevant information you will soon find your list growing exponentially.

    Article written by Lee.

  • Gay Adult Marketing 101

    Date: 2011.02.22 | Category: Promotion | Response: 0

    There is a myth out there that gay traffic is hard to convert because a gay surfer is reluctant to buy. This isn’t so. Conversions come down to two things:

    • The gay surfer is discriminating; a membership to a site that has exactly what we want
    • The gay surfer is loyal; I, believe, this comes from our experience as a community. When a Gay surfer decides to purchase a membership, it’s typically for a longer period of time.

    This is evident with the better Gay Pay Sites; conversions may be lower than a straight hardcore site however, membership tend to be longer than the industry average. The gay surfer is discriminating; we look for a long-term membership with a site that has we want whether it’s teens, bears, amateurs, etc.

    With that idea, I always advocate that age-old niche free site philosophy use a variety of sponsor programs on your sites. Typically, my free sites will have one main sponsor (I use Quality Males) then I’ll break my other banner slots down one Teen site, a Twink site and maybe a product like Viagra. But this will vary depending on the “flavor” or “personality” of your site – if you have a gay leather site, my main sponsor will be a Leather sponsor or product, with a variety of other sponsors (one mega site, a teen site, and maybe an adult toy store).

    One marketing option, I tend to see working well is the full-page ad vs. only banners. I, honestly, do not know whether it’s a quality issue, a larger ad or the surfer’s disgust with banner ads, but it works well in our market.

    One thing that experience has proven to me, it makes no difference whether you’re a webmaster to gay or straight traffic, you need to analyze your traffic. If you’re sending traffic out to sponsors and your not seeing the conversions, maybe you need to really look who your surfers are. If you’re lucky enough to know who your surfers are, then look for a specialty sponsor (whether partnership or click-thru program). It’s all a matter of finding the right sponsor programs and tweaking your site (and we all know how that can be). Don’t be afraid to experiment. It’s the long term that we need to be looking at. Remember that this isn’t “Who wants to be a Millionaire is 30 days or less”.

    Gay traffic isn’t difficult to manage as many people think. It’s a matter of patience and understanding your market. And the best way to understand that market, is to ask a successful webmaster in the gay adult market..

    Article written by Gary-Alan

  • 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

  • Thinking Of Starting An Adult Website In The UK?

    Date: 2011.02.24 | Category: General | Response: 0

    We all know that there are many foreign / international adult webmasters and there are some very well known ones based in England however, before you start building your online empire what are the legalities regarding the type of content you can and cant use on your adult pornographic sites?

    To be honest with you, there are no ‘defined’ laws in England (At the time of writing this article) regarding the use of online media to promote adult activities however, it is a commonly held belief that as long as you stay to the same standard as what most ‘top shelf magazines’ or ‘R18 Videos’ have in them you shouldn’t go far wrong.

    So what are these standards? That’s the information that I am about to give you.

    Content that IS NOT acceptable.

    1) Any material which is in breach of the criminal law.

    2) Material (including dialogue) likely to encourage an interest in abusive sexual activity (e.g., pedophilia, incest) which may include depictions involving adults role-playing as non-adults.

    3) The portrayal of any sexual activity, whether real or simulated, which involves lack of consent.

    4) The infliction of pain or physical harm, real or (in a sexual context) simulated. Some allowance may be made for mild consensual activity.

    5) Any sexual threats or humiliation which do not form part of a clearly consenting role-playing game.

    6) The use of any form of physical restraint which prevents participants from withdrawing consent, for example, ball gags.

    7) Penetration by any object likely to cause actual harm or associated with violence.

    8) Activity which is degrading or dehumanizing (examples include the portrayal of bestiality, necrophilia, defecation, urolagnia).

    As you can see from the above, there ARE very specific guidelines regarding water sports, animality and, some of the more ‘out there’ fetishes.

    Now you know what you cant use on your adult sites, lets take a look at the list of sexual activities that you can use. Its no surprise that the list of what you can use is considerably shorter.

    Content that MAY BE acceptable.

    1) Aroused genitalia.

    2) Masturbation.

    3) Oral-genital contact including kissing, licking and sucking.

    4) Penetration by finger, penis, tongue, vibrator or dildo.

    5) Non-harmful fetish material.

    6) Group sexual activity.

    7) Ejaculation and semen.

    It also worth noting that the above guidelines are not distinguished between heterosexual or homosexual activities.

    So, that’s the low down on what the current status of affairs are with regards to the use of adult content on websites in England and Wales. Actually, that’s not to bad just ensure that you stay within these guidelines and, more importantly, that you do consult a solicitor before commencing any form of adult business after all, that’s what they are there for, to give you SOUND legal advice instead of basic ‘guidelines’.

    Article written by Lee

  • Pay Per Click Or Search Engine Optimization

    Date: 2011.02.24 | Category: Paid Traffic, Search Engine Optimization | Response: 0

    What would you choose to run your business? Well each has their own benefits and drawbacks over one another.

    PPC or SEO The Breakdown.

    Pay Per Click or, PPC as it is most often referred to looks to the novice to be the better option for ‘immediate’ traffic results, you enter your desired keywords, place your minimum / maximum bid amount and you are set for top PPC engine listings for as long as you can maintain the balance in your engine account.

    Search Engine Optimization or, SEO on the other hand, is the more traditional way of attaining high ranking search engine pages. Either you or an SEO expert optimizes your websites pages and random other elements of your website and hopefully within a month or two, you achieve high rankings in the major search engines.

    So Which One? PPC or SEO?

    Generally speaking, SEO work is most commonly more cost effective to your business than utilizing PPC results to gain your traffic, you could pay an SEO expert anywhere from $500 plus to optimize your site and get high rankings indefinitely or, you could put that $500 into a PPC engine account and get high rankings until such time as your account balance runs dry.

    But lets look at this in terms of actual traffic…

    Say you get 1000 visitors to your SEO based website which you paid $500 for, each visitor has cost you $0.50c now lets say your site remains at the top of the engines for a few months perhaps even years each month you receive another 1000 visitors to your site, you have basically cut the cost of each surfer hitting your site down to less than a penny per hit (not taking into account bandwidth costs obviously).

    Now, on the other hand, you want to attract 1000 visitors from your chosen keywords via the PPC engines, most Pay Per Click search engines have a minimum bid amount of $0.05c per hit so right away in your first month, you could receive a potential 10k hits however, as most of you who have already tried your hand at the PPC engines will know, getting 10k hits for one or more keyword at a cost of $0.05 is hard to do, in fact, some would say almost impossible. Non the less let us keep going with this minimum bid amount for the time being.

    Immediately, you can see that you are already restricted to the actual amount of traffic you can receive from the PPC results to 10k hits however, this isn’t the case with the SEO traffic, you could potentially hit your top chosen keyword and stay there until another site out-optimizes you or, your site needs to be optimized again.

    Ultimately, the reasons you will choose over one or the other will be for either ease of traffic generation, PPC will allow you to gain almost instantaneous targeted traffic form the second you open your PPC account up until the point when your account funds empty whilst, SEO work will give you long term targeted traffic over time and, in most instances, this SEO traffic can last for years making the cost of the initial SEO work minimal.

    In Closing..

    Search Engine Optimization can last you years and years whilst Pay Per Click results can diminish in a relatively short amount of time depending on the amount of bid needed to achieve top listings.

    However lets look at a third option, using both PPC results and SEO results in conjunction with each other to minimize the traffic you lose from your SEO work and, to minimize the traffic you lose from your PPC results this will afford you the time to see what works with your Search Engine Optimized sites whilst being able to play with the targeting of keywords on your PPC traffic, once you have both types of search engine figured out, you can put them both together and use them to increase the traffic to your site for years to come.

    Article written by Lee

  • The Negative Marketing Technique

    Date: 2011.02.24 | Category: Promotion | Response: 0

    Negative marketing is a wonderful thing in its own right however, negative marketing can, surprisingly enough have a NEGATIVE effect on your sales.

    How many times have you seen a site that has, about half way down the page some text telling the surfer no to click on anything because ‘these are only counters’?

    Counters in themselves can be VERY useful tools to the adult webmaster however, counters are given to us for free because of one simple reason, the graphics used on them are made in such a way that they will actually draw clicks from your traffic.

    Most of the time however, these counters that take your hits are helping you much more than you know, from giving you addition traffic, valuable surfer stats and many other things.

    Now, the same is also true for banner exchanges as is for counters, they are a useful addition to the variety of tools available for adult webmasters however, many webmasters, as mentioned above tell the surfer NOT to click on them, something i just never seemed to be able to get my head around. As you reading this post kind of proves, tell someone not to do something and you can guarantee they WILL do it

    However, as i started off this quick article saying, Negative marketing is a good thing, after all, you have now got the proof to tell you that it works why not put this to use on your site?

    For example, rather than telling a surfer…

    ‘Click Here For The Hottest Porn Site On The Web’

    Tell them…

    ‘DO NOT CLICK HERE’

    Wonder what they will do

    Article written by Lee

  • The Web Safe Color Palette

    Date: 2011.02.24 | Category: WebDesign | Response: 0

    The “Web Safe” palette is a bit controversial. It is a set of 216 colors that are, supposedly, guaranteed to appear as intended on all graphical displays when used in HTML, CSS, and images embedded in Web pages. Many Web developers believe that sticking to these colors is one of the holiest commandments in the Web design scripture.

    This was mostly a concern when most computers had 8-bit color displays; these days, most people run at 16-bit or 24-bit color. Although these bit-depths render the Web Safe palette pointless, dithering and quantification bugs in browsers and operating systems still cause problems in 16-bit displays (16-bit display, also known as “High Color” mode or “Thousands of Colors,” is generally problematic). Extensive testing has led to a new palette, called “Really Safe,” whose colors are guaranteed to appear correctly on all displays and all browsers.

    If you use different colors than these, you might see images and backgrounds of the same color appear at a slightly different tint, so that a “box” will be visible around them if the background extends beyond the image’s edges.

    Below is the table of ‘Web Safe’ and ‘Really Safe’ colors, you will see some of the color hex codes are in red, these are ‘Really Safe’ colors.

    Code Color Code Color Code Color Code Color Code Color Code Color
    000000 000033 000066 000099 0000cc 0000FF
    003300 003333 003366 003399 0033cc 0033ff
    006600 006633 006666 006699 0066cc 0066ff
    009900 009933 009966 009999 0099cc 0099ff
    00cc00 00cc33 00cc66 00cc99 00cccc 00ccff
    00FF00 00ff33 00FF66 00ff99 00FFCC 00FFFF
    330000 330033 330066 330099 3300cc 3300ff
    333300 333333 333366 333399 3333cc 3333ff
    336600 336633 336666 336699 3366cc 3366ff
    339900 339933 339966 339999 3399cc 3399ff
    33cc00 33cc33 33cc66 33cc99 33cccc 33ccff
    33ff00 33FF33 33FF66 33ff99 33FFCC 33FFFF
    660000 660033 660066 660099 6600cc 6600ff
    663300 663333 663366 663399 6633cc 6633ff
    666600 666633 666666 666699 6666cc 6666ff
    669900 669933 669966 669999 6699cc 6699ff
    66cc00 66cc33 66cc66 66cc99 66cccc 66ccff
    66FF00 66FF33 66ff66 66ff99 66ffcc 66FFFF
    990000 990033 990066 990099 9900cc 9900ff
    993300 993333 993366 993399 9933cc 9933ff
    996600 996633 996666 996699 9966cc 9966ff
    999900 999933 999966 999999 9999cc 9999ff
    99cc00 99cc33 99cc66 99cc99 99cccc 99ccff
    99ff00 99ff33 99ff66 99ff99 99ffcc 99ffff
    cc0000 cc0033 cc0066 cc0099 cc00cc cc00ff
    cc3300 cc3333 cc3366 cc3399 cc33cc cc33ff
    cc6600 cc6633 cc6666 cc6699 cc66cc cc66ff
    cc9900 cc9933 cc9966 cc9999 cc99cc cc99ff
    cccc00 cccc33 cccc66 cccc99 cccccc ccccff
    ccff00 ccff33 CCFF66 ccff99 ccffcc ccffff
    FF0000 FF0033 ff0066 ff0099 ff00cc FF00FF
    ff3300 ff3333 ff3366 ff3399 ff33cc ff33ff
    ff6600 ff6633 ff6666 ff6699 ff66cc ff66ff
    ff9900 ff9933 ff9966 ff9999 ff99cc ff99ff
    ffcc00 ffcc33 ffcc66 ffcc99 ffcccc ffccff
    FFFF00 FFFF33 FFFF66 ffff99 ffffcc FFFFFF

    Hopefully, you will find a use for the two different color palettes that are now available and, you can begin designing for your surfers, regardless of which browser they use.

    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