creating first time popup pop up pop-up windows cookies
Creating First Time Popup Pop Up Pop-up Windows Cookies

Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

Free Articles: free content that may be published in your ezine or on your web site

Sunday, March 30, 2025

creating first time popup pop up pop-up windows cookies
Creating First Time Popup Pop Up Pop-up Windows Cookies

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

creating first time popup pop up pop-up windows cookies
Creating First Time Popup Pop Up Pop-up Windows Cookies
website design

Create Your Own "First Visit" Pop-Window

It's a proven fact that the use of popup windows is a highly effective marketing technique that produces great results. However, they can be very irritating to your visitors. How
can you use this powerful marketing technique without offending your visitors? Compromise and use a popup window that only displays the first time your visitor enters your site.

Your first step in creating your popup window will be to create an HTML document that will contain your window contents. The key to using this technique effectively is to give your
visitors a reason to respond to your offer. For example, if you're using your popup window to gain new subscribers to your publication, offer a free gift just for subscribing. This will increase your response considerably.

Below, is an example popup window that you can use to gain new subscribers. It is set up with "tables" and will adjust to fit your new window. Copy and paste the following code into
your HTML and edit as needed:

<HTML>
<HEAD>
<TITLE>Claim Your FREE Gift</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<CENTER>
<TABLE BORDER="0" CELLPADDING="2" ALIGN="Center">
<TR>
<TD BGCOLOR="red"><P ALIGN=Center>
<FONT face="Verdana,Helvetica" SIZE="3" color="white">
<B>Claim Your FREE Gift!</B></FONT>
</TD>
</TR>
<TR>
<TD><B><FONT face="Verdana,Helvetica" SIZE="3"><BR>
Subscribe to YOUR PUBLICATION for a wealth of information
to assist you in YOUR PUBLICATIONS SUBJECT. <FONT color=
"red">ALL new subscribers will receive YOUR FREE GIFT.
</FONT></FONT></B><BR>
<BR>
<FORM METHOD="POST" ACTION="YOURFORM.cgi">
<CENTER>
<TABLE BORDER="0" CELLPADDING="2" ALIGN="Center">
<TR VALIGN="Top">
<TD>
<INPUT type="text" name="email" value="you@domain.com"
size="20" onfocus="value=''">
<INPUT TYPE="submit" VALUE="Subscribe"></TD>
</TR>
</TABLE>
</CENTER>
</FORM>
<P ALIGN=Center>
<BR>
<A HREF="javascript: self.close()"><FONT face="Verdana,
Helvetica" SIZE="2">Close Window</FONT></A><BR>
</TD>
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>

Save your new document as "popup.htm" and upload it to your server where you store your HTML documents.

Your next step will be to place the following script, courtesy of Brian Terry <secretwebriches.com>, within your HTML after your <BODY> tag.

<SCRIPT LANGUAGE="JavaScript">
<!--
function GetCookie(name) {
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i<clen) {
var j=i+alen;
if (document.cookie.substring(i,j)==arg)
return "here";
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return null;
}
var visit=GetCookie("COOKIE1");
if (visit==null){
var expire=new Date();
window.name = "thiswin";
newwin=open("popup.htm", "dispwin",
"width=350,height=350,scrollbars=yes,menubar=no");
expire=new Date(expire.getTime()+7776000000);
document.cookie="COOKIE1=here; expires="+expire;
}
// -->
</SCRIPT>

If you saved your new window document as anything other than "popup.htm," you'll need to change the "popup.htm" text within the script to your new file name. You can also change the width and height settings to whatever you'd like. However, make sure that all of the information within your window is visible.

Popup windows provide Internet marketers with a great way to gain new subscribers, introduce new products and announce special offers. Their response rate is outstanding.
With the use of this great script, you can use the power of popup windows without continuously nagging your visitors.



Copyright © Shelley Lowery

About the Author:

Shelley Lowery is the author of the acclaimed web design course, Web Design Mastery. http://www.webdesignmastery.com And, Ebook Starter - Give Your Ebooks the look and feel of a REAL book. http://www.ebookstarter.com Visit Web-Source.net to sign up for a complimentary subscription to Etips and receive a copy of the acclaimed ebook, "Killer Internet Marketing Strategies." http://www.web-source.net




You have permission to publish this article electronically, in print, in your ebook or on your web site, free of charge, as long as the author bylines are included.

More Articles



eTips Member Login

Enter your email address and password to enter the private membership area:
Email:
Password:

Lost Password?

Email:

Not yet a member?

Click here to see what you're missing! Club members receive access to dozens of free video tutorials, utilities and ebooks.

Our Products


Web Design Mastery
Mastering Web Hosting
eBook Starter

Our Other Sites


ShelleyLowery.com
Web Design Mastery
Learn How to Make a Web Page
Make My Own Website Guide
Email Newsletter Service
Mastering Web Hosting
eBook Starter
Raging Hearts
Online Forex Trading For Beginners
Beginners Real Estate Investing

Partner Sites


Site Build It!
Web Site Templates

Web Site Design


HTML Tips
PC Security
CSS Tutorial
HTML Codes
Web Design Tips
JavaScript Codes
JavaScript Tutorial
Java Applet Tutorial
216 Web Safe Colors
Web Site Development
ASCII Character Codes

Web Site Tools


Domain Search
Format Your Text
Create Meta Tags
Text to HTML Converter
Color Code Converter
CSS Generator
Bookmark Site Generator
Button Generator
Rollover Button Generator
Rollover Text Button Generator
Colored Scrollbar Generator
Table Generator
Article Syndication
Free Classified Ads

Follow Us




Daily News For
Webmasters

Back


| Web Site Development | HTML Codes | HTML Tips | Javascript Snippets |
| Web Resources | 216 Safe Colors | Symbols | Web Development Strategies |
| FeedBack | About | Privacy Policy | Terms and Conditions | Site Map | Affiliate Program |


Web-Source.net http://www.web-source.net
Your Guide to Professional Web Site Design and Development
Hosted with Host4Profit.
Copyright © 1997-2025 Brajusta Publishing, Inc., All Rights Reserved