Wrox Programmer Forums
|
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2004, 10:12 AM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default POPUP ADVERTISEMENT Code

Please help me to make popup advertisement in my web site and what all tools i need to use.

 
Old October 9th, 2004, 10:20 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Pop-ups are created in JavaScript using a simple open() method of the window property like so:

<script type='text/javascript'>
var x = window.open('your_popup_page.html','x','width=100, height=100,top=100,left=100');
</script>

The width, height, top and left properties are customizable for your popup, as well as various other properties that can be found in a JavaScript or DHTML documentation.

If you want to have actual ads for an advertiser, you need to contact one of them to get the code they use.

HTH!

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)
 
Old October 9th, 2004, 10:33 AM
Registered User
 
Join Date: Oct 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

please give me some live example if possible.

 
Old October 9th, 2004, 03:27 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Type this into an HTML page and save it as popuppage.html:

<html>
<head>
<script type='text/javascript'>
var x = window.open('popup.html','x','left=200,top=200,wid th=200,height=200');
</script>
</head>
<body>
I made a pop-up!
</body>
</html>

Type this into another HTML page, save it as popup.html:
<html>
<head>
</head>
<body>
I'm the pop-up page!
</body>
</html>

Open popuppage.html in your browser. If you don't have a pop-up blocker, you're going to see a 200 pixel square pop-up exactly 200 pixels from the top and left.

Have fun!

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)





Similar Threads
Thread Thread Starter Forum Replies Last Post
need show an advertisement jayshankar ASP.NET 2.0 Basics 3 August 14th, 2008 06:55 PM
how to get value from popup tllcll JSP Basics 1 November 8th, 2005 02:41 AM
Popup Menu rweide Javascript 5 June 24th, 2005 03:28 PM
problem with Popup tgopal Javascript 4 October 29th, 2003 08:27 AM
Advertisement popups bmains ASP.NET 1.0 and 1.1 Professional 5 October 20th, 2003 01:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.