• 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

  • Displaying Special Characters On Your HTML Pag

    Date: 2011.02.22 | Category: WebDesign | Response: 0

    In order to display certain characters within your HTML pages, you must use a special code. The codes below display the HTML code and the character when displayed on your web page. To use any of the characters displayed within the chart, copy & paste the HTML code to the left of the character you would like to use.

    HTML Code Browser View HTML Code Browser View HTML Code Browser View HTML Code Browser View
    © © ! ! _ _  
    ® ® " ` ` ž ž
      # ` a a Ÿ Ÿ
    " $ $ b b  
    & & % % c c ¡ ¡
    &lt; < &#38; & &#100; d &#162; ¢
    &gt; > &#39; &#101; e &#163; £
    &Agrave; À &#40; ( &#102; f &#164; ¤
    &Aacute; Á &#41; ) &#103; g &#165; ¥
    &Acirc; Â &#42; * &#104; h &#166; ¦
    &Atilde; Ã &#43; + &#105; i &#167; §
    &Auml; Ä &#44; , &#106; j &#168; ¨
    &Aring; Å &#45; &#107; k &#169; ©
    &AElig; Æ &#46; . &#108; l &#170; ª
    &Ccedil; Ç &#47; / &#109; m &#171; «
    &Egrave; È &#48; 0 &#110; n &#172; ¬
    &Eacute; É &#49; 1 &#111; o &#173; ­
    &Ecirc; Ê &#50; 2 &#112; p &#174; ®
    &Euml; Ë &#51; 3 &#113; q &#175; ¯
    &Igrave; Ì &#52; 4 &#114; r &#176; °
    &Iacute; Í &#53; 5 &#115; s &#177; ±
    &Icirc; Î &#54; 6 &#116; t &#178; ²
    &Iuml; Ï &#55; 7 &#117; u &#179; ³
    &ETH; Ð &#56; 8 &#118; v &#180; ´
    &Ntilde; Ñ &#57; 9 &#119; w &#181; µ
    &Otilde; Õ &#58; : &#120; x &#182;
    &Ouml; Ö &#59; ; &#121; y &#183; ·
    &Oslash; Ø &#60; < &#122; z &#184; ¸
    &Ugrave; Ù &#61; = &#123; { &#185; ¹
    &Uacute; Ú &#62; > &#124; | &#186; º
    &Ucirc; Û &#63; ? &#125; } &#187; »
    &Uuml; Ü &#64; @ &#126; ~ &#188; ¼
    &Yacute; Ý &#65; A &#127; ? &#189; ½
    &THORN; Þ &#66; B &#128; &#190; ¾
    &szlig; ß &#67; C &#129;  &#191; ¿
    &agrave; à &#68; D &#130; &#192; À
    &aacute; á &#69; E &#131; ƒ &#193; Á
    &aring; å &#70; F &#132; &#194; Â
    &aelig; æ &#71; G &#133; &#195; Ã
    &ccedil; ç &#72; H &#134; &#196; Ä
    &egrave; è &#73; I &#135; &#197; Å
    &eacute; é &#74; J &#136; ˆ &#198; Æ
    &ecirc; ê &#75; K &#137; &#199; Ç
    &euml; ë &#76; L &#138; Š &#200; È
    &igrave; ì &#77; M &#139; &#201; É
    &iacute; í &#78; N &#140; Œ &#202; ?
    &icirc; î &#79; O &#141;  &#203; Ë
    &iuml; ï &#80; P &#142; Ž &#204; Ì
    &eth; ð &#81; Q &#143;  &#205; Í
    &ntilde; ñ &#82; R &#144;  &#206; Î
    &ograve; ò &#83; S &#145; &#207; Ï
    &oacute; ó &#84; T &#146; &#208; Ð
    &ocirc; ô &#85; U &#147; &#209; Ñ
    &otilde; õ &#86; V &#148; &#210; Ò
    &ouml; ö &#87; W &#149; &#211; Ó
    &oslash; ø &#88; X &#150; &#212; Ô
    &ugrave; ù &#89; Y &#151; &#213; Õ
    &uacute; ú &#90; Z &#152; ˜ &#214; Ö
    &ucirc; û &#91; [ &#153; &#215; ×
    &yacute; ý &#92; \ &#154; š &#216; Ø
    &thorn; þ &#93; ] &#155; &#217; Ù
    &yuml; ÿ &#94; ^ &#156; œ &#218; Ú

    Whilst the above list is by no means complete, it should contain the most useful characters and codes for you to build your sites using the special characters with ease.

    Article written by Lee

  • Search Engine Themes!

    Date: 2011.02.24 | Category: Search Engine Optimization | Response: 0

    It’s safe to say that the ‘pay-per-inclusion’ model is rapidly catching on with today’s search engines and directories as they are forced to become profitable in a hurry. But there’s also another trend that’s come to the fore.

    ‘Theme indexing’ is a process used by search engines to determine an entire site’s primary theme. In other words, your complete set of Web pages is indexed as one, and defined as one.

    This is why sites with multiple product lines and subject content often get poor rankings today. To learn how to combat this, let’s first look at the theme indexing process from the search engine’s point of view.

    According to Search Engine World, the theme indexing search engine follows this basic 5-step progression as it ‘weighs’ what a particular site is about:

    1. Page Titles
    2. Meta Tags
    3. Page Headings
    4. Page Content
    5. Links

    This is a general overview of the approach – each search engine is unique, and no one has the ultimate read on every search site. But to date this has proven to be true of AltaVista, Google, Excite, Lycos and WebCrawler.

    All of these belong on the ‘Who’s Who’ list of major search sites today. If it’s important that your Web business be found among them, today you must write your site with theme indexing in mind. Here’s how:

    The concept itself is simple. Focus your entire site like a laser beam on a single, potent theme.

    The process is ruthless. Get rid of the deadwood. Set up additional sites as needed for each individual product and service ‘family’.

    In the same way that you must now invest to get indexed on Yahoo, LookSmart, Inktomi and other top directories, you need to invest in separating your activities by theme into multiple Web sites. Kick out unrelated content, links and affiliate programs that don’t relate to your market niche. Build new sites as needed, with each focusing on its own unique selling proposition. This is the first step to take in the optimization copywriting process.

    Having done this, here’s how to write each site to get the best possible positioning on theme indexing search engines.

    Focus Your Key Phrase.

    Determine what key phrase your entire site is about – a key phrase people use often on the search engines. To pick heavily searched, popular key phrases, try Word Tracker: http://www.wordtracker.com/.

    Write Your Copy. Throughout your site play variations on your key phrase theme. Every element counts: page titles, meta tags, page headings, page content, links. Remember to write for people first. Search engines are robotic, but people always want to know what’s in your site for them. Tell them what qualifies you to help, and what you have to offer. Balance using your key phrase with the benefits you deliver.

    Once you’ve written your copy, search your text for generic phrases like ‘our product’ and substitute your key phrase. Use long copy where you can. Not only does it outsell shorter copy – it also makes it easier for you to write keyword-rich text.

    Format Your Text.

    Use key phrase bullets. They break up text copy and serve you as mini headlines with an entirely different look and feel.

    Use multiple headlines to create immediate context when a visitor explores your site. Make these headlines specific by using your key phrase. Tag headlines in your source code – <H1>, <H2> or <H3> – to highlight your theme.

    Write your links as mini-headlines. Often people scan pages by jumping from one link to another. Link words look very much like headlines, or highlighted words, and should deliver your primary message and key phrase.

    Measure and Test.

    Conventional wisdom tells us that the ideal keyword density is somewhere between 3-7%. To check this before you submit, try the free Keyword Density Analyzer: http://www.keyworddensity.com/. For a more accurate read on individual search engines, do a search under your key phrase, then take the top 3 returns, enter their URLs and try to match their percentages before you submit. Track your placement and adjust accordingly.

    This is the initial approach to optimization copywriting for theme indexing search engines. Keep it simple: start here.

    Article written by Lee

  • Saving Time Online – Shortcut Keys

    Date: 2011.02.24 | Category: General | Response: 0

    The one thing that i have started to do just lately is use shortcut keys. These are actually very easy to get used to and, will save you a lot of effort over a period of time.

    Below you will find a list of the more common shortcut keys in both Windows and Internet Explorer.

    Even if you get used to using one or two of these shortcut keys you will notice the time you start save over a week, hell, i don’t even type the whole domain into my IE address bar anymore!

    Here are the shortcuts for Windows along with the description of what they do:

    Alt + F – File menu options in current program.
    Alt + E – Edit options in current program
    F1 – Universal Help.
    Ctrl + A – Select all text.
    Ctrl + X – Cut selected item.
    Shift + Del – Cut selected item.
    Ctrl + C – Copy selected item.
    Ctrl + Ins – Copy selected item
    Ctrl + V – Paste
    Shift + Ins – Paste
    Home – Goes to beginning of current line.
    Ctrl + Home – Goes to beginning of document.
    End – Goes to end of current line.
    Ctrl + End – Goes to end of document.
    Shift + Home – Highlights from current position to beginning of line.
    Shift + End – Highlights from current position to end of line.
    Ctrl + Left – Moves one word to the left at a time.
    Ctrl + Right – Moves one word to the right at a time.
    Ctrl + Backspace – Delete word to the left of cursor.
    Ctrl + Del – Delete word to the right of cursor.
    Alt + Tab – Switch between open applications.
    Alt + Shift + Tab – Switch backwards between open applications.
    Ctrl + Esc – Bring Up start button.
    Alt + Esc – Switch Between open applications on taskbar.
    F2 – Renames selected Icon
    F3 – Starts find from desktop
    F4 – Opens the drive selection when browsing.
    F5 – Refresh Contents
    Alt + F4 – Closes Current open program.
    Ctrl + F4 – Closes Window in Program
    Alt + Enter – Opens properties window of Selected icon or program.
    Shift + F10 – Simulates right click on selected item.
    Shift + Del – Delete programs/files without throwing into the recycle bin.
    Holding Shift – Boot safe mode or by pass system files.
    Holding Shift – When putting in an audio cd will prevent CD Player from playing.

    The following list are shortcut keys when using Internet Explorer:

    Alt + Left – Back a page.
    Alt + Right – Forward a page.
    F5 – Refresh current page / frame.
    Esc – Stop page or download from loading.
    Ctrl + Enter – Quickly complete an address.
    Ctrl + N – Open New browser window.
    Ctrl + P – Print current page / frame.

    Hopefully this list of shortcut keys will get you saving some time even if its just a few minutes a day. After all, we all know the one thing webmasters need more of is time.

    Article written by Lee

  • Adult Webmaster Conventions – Remember When?

    Date: 2011.02.21 | Category: General | Response: 0

    Most webmasters who have been working in the adult industry for a year or two have attended an adult webmaster convention of some sort and, those of us who had the privilege of attending our first webmaster show three to four years ago will know one thing that many others don’t, there used to be a time when you could attend a webmaster show for example, the one held at Disney World (how many of you remember that?) when apart from being relaxing, you would also get a lot of business done alas, times have changed.

    Fighting, Drug Taking, Getting Drunk, Rape Accusations, Theft and Criminal damage would be the headline in the national press should one of these reporters attend today’s webmaster convention, instead of a relaxing atmosphere in which you can get business done you find a slew of webmasters who, well, lets be honest here, are only attending these shows for one reason, to get drunk (for free) and to have a laugh.

    Of late there seems to have been an influx of people (notice I used the word people and not ‘adult webmasters’) joining the adult industry who would appear to think that our business model is one of all night partying, sordid sex sessions and drug taking, whilst, I will be the first to admit this has gone on in the past it would certainly seem that the last 2-3 years has seen more than its fair share of the negative events happening at these conventions.

    Take for example the recent Hollywood Internext Expo show, one incident that comes to mind was the fool who decided it would be a good idea to smash the mezzanine canopy above the hotel lobby, to my knowledge the culprit was never found however, I am sure there are those out there who knows who it was and well, lets be honest, they quite possibly you could be reading this article.

    So what happened? How did these shows change so drastically? Quite simply I think it was the sudden onslaught of press coverage about how the adult industry makes so much money for everyone and, whilst there is a lot of money to be made in the industry, it takes a lot of work to achieve making the reported figures by the press.

    To many people are entering the adult industry thinking that the ‘norm’ is that of what you can find on your average day of visiting GFY and whist, this is perhaps true for the circle of webmasters who do frequent boards such as GFY for the vast majority of hard working webmasters in the industry, the behavior of those webmasters couldn’t be further from the truth.

    So where is all the business being done at the shows? It would appear that event after event the open invite list of parties are being cut down to be taken over by more intimate and sociable private parties in fact, as a company we our ourselves holding several smaller invite only parties for those people that we actually want to do business with on both a personal and a professional level.

    So what does the future have in hold for the adult industry events, in all honesty I do not know however, one thing is for certain, if things continue on their current route, things are going to become a whole lot worse before they get any better.

    Article written by Lee.

  • New European V.A.T Laws – Are You Prepared?

    Date: 2011.02.23 | Category: Billing Solutions | Response: 0

    Under a new law that has been passed in the EU from July 1st 2003 any internet based company selling services or goods to customers inside the EU will have to pay the member state of their customer/client the equivalent V.A.T (Value Added Tax) Rate.

    This in itself is not a big problem, online business have been paying taxes for many years, the problems start to occur when you take a look at the current state of the V.A.T system in the EU state members on an individual basis.

    The following list shows the percentage of V.A.T that you will need to add to your clients bills if they are located inside a member state of the EU:

    Austria – 20% VAT
    Belgium – 21% VAT
    Denmark – 25% VAT
    Finland – 22% VAT
    France – 19.6% VAT
    Germany – 16% VAT
    Greece – 18% VAT
    Ireland – 21% VAT
    Italy – 20% VAT
    Luxembourg – 15% VAT
    Netherlands – 19% VAT
    Portugal – 17% VAT
    Spain – 16% VAT
    Sweden – 25% VAT
    United Kingdom – 17.5% VAT

    This will pose several problems for the adult industry namely, how will our billing processors be able to handle transactions from European Union citizens? After all, with so many different VAT rates across the EU their billing systems need to be able to correctly calculate the correct amount of VAT to the surfers final order.

    Several accounting firms have set up new divisions to handle this for the mainstream side of the internet industry however, until just recently, the adult internet was unaware this was happening.

    It would seem that although the international market place is a wholly viable one for adult webmasters to break into, it brings with it more complications that simply breaking the language barrier.

    This new law will be a good test of the adult industry processors to see how they can handle the economic changes of the global market place and, more importantly, how they handle the new frontiers of international marketing on a global scale.

    Article written by Lee

  • Adult Industry Standards – What Are They Exactly?

    Date: 2011.02.21 | Category: General | Response: 0

    For some, the term ‘industry standards’ might seem like an oxymoron and, in such a wide spread global industry this might just be the case, the adult industry is not regulated in any way shape or form however, this term is thrown around with the best of them.

    In this article we will take a quick look at some of the ‘standards’ which have been set and, for the most part, seem to be accepted across the online adult industry as a whole.

    Industry Standards – The Basics.

    ‘Industry Standards’ are, in effect a set of guidelines or rules by which any person operating a business in a specific sector operate by. These may range fro charging a standard price for a product, operating in a certain way or something else. Most industries have their own set of specific ‘standards’ which are usually upheld regardless of whether they are actually written in law, as regulations, rules or, unwritten, unspoken standards.

    Adult Industry Standards – The List.

    This is a list of the 4 most common ‘Adult Industry Standards’ that webmasters would seem to operate their businesses towards, these are not ‘official’ industry standards more general operational guideline which are accepted as the ‘norm’ in our industry.

    1) Adult Webmasters should use ‘legal’ content.
    2) Adult Webmasters should abide by the rules of the sponsors they use.
    3) Adult Webmasters should not promote ‘child pornography’ or imply the promotion of the same.
    4) Adult Webmasters should operate their business within the scope of the law.

    Taking the above four items into account, there of course, other standards by which webmasters already self-regulate to some extent for example, you shouldn’t steal other webmasters work, content, bandwidth (through hotlinking), etc. However, other than the four primary ‘unwritten rules’ above there doesn’t appear to be any special ‘code of practice’ to which webmasters should or even, can adhere to.

    Taking the above information one step further, lets take a quick look at the adult industry sponsors, almost all of them have a different variation of their Terms and Conditions however, implied or otherwise, most of them tend to stick within the confines of the details already mentioned above. This in itself can lead webmasters into some troubles for example, promotion of sites, most sponsors have unwritten rules about what webmasters can and cant do to promote sites, no spamming paysites, no misleading links but, again, there are no ‘set’ rules that any two sponsors seem to say in the exact same manner.

    Adult Industry Standards – Self Regulation.

    We all know by now (at least those of us whom have been doing this for a few months) that the adult industry is pretty much self regulated and, whilst this is almost certainly a good thing it can also lead to complications. For example, ‘Webmaster A’ does something to promote a site that they got permission to do whilst, ‘Webmaster B’ does the same thing without having permission. in this instance, more often than not ‘Webmaster B’ will the one who gets their name blackened in the industry. it would also seem that, whilst those webmasters who have a long standing in the industry are capable of getting away with certain things, others, who perhaps have seen things done, when they try the same they get ridiculed.

    Adult Industry Standards – Overview.

    As ‘Adult Webmasters’ and, i would like to stress the ‘Adult’ part of that job title we have a lot of information thrown at us from the very first day of joining this industry, how we choose to use that information is up to us on an individual basis. That said, until the ‘standards’ are set on a level playing field i cant help wondering what effect, negative or positive our own style of self regulation is having on our associates and peers, does it help that we can go to message forums and call sponsors, hosts, other webmasters cheats? or, does this hinder our industry on a much wider scale?

    One thing is for certain, if i were a journalist writing a report on the adult industry as a whole, i don’t even think i could write about the actual ‘business’ side of things after all, we all run our businesses as we see fit and, at the same time, read the rule book that would at least, for the time being, suit us as individual business owners.

    Article written by Lee.

  • Redirecting To A Different Page Using JavaScrip

    Date: 2011.02.24 | Category: Scripts | Response: 0

    There are times when a simple JavaScript redirection from one page to another can come in handy and, the following JavaScripting will enable you to do this.

    When a page contains this javascript, it will be redirected to another page that you specify in the “window.location=”. You can change the number of refresh seconds by changing the “move()’,1000 to the number of seconds you’d like.

    Example:

    1000 = 1 second
    2000 = 2 seconds
    3000 = 3 seconds

    Place this JavaScript code between the <head> and </head> tags

    <script language=”JavaScript”>
    <!–hide from old browsers
    var time = null
    function move() {
    window.location = ‘http://www.yourdomain.com’
    }
    //–>
    </script>

    Place this JavaScript code in your <body> tag

    <body onload=”timer=setTimeout(‘move()’,1000)”>

    You should now have a page that will redirect to a new url when it loads in the surfers browser window.

    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.

  • 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