• Using Full Page Ad’s

    Date: 2011.02.24 | Category: Promotion, Traffic | Response: 0

    Full page ad’s can be used for more than just ‘adverts’ in fact, there is a wide and varied range of uses for them, below I have detailed some of the uses that I have tried in the past and from my experience, they seem to work well enough.
    Creating A ‘Hub’ Site – By interlinking FPA’s together in a range of niches and, offering your surfers a money bar linking to other FPA’s in different niches, you can actually get some good rankings in the SE’s and, if you utilize banner exchanges or counters on your FPA ‘hub’ site you can also ensure you get a fair amount of additional traffic. One thing I like to do with my FPA hub is use it as the ‘exit’ page when a surfer leaves one of my sites. This ensures that I am getting optimum traffic for my time spent a) building sites and B) building my hub.

    A lot of people I have spoken to about ‘hub’ sites simply forget about them once they have been built, personally, I do not see the point in doing this, if you build something like this why not send your exit, top list, counter, banner exchange traffic to the first page of your ‘hub’?

    Doorway Pages.

    FPA’s also make exceptional SE doorway pages, by optimizing your image names, meta tags and text on the individual FPA’s you are not only ensuring they WILL get ranked by the SE’s but, if you ‘hub’ them together as explained above you will also get some premium listings from them.

    Filter Pages.

    What I learnt to do early on is rather than send my surfers directly to the sponsors using the ‘standard’ linking codes is to send them first to an FPA with a money bar (or table ad) on it, this way, if they click the link in error and not realize that they are going to a pay site, you can give them an option, not only to use their ‘back’ button but also, to go to a different niche or, to continue into the sponsors tour. Now that you can link directly to a specific tour page on ARS sites, this method is a good way to give your surfers a ‘fresh’ tour front page.

    PPC Listings.

    An FPA is an ideal way to get sites listed in the PPC engines, not only do you show the surfers EXACTLY what is in the site they have just clicked on but, you also have the added option of being able to utilize blur consoles and exit consoles on them.

    One other thing that I will mention, is that often, you will find that FPA’s that you have made yourself, no matter how ‘amateur’ looking they are will work better than the ‘pretty’ sponsor built FPA’s.

    Hopefully, this article has given you some ideas on how you can better utilize FPA’s and not just use them in the same manner as every other adult site on the internet. If you have some good results from using FPA’s in this manner feel free to post about it on the ARSR Support forums and likewise, if you can think of any additional uses that have not been mentioned here let us know on the forums.

    Article written by Lee

  • Turning Opt In Mailings Into Pure Spam

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

    Spam is frowned upon net wide and even more so than usual in the online adult industry especially unsolicited email Spam however, many webmasters do not seem to grasp the essential basics about what Spam is and more importantly, the point in which they themselves become Spammers, this is what we will take a look at in this brief article.

    Double And Single Opt In Mailings.

    By themselves single and double opt-in mailing lists can be a very effective method of promoting your or, your sponsors sites however, many webmasters forget the one fundamental rule when mailing their opt in subscribers, send them what they actually opted in for otherwise, you are spamming the list and ultimately, the recipients.

    The line between opt in mailings and Spam is a very finely drawn one at best however in the adult industry it seems the edges of this line are more blurred than almost anywhere else. Quite often you see webmasters on a variety of message boards selling their ‘opt in mailing list’ to one or two other webmasters however, when does the opt in to Spam equation fit in? This is what we will look at next.

    Turning Opt-In Mailings In To Spam Emails.

    So you have collected opt in email addresses diligently for the last god knows how long and, you have successfully emailed those lists numerous times with some good results to show for it and you want to let others profit from your lists whilst making some money for yourself at the same time. Time to sell the emails you have collected. This is your first mistake, the email addresses which you have collected for your subscriber mail outs have been opted into YOUR list not another webmasters and well, the second that another webmaster buys this list from you the list itself becomes pure unadulterated Spam, nothing more, nothing less.

    Of course, you don’t have to sell the list, you could offer the list up for trades however, the same thing applies, the second your mailing list changes hands that list not only becomes worthless to the person who has purchased it but, in effect, the list has now become worthless to you.

    Adult Opt In Email Lists.

    To make a long term profit from your opt in mailing lists the one thing that you should ensure is that the list you have remains clean and, more importantly than that, remains private, if you have spent several years collecting these email addresses why would you turn the revenue potential of them in to nothing less than worthless overnight? Keep the lists as clean and as private as possible, the next time a sponsor opens a paysite that is on the same topic as your mailing list you can send your opt in mailer to your database and profit from the unexposed site.

    Adult Opt In Mailing Lists Overview.

    When all is said and done, as mentioned above opt in adult mailing lists are a very hard to find commodity and, if you have a list for a specific niche or market the list becomes even harder to find, keep your list as clean as possible and ensure that you and only you use the opt in mailing list. By keeping the email addresses you have collected out of the grasp of other webmasters you have the potential to make revenue from that list for as long as you maintain it however, all of your hard work can be undone overnight if you sell the list to the wrong webmaster. In short, if someone opts in to a mailing list owned by you, make sure you are the only person who mails them from that list otherwise, you have indirectly spammed that email address.

    Article written by Lee

  • HTML Page Load Times – Making Them Quicker

    Date: 2011.02.22 | Category: WebDesign | Response: 0

    Surfers on the web are here for one thing and one thing only, they want information, they want it to be correct and, more importantly, they want it now. We cant always help when it comes to getting the information however we can help them so far as making sure that when one of the surfers clicks on our pages they load quickly.

    Taking Control Of Speed.

    For many webmasters hand coding their HTML pages is an often timely and costly method and, because of this they turned to the WYSIWYG (What You See Is What You get) editors such as Dreamweaver and Frontpage to create their pages for them however, even this in itself requires some manually intermission on the webmaster part. Many of the older style WYSIWYG Editors added a fair amount of un-needed code to the HTML so, spending a few minutes after you have your pages created to physically go through the HTML code and clean up the junk html can in effect, cut down your page size by up to 25% in some instances.

    HTML Quotations And Hyphens.

    In addition to un-needed HTML tags you may also want to consider removing any quotation marks or hyphens from your HTML code, both of these can quickly clutter up a page and laden it down with more code than is actually required.

    For example, ‘HTML Coding’ makes just as much sense as me telling you HTML Coding when read in sequence. The trick with using quotations and hyphens is actually knowing at what point in your text you can ‘get away’ with removing them and, this is only something you will know yourself after proofing your completed page.

    Hyperlinks.

    If you are only going to provide links from one page of your site to another then, why use absolute paths? http://www.domain.com/linking.html is the same as /linking.html when you use it in a link from one page on your site to another and, well, in all honesty you have increased the load time of your page by only linking to the relative url instead of the absolute and that’s what we are trying to do here right? Make our pages load faster.

    White Space.

    White space on a web page can be a good marketing tool however, white space in your HTML code is a bad thing, placing spaces between certain parts of your HTML code can quickly bog down your load times instead, try to use the tab key to separate certain parts of code likewise, keep the use of &nbsp to a minimum, this can quickly become the most relevant term on your page if used in excess.

    One other benefit of making your pages as small as possible is that a webmaster wanting to steal your HTML code is going to have a harder time finding the exact piece of coding if the HTML is all on a single line than they would if the code was laid out nicely however, this in itself is only a deterrent and it wont stop those webmasters determined to steal your HTML code.

    Page Load Time Overview.

    Hopefully this brief article has given you some idea of ways in which you can practically reduce the load time of your pages without affecting the overall look and feel of your site and, who knows, if your page loads quicker, then you have a better chance of your surfer getting to your sponsor quicker.

    Article written by Lee

  • The Adult Internet – More Than Just Porn

    Date: 2011.02.24 | Category: General | Response: 0

    So you have several adult websites up and running and, if you are one of the lucky few in this day and age you have already started to make money from your adult sponsor programs however, there are so many other ways that webmasters can make money in the adult industry in addition to their regular ‘porn site’ sponsors yet, many webmasters do not realize there are vast opportunities awaiting them.

    Lets spend a few moments to look at the alternative sources of income that we can use in the adult industry and also take a look at the basics of each type of affiliate system.

    Email Collection.

    Opt in email is big business, there is no denying this fact so why not jump on the opt in email collecting bandwagon? Most email collection sponsors will offer you anywhere from $0.50 per email collected to $2.00 per email collected and, better still, to start making money from your existing traffic base all you need to do is include a small email collection box.

    Software Programs.

    Many of the larger adult affiliate programs now offer their webmasters a range of software products to generate additional income, many of these products are good for use not only in adult but, also in mainstream. For instance, Anonymous browsing software, history deletion software, IE Toolbars and even submission programs are all good ways to generate additional income either on a per download or, per sale basis. Best of all, you only need to add a new banner to the sites you currently have in order to get a share of this lucrative market.

    Herbal Products.

    Penis Pills, Breast Enlargement, Vitamin Supplements, you name it you can sell it on adult traffic. Whether you run a TGP, Link List or your own collection of free sites, these herbal products can often sell much better than ‘porn sites’ and, for the most part, the payout levels are the same, if not higher than what your regular ‘porn site’ trial will make you. Again to get started with this type of sales all you need to do is add a text link or banner to your existing sites.

    Casino Sites.

    Gambling makes BIG money, just look at Vegas for the example, millions of people a year visit Nevada to gamble and millions more simply can’t get there for a range of reasons however, almost every home in the United States has a computer and internet connection so why not start using this to your advantage? Many of the larger casino affiliate programs will pay based on the amount of funds credited to a new users account and, to get started making money from casino sites it is quite literally as easy as adding a banner or text link to your existing sites again.

    Pre Paid Services.

    Such as Credit Cards and the likes, selling these types of products to your adult surfers not only offers then ‘anonymity’ on the web when they do make online purchases but at the same time when your surfers sign up or one of these pre-paid credit cards you will be making some money in the process. Often however you will find that these types of affiliate program do not payout as much ‘long term’ as they are pretty much a first time deal as far as, once the surfer spends money to initially ‘charge’ their pre paid card with funds, that is when you will make money and not again. Still, even if you can make $50 by selling one of these cards, its still an additional $50 you wouldn’t have made otherwise.

    Adding To Your Profits.

    As you can see from the above, there are a wide range of products and services you can offer your surfers and, as we all know, the more things we can offer our ‘customers’ the more chance we have at one of them buying something. Of course, as with anything, the more effort we put into marketing these products and services the more chance e have at making a sale however, unless we try to sell the surfer something other than porn, how will we know whether they will buy or not?

    Article written by Lee

  • Designing Your Site With Link Popularity In Mind

    Date: 2011.02.21 | Category: Traffic, WebDesign | Response: 0

    To get good traffic, your website needs to be popular, to be popular, your website needs links, to get links, your website needs to be popular. Annoying isn’t it :)

    Almost everyone agrees that link popularity is critical for your website’s visibility, traffic, and thus successfulness. It is something you need to have. As I pondered the ways of establishing and improving one’s “popularity”, eventually all come back to one central issue, your website must be designed to be popular.

    Link popularity is a basically the measure of links pointing to your website and is meant to be a measure of the best websites. Theoretically those websites that have the most links pointing to them must be important and thus worth the visit. Unfortunately, there are a lot of folks out there that have created programs to “boost” your popularity artificially and all they have done is create Spam and muddy the overall picture. The search engines and directories are keeping a close eye on these programs.

    Design: When getting a request or thinking about making one for a link exchange with a website, look thoroughly over the website first. The website’s theme or topic and general layout is the first thing to look at. Sites with themes or topics that are related to or compliment yours should be your main link partners. You do this to get targeted traffic.

    Just as you evaluated someone’s website, others will be doing the same to yours. Make sure you know what your theme or topic is and that it clearly encompasses the whole website. Stay focused; do not try to cover everything.

    Next, check out the links page or resource area. If they do have one, is it easy to find within the site? Does it seem to be part of the site or just a page off to the side? Are their linking rules available, clear, and easy to follow? Do they accept links from any website or are they choosy? Being part of someone’s well constructed links program, no mater what size, can be a very beneficial thing indeed.

    Again, the same goes for your website. You want to let other webmasters know that you want to exchange links and which type of website you will accept requests from. Make it easy for others to link with you.

    The last set of questions to ask yourself about any website is:

    Is it easy to navigate
    Does it have too many graphics (slow loading)
    Is it pleasant to the eye
    Does the information seem to be organized in a logical fashion

    What has been covered so far deals with what the visitors see; if visiting the website is a pleasant experience then people will stay and look and possibly come back. The final area to cover is what the search engines see.

    The underside (the source code) of the website is just as critical when designing or linking with a website. The search engines are the ones that read this and if it is not done properly then the website can not succeed. Below are a few things you need to consider in your source code and any potential site that has asked to be linked by you.

    Does the website contain frames
    Does it use the headers, titles, meta-tags, and alt tags properly
    Do the keyword location(s) and density seem appropriate and “optimized”

    The latter two issues mentioned above are critical, for they are the backbone to traffic production.

    Content: The information you have is just as important as how you set it up on your website. The more popular websites or the ones with good link popularity are those that have valuable information or resource(s) for its audience after all, they fill a niche! People will visit, stay, return, and recommend a website if it has the content they want or need.

    “Content is king.” A well-designed and organized website might look good but if it does not deliver anything of value, it will not be successful. Whatever subject matter you have on your site, make sure you have something of interest and importance to add to the subject, if you do and you promote it well, you and your site will be successful. In this context, it (content) does not just refer to images, why not add some stories or interesting links to news articles to improve your sites ‘popularity’.

    In addition to information, resources like mailing lists, surveys, polls, classified ads, forums, etc. are all things if used appropriately can add value and fresh content to your website which, in turn will assist you in interacting with your sites visitors.

    In conclusion: Take the time to design and optimize your website properly for the search engines. Make sure you have something of value or importance to add to whatever area your website is in. Provide resources and other tools, which your visitors could use and will make them come back. Be proactive and interact with your visitors. Websites that are dynamic and active are the best ones. All of this might take a little more time to get your website up and running, but it will be worth it.

    For yours or any website to be popular, it needs the links and to get the links, it needs to show the other webmasters that it is worthy of a link. It seems everyone today has a website, but not everyone has put together a website that adds value to the Internet community. Take a critical look at your website and any website you might link to and ask yourself…………….

    Would you bookmark it?

    Article written by Lee

  • Foreign Search Engines

    Date: 2011.02.22 | Category: Promotion | Response: 0

    ‘Suchmaschine’ | ‘Moteurs de Recherche’ | ‘Motores de Busqueda’ ? Or, to you and I ‘Search Engines’.

    Well what if I told you there was a huge chunk of the market (again I know) that your missing out on because, frankly, you haven’t attempted to get into it?

    What is this wondrous market? Simple.. Foreign search engines.

    I would say that AT least 80% of my traffic comes from the search engines, Google, AltaVista, etc, etc however a large portion of this se traffic is from countries whose language even some of my translators don’t know.

    So, how do you get the foreign search engine traffic? again that’s simple, there are several ways to get it, you can:

    1) Submit to your favorite search engine and wait, and wait, and wait… or 2) You can submit to your favorite search engine then, instead of leaving the page, go to the foreign equivalent of that same search engine!

    Guess what, if you submit to Google in English then go to google.de the submit form asks you exactly the same information as your submission on the English form would do…so, ya don’t even have to speak German to submit to google.de, isn’t that handy?

    In my previous article a few weeks ago I mentioned what countries were top of the ranks for surfers in Europe, well, this week I want to run some figures past you again about which search engines ‘seem’ to be sending a decent amount of foreign traffic.

    So here goes, we have the top 6 search engine referrals for December 2001:

    http://www.crawler.de/

    http://www.lycos.de/

    http://www.infoseek.com/Home?pg=Home.html&sv=ES

    http://search.yahoo.co.jp

    http://www.excite.co.uk/

    http://www.infoseek.com/Home?pg=Home.html&sv=FR

    As you can see infoseek (which has an English version) sends me lots of foreign traffic although, in reality, this is only for English pages, don’t ask me why but I guess the Spanish and French surfers love surfing for porn in English..

    On a separate note, for those of you who are either to stubborn, lazy or, stupid to try submitting to the foreign search engines we will shortly be releasing a foreign search engine submission chart on European Webmasters which will tell you step by step what to put in each of the boxes on the submission form, so even you have no excuse!

    Of course, the foreign traffic is going to mean you will need to pay more attention to your sites, perhaps offering these surfers a site in their language to sign up to or, before sending them off to a dialer, trade these foreign surfers off for some ‘English speaking ones via the use of a toplist. Admittedly, I haven’t found sending them to a toplist productive myself however, you might get different results to me.

    Basically, if you start to get the traffic, hell, the chances are your getting foreign traffic now and don’t even know about it… USE IT!

    If you want to ask questions specific to the foreign market that’s what our forums on EW are there for, we would gladly spend all day everyday answering your foreign traffic questions however, as yet, very few US based webmasters are taking the initiative to investigate further this GREAT source of revenue so, I guess ill just have to go back to my foreign search engines and get a bigger chunk of the ever increasing foreign porn surfer for myself.

    Article written by Lee

  • Building A Surfer Trap – Stage 8 – Final Stage

    Date: 2011.02.21 | Category: Traffic | Response: 0

    Ok people we have hit the final stage in our surfer trap, Stage 8.

    All we are really going to do in this stage is a brief recap over what we have done so far along with checking that our trap is working properly.

    In order for us to check our trap is working properly we need to upload it to our server if we haven’t already done so, therefore, you should do this now.

    Once the surfer trap has been uploaded we now need to go to the first page, the Multi-Site FPA.

    Depending on how you set up your Multi-Site FPA you should either get a pop up or not.

    You should also have a counter AND a banner exchange code loading at the bottom of the page below your ‘no thanks’ link.

    If this works how you want it to then this stage is working ok.

    The next thing we need to check is that ALL of the links off this Multi-Site FPA are working so expect to get a lot of pop-ups while we check this.

    You should click on each of the Single-Site FPA’s in turn ensuring that for every one you have a pop-up console appear.

    In addition to checking the Single-Site FPA links you should now click on the ‘no thanks’ link along with the counter code and the banner exchange code on your Multi-Site and Single-Site FPA’s.

    If these all load fine then this stage of the checking is complete.

    Next, we need to close down any and all of the FPA’s we may have open including the Multi-Site FPA.

    You should now be left with a couple of consoles, again, follow the links on your consoles including any to the counter you chose along with any banner exchange code you utilized on your consoles.

    Again if these work how you expected them to, this section of the checking process is now complete.

    For the next step, you need to log into your counter AND banner exchange account, you want to make sure that you have gained additional impressions and rankings from your banner and counter impressions and clicks.

    Be aware however, that some counters and banner exchanges will not count multiple views and click from the same IP address so you may only show one or two additional clicks, impressions, or rankings. This is perfectly normal.

    If your accounts have gained additional ranks, impressions, and clicks then this stage is completed.

    Close down your consoles, you should now get the blur consoles that you created (if you used them) again, as before, check that all of the links from this consoles work.

    If they do then you now have a fully complete Surfer Trap to use.

    So, what next? Well there are a couple of options, you can mirror this surfer trap to experiment with your sponsors different tour pages, link your first mirror to the second tour page, your third to console free tour pages, etc.

    Another good thing that you can do is to create additional Multi-Site FPA’s however, this time, create them by niche so where we have a general Multi-Site FPA at the moment you could use this same method for a Gay, Asian, Teen, etc Multi-Site FPA using the same methods we did when we created this trap.

    You should always sign up for a new counter and banner exchange code for each variation of your surfer trap. This way, you get to see performance based on a new working model enabling you to decide which version of the trap works best for you.

    I hope this tutorial has given you some insight into how we can generate, filter and trade traffic whilst marketing our sites effectively and, that it has given you some ideas on how you can implement even the simplest item provided to you by your sponsor to generate sales.

    For those of you who have been following this tutorial I would like to thank you and wish you all the best with your new found marketing skills.

    If you have any questions as always, feel free to post on the forums and we will endeavor to help you out.

    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

  • Using JavaScript To Auto Scroll Text

    Date: 2011.02.24 | Category: Scripts | Response: 0

    Using JavaScript To Auto Scroll Text.

    There may come a time when you would like to have some text on a page that is simply just to big to fit on a single page. Of course, you could always create a new document for this text but, what if you could make the text actually scroll through the surfers browser?

    The following JavaScript will do just that.

    Place the following section of JavaScript coding between your <head> and </head> tags:

    <SCRIPT LANGUAGE=”JavaScript”>
    <!–

    function scrollit() {
    for (I=1; I<=1200; I++) window.scroll(1,I);
    }

    // –>
    </SCRIPT>

    Along with the following JavaScript coding someone in the Body of your page:

    <FORM>
    <INPUT type=button value=”scroll” onClick=”scrollit()”>
    </FORM>

    Have a play around with the numbers in the first section of the JavaScript to speed up and slow down the rate of scrolling until you find a speed that is easy on the eye.

    Article written by Lee

Premium Sponsors















Categories

Site Links