Solved

Pop-up coupon

Posted on 2003-11-03
2
296 Views
Last Modified: 2013-11-28
How do you make a pop-up coupon without menu bar? I need them to be able to print the coupon.  Is there way to put a counter on the coupon - to stop photo copy coupons?
I am using DreamWeaver 2.
0
Comment
Question by:lmcharlton
2 Comments
 

Accepted Solution

by:
ddarby14 earned 125 total points
ID: 9673783
Hi!

2 Options for you:

1) You want to open other popup windows

a)Put this in between the <head></head> tags of your main document from which you will launch the popup:

<script language="JavaScript" type="text/JavaScript">
<!--
function openPopup(URL,windowName,preferences) {
  window.open(URL,windowName,preferences);
}
//-->
</script>

b)Use this code to link text or an image somewhere in the body of your main document:

<a href="javascript:;" onclick="openPopup('coupon.htm','coupon','width=300,height=300,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no')">coupon</a>

c)adjust the width and height per your needs.  all of the rest of the options (toolbar, etc) can be left out - this is the same as NO, but i put these in to show you your options. You can use this same code for multiple links/popups by just changing the URL reference and preferences.


2) You only have 1 window to popup and want it quick and dirty:

a)Use this code to link text or an image somewhere in the body of your main document:

<a href="javascript:;" onclick="window.open('coupon.htm','coupon','width=300,height=300,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');">coupon</a>

b)options are same as above and if option=NO, it can just be removed.


PRINT:
Inside your popup window, you could put a link such as:
<a href="javascript: window.print();">print coupon</a>

or if you are only displaying a graphic, you could include a "press CTRL-P to print" instruction in the graphic.

COUNTER:
My only thoughts for now are do you have access to CGI on your web server? The only way I can think to have a counter is to write the current 'coupon number' to a file, then use CGI to call the coupon window at the same time, increasing the counter by 1 each time.  Let me know if you would like more thoughts on this...

I hope this helps.
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 9673936
I hope you got the Pop up solution Above.

For the Counter what exactly you want?
You want to increase the # each Time a user Click's your Coupon?

if yes then can you run ASP from your Server?
if yes then that is very simple and easy to do.

if you dont have ASP Support then we can Write javaScript Cookies to increament the Cookie value (1,2,3 and so on).
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
digital marketing for lead generation 4 119
wrist guard with locks to prevent wrist-cutting by a self-harming teen 8 118
Need icon art 9 110
Need mailing list of media people 4 96
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question