Solved

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

Posted on 2007-12-05
9
410 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
Comment Utility
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
Comment Utility
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
Comment Utility
Here is a webpage that might have what you're looking for:

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

Hope this helps!
0
 
LVL 21

Expert Comment

by:nizsmo
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 36

Author Comment

by:Loganathan Natarajan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now