Webmasters Heaven, Free submission, Free Promotion, Free Tools
Backword Forward Home add this page to favoirates send this page to a friend print this page icons Webmaster Tools Web Site Submit Web Site Promotion Subscriptions
Free Icons Free Articels Free Tools Website submission Websites Promotion Subscriptions

Articles Category  ]

Google
 
Advertising
Affiliates
Blogs
CGI
CSS
DHTML
Domain Names
ECommerce
Email
HTML
Internet
Javascript
Link Popularity
Marketing
MLM
Newsletters
Promotion
RSS
Search Engines
Site Security
Traffic Analysis
Web Hosting
Web Design
Webmasters


articles -> javascript
Article Title Author
A Recursive Filtering Workbench in Java Richard G. Baldwin
7 Reasons You Should Avoid JavaScript Dynamic Navigation Iain Row
Using External JavaScript Source Files Sasch Mayer
dhtmlxTabbar - Creating Dynamic Tabbed Interface Has Never Been Easier! Ivan Petrenko
dhtmlxTree version 1.3 - Add Flexibility to Your Web Trees Ivan Petrenko
Java tips & tutorials - best Subscriptions for learning Java Groshan Fabiola
Ajaxgear Toolkit Allan Spartacus Mangune
Evaluation of Keywords for an AdSense Oriented Website F. Terrence Markle
Submit form conditionally - JavaScript SiteArticles.com
New Customizable JavaScript Menu for Web Applications Ivan Petrenko
Capturing Video And Audio Streams How-To John Deprice
How to handle web surfers, who disabled JavaScript Michael Kashirin
Simplified form to mail: Unlimitted input Endar WS
Anti right-click pop up : pop up will appear if visitors right-clicks his mouse Endar WS
Password protected document : Protect your web page with specific password for each member Endar WS
Building HTML codes automatically, just copy&paste your content Endar WS
Javascript Password Protection Timur Abdrakhmanov
How to test for the Javascript DOM? Riaan Pieterse
Interactive Forms Brian Zimmer
Validating Numerical Input with JavaScript David Morse
Instant plug-in scripts that help you profit... "Special offer expiry date with a twist" Michel Komarov
Javascript Basics 01 Lisa Spurlin
Javascript; Browser Detection and Page Redirection William J. Tolson
Ask Mr. D - JavaScript Bill Daugherty
Grow Your Subscribers Exponentially With These Javascript E-mail Capture Boxes! Vishal Rao
Some Useful JavaScript Tricks Mitchell Harper
Validating Form Input in JavaScript Amrit Hallan
Using External JavaScript Files Amrit Hallan
Guide to creating simple chromeless popup windows Michael Bloch
Dirty Web Promotion Tricks #1 - Legitimate and Malicious Javascripts Michael Bloch
Spice Up Your Web Site with JavaScript Shelley Lowery
Make your website scream with excitement with Java! Johnathan Wyka-Warzecha

Instant plug-in scripts that help you profit... "Special offer expiry date with a twist"   by Michel Komarov


How would you like to add an irresistible sense of urgency to any of your online offers... instantly?

I thought so!

What I've go for you here is the perfect answer in the form of a special piece of JavaScript you can just copy and paste into your sa'les page.

So what does it do exactly?

It creates an active deadline date counting down the days until your offer expires.

So where's the twist?

What's extra special about this unique code is as soon as the offer is over the HTML code you placed inside this script will no longer be seen on your website.

For example inside the HTML code could be an order button giving your visitors the chance to order at a discount.

As soon as the special offer date has been reached the discount order button just disappears!

I think this is much more honest way of working than just adding an advance special offer expiry date that's never reached.

Here's how it all works...

Place the HTML code into the source code of your web page anywhere between the <body> and </body> tags. The position you choose is where your special offer will appear:

<script language="JavaScript"><!-- // Script created by http://icoder.com // Subscribe to freescripts@icoder.com for this // and many other essential web site scripts.

var expiry = new Date(2004,0,1);

// (2004,0,1) = (year, month, day) // months: 0 = Jan, 1 = Feb, 2 = Mar, 3 = Apr, // 4 = May, 5 = Jun, 6 = Jul, 7 = Aug, 8 = Sep, // 9 = Oct, 10 = Nov, 11 = Dec

var today = new Date(); var expiryDays = parseInt((expiry-today)/86400000); var expiryDate = expiry.toDateString(); if (expiry > today) document.write(

'<!-- Place your special offer HTML-code here -->'+ '

'+ 'Your special offer HTML-code.
'+ 'You can use:'+ 'still '+ expiryDays +' days
'+ 'or... till '+ expiryDate +'
'+ '

'+ '<!-- End of the special offer HTML-code -->'

); --> </script>

Set the expiry date you need at string:

var expiry = new Date(2004,0,1);

Note. See the comment below this string. Month's numbers begin from 0.

You need to place your special offer HTML-code between string

'<!-- Place your special offer HTML-code here -->'+

and

'<!-- End of the special offer HTML-code -->'

Then you should quote each your HTML-code line with single quoting symbol (') and add the plus symbol (+) at the end of each line.

Please note: You shouldn't use single quoting symbol inside your HTML-code. (Use double quoting symbol inside your HTML-code instead.)

You can also place the expiry date inside your special offer.

Use the expiryDate variable. Or you can place the number of days till the offer expire, just use the expiryDays variable.

That's all there is to it, if you follow this link: http://www.icoder.com/pluginscripts/examples/2offer.html you can see how it should look when you've installed it on your web page.

For a more detailed explanation on what JavaScripts are and how to install them please send a blank email here: mailto:jshelp@icoder.com

If you need any help or advice in installing this or any of my other plug-in scripts just let me know and I'll do my best to help ;-)

At your service,

Michel Komarov mailto:michel@icoder.com

About the Author

Michel Komarov is a fully qualified software engineer with over 5 years experience helping people to automate their online businesses for maximum profits.


If nothing is showing below this means that either javascript is disabled or pc firewall Ad Bloker is preventing it from showing.

[Earn Money]


[More Traffic ]


Ads  ]