Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Welcome to the TechnoWorldInc! Community!
Recent Updates
[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[February 14, 2024, 02:00:39 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   MegaPixelShop
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » Javascript
  Instant plug-in scripts that help you profit... "Special offer expiry date with
Pages: [1]   Go Down
  Print  
Author Topic: Instant plug-in scripts that help you profit... "Special offer expiry date with  (Read 1045 times)
Daniel Franklin
TWI Hero
**********


Karma: 3
Offline Offline

Posts: 16647


View Profile Email


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 [email protected] 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:[email protected]

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:[email protected]

Articles Source - Free Articles

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.07 seconds with 24 queries.