-
JavaScript Know How
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 windowBefore 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
-
Online Adult Laws – Privacy Policies
To many webmasters and companies working online the fundamental basics of their business is to turn a profit through effective online marketing campaigns and promotions however, within all of this profit making there is a side of business that is so often overlooked or, forgotten entirely, what is this business practice? The law.
In this brief article we will take a look at one such law that comes into effect in California on the 1st July 2004 namely, that all ‘web sites that collect any personal information from consumers to post a privacy policy’. Whilst this in itself is the first law of its kind in the United States it is worth mentioning that this is only a State law that affects California however, that said, where one state starts, others are sure to follow especially considering the huge potential left for the growth of the internet.
Privacy Policies – How Does This Effect You?
The main factor that you must take into consideration with this new law from California is that, because the Internet is truly global, you have no way of telling where one of your surfers are coming from thus, a surfer entering your site from California, may be making you break the law by not displaying a privacy policy should you collect their information. Incidentally, this new privacy policy law does not state what ‘collected’ information requires you to post a policy however, it would seem that personal information such as addresses, phone numbers and email addresses would be the primary target of this new Californian online law.Privacy Policies – The Basics.
So what is a privacy policy, in essence, it is a document informing your site visitors / customers that any information you collect from them, including user submitted information will be used in a specific way, this might be a case of solely being used by yourself or, specifically if you rent out this information you need to tell your surfers / customers exactly who you are renting this information to.Privacy Policies – Overview.
Whether you collect personal information from you site visitors or not the one thing that makes sense is to have a page created ready for the 1st July 2004 so that you can have it online for when you need it, perhaps storing this page on a central domain and linking to that page from all of your other web sites would be the best method to go as far as ensuring you are covered from prosecution or, perhaps creating a keyword rich privacy policy which you can get listed in the search engines is the way to go after all, just because this will become a legal requirement for you it does not mean that you cant profit from the potential traffic going to that page.Article written by Lee
-
Moving To A New Hosting Company
Moving to a new hosting provider does not have to be a frustrating task if done properly.
Adult webmasters usually have to upgrade their hosting services once their respective Web sites become popular, usually because their current host cannot provide an effective level of scalability or technical support or, perhaps even the cost of bandwidth becomes to high.
In order to transfer service efficiently, in the event that it becomes necessary, webmasters should ensure that all their content, including Web pages, databases and scripts, are properly archived.
You should always back up your data at regular intervals in case of unexpected data loss or hardware failure. Ensure that all data is archived recursively. This will ensure that all your data is archived and compressed in its original directories, which is very important if you want to retain the full working integrity of your Web sites.
You may also find that your new hosting company may be able to transfer the files directly from your old server to the new one you are getting with them, ask before hand if this is something that they can do for you as it is generally a lot quicker for them to do it than for you to upload the files yourself for instance, Web Air will do this work for you.Once you have recursively archived your site, make arrangements to purchase your new hosting services. Make sure that any new solution you select includes basic services that approximate and excel the service that you where obtaining with your previous hosting provider. It makes no sense to replace your present hosting service with another Web hosting solution that equally cannot fulfill your technical or financial requirements.
The best resource to use to find a better hosting firm specific to the adult hosting industry is Adult Hosting Companies, the largest adult Web hosting resource directory with currently over 250 hosts listed.
Once your new solution is activated, upload your archived Web pages, database and scripts to the new host. You will be allocated an IP number from the new hosting company. Take time to debug and test the new site from the individual IP number, not forgetting things like your cgi scripts may need altering.
Once your site is entirely debugged and you verify that all site functionality is operative, then transfer your domain name service (DNS) servers over from your old server to your new server.
During this DNS transition period, which is referred to as the “propagation period,” your Web site will be resolved by both your new and old host, as the new DNS information about your Web site filters through the Internet globally. It typically takes about 10 days for the transfer to fully propagate around the Internet; so keep your old site running in case you get visitors whose ISP’s have cached your site on the old server.
It is important however that you retain both your old and new hosting services during your propagation period of 10 days. You will need to check your e-mail from both hosting providers since different regions of the Internet will remit e-mail to your original host while other regions will remit mail to the new server during this time.
Once a week or two have elapsed, cancel the account with the previous hosting company. Only cancel your old account when e-mail stops arriving from your old hosting provider.
If you follow these steps carefully, then your host change should be easy and stress free.
Article written by Lee
-
Making Money From Adult Webmaster Referrals
One method of income generation that is very rarely talked about in the industry is that of the webmaster, from the new webmasters to the adult industry right up to those who have been in the biz some time.
One of the easiest ways to generate ‘long term’ income is by referring webmasters to programs using your own linking (referral) codes.
However, this is for some a huge step out of their everyday site building even though it shouldn’t be.
This is what we will investigate in this article.
By now we should at least have a fair few sites online and getting surfer traffic but, how many of us get traffic from other webmasters and don’t even know about it?
The chances are, if you submit a site to ANYWHERE you will at least get one webmaster hit to it regardless of whether it is a webmaster of a TGP, Links List, Dmoz Editor etc these are all potential money makers for you.
One of the easiest ways to make money from other webmasters is to simply have a link on each and every site you build in text that says ‘webmasters’ this should be linked to a single page on your domain with a listing of various affiliate programs you use or can recommend.
Often placing a button or a banner on this page for each of the referral programs will work much better for you as the webmaster can actually see a little more information about the sponsor you are trying to make them join.
We all know of some of the big sponsors like ARS, Topbucks, Sic Cash etc etc but, what about the smaller programs that, perhaps not many webmasters know about, these would be the ideal types of sponsor to use on your webmaster page.
However, in addition to the affiliate programs you could also recommend hosting companies, content providers etc etc for example, the following companies have referral programs that you could use on this page:
Content Providers:
http://content.xphotography.com
http://matrixcontent.com
http://pixmasters.comHosting Providers:
http://webair.comMessage Forums:
http://arsresources.com/forum/
http://xnations.comTraffic Generation:
http://adultbuttonexchange.com
http://pornclient.comAs you can see from the small list above, you could have more than one way for webmasters to make you some additional profits in the form of either, cold hard cash or, from some of the places, additional traffic to your sites.
Hopefully list brief article will have given you some ideas as to how you can make some additional money from webmasters visiting your site and, don’t forget, once you have the page linked on your site, it will, inevitably get into the search engines, so keyword the page up and you might start generating more webmaster traffic than you could imagine.
Article written by Lee.
-
Mirroring Adult Sites – Stage Four
We are now going to take our basic template and start to make some pages for the link lists for this you will need to open up your original warning page. Once you have this page open you need to visit a couple of the link lists that you use. Go to the submissions page of the link list and download their reciprocal buttons.
In the same way that we did with the TGP pages we created you now need to edit the warning page you have open and insert the recip links on your warning page, ideally and, as most link lists will require this, the recip links should be placed above the enter and exit links.
Once you have done this, you now need to save your newly edited page as linklist1.html in the /FreeSite/LinkList/ folder, do this for as many of the link lists that you wish to submit to, each time saving the new page in the /FreeSite/LinkList/ folder.
Also at this stage, we should add a console to our link list page, ideally a blur console with links going to your surfer trap FPA’s. You can find the Java coding to create a blur console on the tutorial about building a surfer trap.
Once we have done this, we now have some more sites created. However, this time, the page/s we have just created are designed to build the traffic we have to our site/s.
Once you have these pages saved you now need to re-open your original warning page once more.
This time, we are going to optimize the page for the search engines, again, in the same way we added our ALT tags on the surfer trap we are going to add them to the warning page however, we are also going to optimize our keywords, description and, site title.
Once we have optimized our original warning page we should now save this as se1.html in the /FreeSite/Engine/ folder we created at the start of this tutorial. Once one SE page has been created, you need to create a selection of others making sure that you swap around the meta tags to ensure they are all different to each other, I would suggest making three variations of these SE pages each time saving them in the /FreeSite/Engine/ folder.
The next thing we are going to do is to ‘dirty’ these SE pages up some more, pretty much in the same manner as we did with the surfer trap tutorial. What we need to do is add a small pop up console to the three SE pages along with a blur console, these consoles can be the same ones that we used for our surfer trap or, we can create new ones however, I think the smart thing to do would be if we used the ones we currently have online. So once we have added these consoles we need to save the pages.
Also, to these SE pages we should add our Banner exchange code, as these will be going into the search engines there are no rules as to what we can and can not do on these SE pages so we should make sure that even if they just get one hit, we get additional traffic from them. By adding a banner exchange code as we did on the surfer tutorial we can drive additional traffic either to our sites or to our surfer trap, where you send this traffic is your choice. If you want to sign up for our new banner exchange you can find it at http://www.pornclient.com.
Now we have the completed site template built. We need to submit the pages and sites we have just completed to the TGP’s, AVS’s, Link Lists and, the Search Engines.
Once we have submitted these sites all that we need to do to create a new set of sites is to find another set of 50 images, rename the images as we did at the start of this tutorial, pic1.jpg, thumb1.jpg etc and simply upload the site to our server without the full size images and the thumbnails. Once the HTML pages are online, we now have to upload the full size images and the thumbnails and we have a set of sites using different content to our original one built in less than 5 minutes.
The best thing with these sites is that if a any time we want to alter the layout, all we need to do is edit the HTML of the version we have saved on our HD and we have a new template ready to use.
I hope you have found some use out of this tutorial and, I am sure you can think of other ways in which we can use templates of this style, this tutorial was just detailing some of the basics however, we can make the template as simple or as complicated as we like. Our only limits are what we make for ourselves.
Article written by Lee
-
The Curse Of The Broken Image
At one time or another we have all done it, uploaded a new site only to find out that when we view the page in our browser one of the images are broken because we either didn’t link it properly or the filename wasn’t named correctly on our server.
We may think that this is a bad thing however, recent experimentation on my part has found quite the opposite.
We all search for new ways of getting the surfer to visit our sponsors in order to have them buy a membership and earn us a nice little slice of $$$ in the process but, what methods could we use that quite simply are overlooked?
One such method is that of utilizing broken images, lets be honest here, no-one wants broken image son their site, it makes the site look unprofessional but, lets think about this, on a page full of banners and graphics all nested together neatly on an FPA (Full Page Ad) what’s more likely to grab the surfers attention, a completely loaded heavy bandwidth graphic or a single solitary broken image placed in a such a spot the surfer actually notices it?
Makes you think doesn’t it. Our recent testing of this method has actually shown that our CTR (Click Through Ratio) rose slightly on a couple of sponsors we used this method on all of the sites in question had nice looking text and banners with corresponding thumbnails leading tot he full size image but, upon deliberately leaving an image off the server thus resulting in the ‘appearance’ of an erroneous broken graphic the spot where that image should have been was were a great deal of our click throughs came from.
I am not saying you should immediately go and delete all graphics from you pages but, a single, well placed broken image on a free site can work wonders in getting traffic off your site and to your sponsors pay site tour which ultimately, is what we want to happen at the EARLIEST possible time.
Article written by Lee
-
Unspoken Secrets
here is a belief among new webmasters that there is a set of golden rules among those of us whom have been at this business for many years to making money well guess what, these are those unspoken secrets….
Secret #1.
There are no secrets to becoming an adult webmaster. One of the most common reasons why so many new webmasters give up in this business is because they hear about the money that the big guys make, submit two TGP galleries to The Hun, get a $200 hosting bill and no signups. They then figure that the affiliate they are using is rubbish and then spend the next 2 months surfing the Net looking for the “be all and end all” of affiliate programs which is going to net them $2 million within the next 6 months. The fact of the matter is, that genie in the lamp you are looking for doesn’t exist. It all comes down to hard work, perseverance and common sense this is a business venture you have started like it or not and, it needs to be treated as one.
Secret #2
Don’t give up. You need to treat what your doing as a business. Of course, you can have fun with it but, at the same time you need to be making continual business plans for your development in much the same way as if you were self employed. Which, of course as soon as you start to make some money you will be.
Secret #3
Stay focused. There are a million and one ways to make money in the industry. You could build free sites, TGP galleries, AVS sites, pay sites, search engine pages, the list goes on. There are many different avenues to drive traffic. The key is to try everything. Eventually you will find the one venue that your are very good at. Continue with this until you know this in your sleep – work it so often and well that you master it. One other thing to remember, it wont make you money overnight, if you think it will, your starting out for the wrong reasons, putting it simply, Adult web mastering isn’t for you.
Secret #4
Build it and, it (And they) will come, don’t spend time worrying about your keywords, meta tags, the amount of images you are using, just because someone tells you this is what is required of your sites. Just build a site or gallery submit it, forget about it and get started on building your next, and the next, and the next site after that. Just keep on moving forward, if you forgot to do something on one of your sites don’t worry, add it to the next site that you build.
Secret #5
Start to network. Other webmasters are great for bouncing new ideas off, a group of webmasters who start at the same time all communicating with each other are going to develop more than a sole webmaster on their own. Networking is a big part of any successful webmasters daily routine. Make the most of the people you meet on the boards or aim or icq, it will benefit you long term.
Secret #6
This one you will probably hear day in, day out for the rest of your business life. “It’s too late for newbies to make money” I am sorry to be the one to tell you this but, this is rubbish. As long as you follow the basic rules above and work at it, you can and will make money in this still thriving industry.
Now you have heard the “secrets” you have wanted to know its up to you to put them to good use.
Article written by Lee
-
Using TITLE Tags effectively
Microsoft Internet Explorer has supported the TITLE attribute for links since version 4.0. Netscape began supporting it in version 6.0
The TITLE attribute allows you to enter descriptive text about a link that’s displayed when the mouse moves over the link. For an example, move your mouse over the link below:
European WebmastersThe HTML source code for this link is shown below:
<a href="http://www.europeanwebmasters.com" title="Click Here To Learn Foreign Adult Marketing">European Webmasters</a>
If your browser supports the TITLE attribute you should see a small popup box appear, similar to the way alternate text for images is displayed when you move your mouse over the image.
This attribute is similar to the ALT attribute for the IMG tag, both in its appearance and its limitations. The value of the attribute must be inside quotation marks, and it can only contain plain text (no HTML tags). You can include carriage returns in the title, and these will be displayed in the text. The maximum length of the TITLE text for Internet Explorer is very large; we’ve tested it with over 500 characters. Try to keep your descriptions below 25 words, though; any more than this can be hard to read and, because the search engine spiders can read this text you may be considered as spamming the engines.
The TITLE attribute is useful in places where your HTML design limits the length of your link text. That’s often the case for links in a navigation bar, especially if your page has a multi-column layout. Try using the TITLE attribute to give your visitors extra navigation information.
In addition you can also use the TITLE tag on standard text for extra information where you just don’t have the space to be as affluent as you would like. An example of this is shown below:
Use of the TITLE tag on plain text
The HTML code for this is also shown below:
<font size=”2″ face=”Verdana” color=”#000080″ title=”Use Of The TITLE Tag On Plain Text”>Use of the TITLE tag on plain text</font> This attribute is part of the HTML 4.0 standard. Internet Explorer, Netscape 6.x and Opera (Version 3.0 or higher) support it. However, the attribute degrades gracefully, visitors with non-supporting browsers (like Netscape 4.x) would see the link as if you hadn’t used the attribute.
As you can see from the above examples by using the TITLE tags effectively you can double, if not treble your use of keywords however, caution should be paid when using these features of the tag so that you don’t inadvertently spam the search engines.
Article Written By Lee
-
The Gay Adult Market – Gay Subcultures
I thought I would take a break from writing about online adult marketing for a change and instead, give many of the straight webmasters looking to break into the gay market a bit of an insight into what makes a gay man ‘tick’ and, whilst this is going to be different from guy to guy, the one thing that will remain constant throughout is that this article is based on the gay lifestyle and subculture in both society and, the internet.
What Is A Subculture?
Lets start at the beginning shall we? To understand this article you are first of all going to need to understand what a subculture is well, a subculture as defined by http://www.dictionary.com is, ‘A cultural subgroup differentiated by status, ethnic background, residence, religion, or other factors that functionally unify the group and act collectively on each member.’In layman’s terms, that means, that a subculture is a group of people (or individual) that have something different about them than other people.
In the instance of this article we are going to be looking at the gay subculture and specifically, how this culture is broken down into its own set of subcultures.
The Gay Subculture – Lets Define The Gay Culture.
Gay culture is the heritage of culture, knowledge, and references to which gay people fall heir by the fact of their sexual orientation.Some individuals argue that there are to many gay people who do not participate in ‘gay culture’ for the concept to be meaningful or that gay culture in itself is placing labels on the stereotype most people think of when they thing about gay people however with this said, there are also those who argue the flip side of the coin. One thing is for sure however, gay culture certainly does exist and, within this culture itself there are many complex facets ranging from sexual preferences through to the types of vacation people take.
Gay Subcultures – The Facets.
Whether we choose to think about the different subcultures within the gay community or not one thing is for certain, the subcultures in our community are wide and far reaching from your local gay bar to Soho in a city thousands of miles away most of the gay subcultures can be found almost anywhere in the world and, from this aspect, it makes gay individual no different than other person. For example, the BDSM lifestyle is large in the straight culture however, it is also hugely popular in the gay culture to often with groups of individuals who devote their whole way of life to this. In essence however, many of the gay subcultures are no different to that of their straight counterparts the only difference being, the individuals who practice them, are gay.Gay Subcultures – An Overview.
For many webmasters who currently work in the straight market their first attempt and even their second attempt at marketing to the gay lifestyle may fail however, many do not realize the simplest of rules when it comes to marketing products and services to gay individuals online, you need to be as, if not more, detailed and direct to gay surfers than straight, give them something they can find anywhere at anytime and the chances are they will not buy however, give them something that suits their tastes perfectly and you have a customer for life.Article written by Lee
-
Using .htaccess Effectively
The .htaccess file is an ASCII text document that can be placed in any directory on your site. It can be used to control access to files and directories, and customize some server operation in your site. A .htaccess file can be created in any word processor but must be saved as text only. You must use FTP software in ASCII mode to upload or edit your .htaccess file. For the examples provided here, place the .htaccess file in your root directory.
There are a variety of functions that you can control using .htaccess some of the more useful of these are explained below:
Custom Error Messages.
Add the following to the .htaccess file::
ErrorDocument 404 /notfound.html
After “ErrorDocument” specify the error code, followed by a space, and then the path and filename of the .html file you would like to be displayed when the specified error is generated, each specific error code is detailed below with the recommended codes to be used in the .htaccess file in bold :
200 OK
206 Partial content
301 Document moved permanently
302 Document found elsewhere
304 Not modified since last retrieval
400 Bad request
403 Access forbidden
404 Document not found
408 Request timeout
500 Internal server error
501 Request type not supportedUsing the codes above your error section of the .htaccess file should look like this:
ErrorDocument 301 /notfound.html
ErrorDocument 400 /notfound.html
ErrorDocument 403 /notfound.html
ErrorDocument 404 /notfound.html
ErrorDocument 500 /notfound.html
ErrorDocument 501 /notfound.htmlRedirect to a Different Folder.
Add the following to the .htaccess file:
RewriteEngine on
RewriteRule ^/oldfolder(.*)$ /newfolder/$1 [R]This redirects the user from /oldfolder/anyfile.html to /newfolder/anyfile.html, when the .htaccess file is uploaded to the otherwise empty “/oldfolder” directory.
Denying User Access.
Add the following to the .htaccess file:
<Limit GET>
order allow,deny
deny from 000.00.00.
deny from 000.000.000.000
allow from all
</Limit>This is an example of a .htaccess file that will block access to your site to anyone who is coming from any IP address beginning with 000.00.00 and from the specific IP address 000.000.000.000 . By specifying only part of an IP address, and ending the partial IP address with a period, all sub-addresses coming from the specified IP address block will be blocked. You must use the IP addresses to block access, use of domain names is not supported
Redirect a Machine Name.
Add the following to the .htaccess file:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
# Rewrite Rule for machine.domain-name.net
RewriteCond %{HTTP_HOST} machine.domain-name.net $
RewriteCond %{REQUEST_URI} !machine/
RewriteRule ^(.*)$ machine/$1This will redirect requests for the machine name machine.domain-name.net to the directory machine on the site domain-name.net.
Different Default Home Page.
Add the following to the .htaccess file:
DirectoryIndex filename.html
Then a request for http://domain-name.net/ would return http://domain-name.net/filename.html if it exists, or would list the directory if it did not exist.
To automatically run a cgi script, add the following to the .htaccess file:
DirectoryIndex /cgi-local/index.pl
This would cause the CGI script /cgi-bin/index.pl to be executed.
If you place your .htaccess file containing the DirectoryIndex specification in the root directory of your site, it will apply for all sub-directories at your site.
Preventing Hot Linking.
Add the following to the .htaccess file:
# Rewrite Rule for images
RewriteCond %{HTTP_REFERER} <URL of page accessing your domain>
RewriteRule ^(.*)$ http://<same as above URL>You would replace the <URL of page accessing your domain> above with the domain name and path of the page that is referring to your domain. For example: www.theirdomain.com/users/mypage/
The RewriteCond directive states that if the {HTTP_REFERER} matches the URL that follows, then use the RewriteRule directive. The RewriteRule directive will redirect any reference back to the referring web page.
Using the above you should, safely be able to publish your sites on the internet knowing that you will not be privy to bandwidth thieves via hotlinking and also, that you will not lose any traffic through pages that are ‘not found’.
Article Written By Lee
Premium Sponsors
Categories
- 2257
- Billing Solutions
- Blogging
- Branding
- Content
- Domain Names
- Employment
- Forms & Contracts
- General
- Hosting
- Link Lists
- Opt-in Mail
- Paid Traffic
- Pic Posts
- Promotion
- Scripts
- Search Engine Optimization
- Sponsors
- TGP
- Traffic
- Tutorials
- Viral Marketing
- WebDesign
- Writing