Solved

How do I implement pop-up ads or pop-under ads?

Posted on 2007-12-05
9
433 Views
Last Modified: 2008-02-01
I have already tried the pop-ups as "New Window" whenever the homepage/or specific page opens (body tag-

onload), but Is there anything new idea in pop-up ads, pop-under ads...

so, how do I implement pop-up / pop-under ads. Also, How do I implement the below code as ads in my site,

<!-- BEGIN STANDARD TAG - popup or popunder - ROS: Run-of-site - DO NOT MODIFY -->
<SCRIPT TYPE="text/javascript" SRC=" http://test.com/st?

ad_type=pop&ad_size=0x0&section=244242&banned_pop_types=38&pop_times=1
&pop_frequency=82312"></SCRIP

T>
<!-- END TAG -->

Any suggestion would be greatly appreciated.
0
Comment
Question by:Loganathan Natarajan
  • 4
  • 3
  • 2
9 Comments
 
LVL 21

Assisted Solution

by:nizsmo
nizsmo earned 100 total points
ID: 20418035
Can you explain more clearly what you want to do? popups are normally triggered with javascript, and not php.
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 20418079
i think using javascript the ads could be processed... i want to know how do i pop-up or pop-under the above Ad in my php web page?

i want to display or pop-up the above Ad's? how do i proceed?
0
 
LVL 2

Accepted Solution

by:
TheHound earned 400 total points
ID: 20418281
Here is a webpage that might have what you're looking for:

http://www.tizag.com/javascriptT/javascriptpopups.php

Hope this helps!
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 21

Expert Comment

by:nizsmo
ID: 20418370
You can easily modify the above page's code (provided by TheHound) to fire with body'd onload tag:

<head>
<script type="text/javascript">
<!--
function myPopup() {
window.open( "http://www.google.com/" )
}
//-->
</script>
</head>
<body onLoad"myPopup();">
<form>
<input type="button" onClick="myPopup()" value="POP!">
</form>
<p>Testing Paragraph</p>
</body>
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 20418400
TheHound::

i have looked the page, it is just pop-up windows that makes to pop-up when you visit any page

 I need the the pop-up & pop-under Ads .. how it is processed like parsed or called upon dynamically whenever you add Ads into it.,
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 20418410
if input is given something like

<!-- BEGIN STANDARD TAG - popup or popunder - ROS: Run-of-site - DO NOT MODIFY -->
<SCRIPT TYPE="text/javascript" SRC=" http://test.com/st?

ad_type=pop&ad_size=0x0&section=244242&banned_pop_types=38&pop_times=1
&pop_frequency=82312"></SCRIP

T>
<!-- END TAG -->

how can i do that pop-up for this javascript code???
0
 
LVL 2

Expert Comment

by:TheHound
ID: 20418521
I'd assume that you would put that code between the <head></head> tags. Otherwise, I'm not sure what you're asking.
0
 
LVL 36

Author Comment

by:Loganathan Natarajan
ID: 20418598
i think i am not taking this in right direction... normally, how the Ads are implemented ?... Is it like just opening it in new windows (as many ads) using window.open() method? ...

how can i open the pop-under Ads as background of the main page?
0
 
LVL 2

Expert Comment

by:TheHound
ID: 20418657
The majority of pop up/under ads use javascript. There are many methods, one of the main ones is the window.open() method. Here is another site that may help:

http://www.netevolution.co.uk/scripts.asp?ID=46

Sorry, if I am getting at the wrong thing here.
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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

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