NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Is This Possible ?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-01-2006, 03:18 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 479
aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough
 




Lightbulb Is This Possible ?


hi there, im looking for a javascript for my google adsense basically. i want my ads to show up only once per visit. is it possible? if yes kindly tell me here, im sure it will be helpful for many adsense users here.
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-01-2006, 03:58 PM   #2 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Originally Posted by aLeeOnline
hi there, im looking for a javascript for my google adsense basically. i want my ads to show up only once per visit. is it possible? if yes kindly tell me here, im sure it will be helpful for many adsense users here.
There is a way to do that using cookies I think... It could be done using php sessions also.
????: NamePros.com http://www.namepros.com/programming/182827-is-this-possible.html

Im not too sure on the javascript way. Could I ask though why you only want the ads to show once per visit?
BillyConnite is offline  
Old 04-01-2006, 04:46 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 479
aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough
 




i want that script if anyone can arrange.
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-01-2006, 09:37 PM   #4 (permalink)
New Member
Join Date: Feb 2006
Posts: 11
nguyenvanthoai is an unknown quantity at this point
 



It's very easy. I'm not good at JS, so I'll tell you how to do it in PHP.

<?php
if (!isset($_COOKIE['first']){
?>
Your Adsense code goes here
<?
$_COOKIE['first']=true;
}
?>

PS: I haven't tested this yet.
nguyenvanthoai is offline  
Old 04-02-2006, 01:57 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 479
aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough
 




will i just have to copy and paste it into my page ? im using a webpage with .html or .htm extension, not using php. will it work just by copy pasting this code ? thanks in advance n sorry for such noob questions
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-02-2006, 03:29 AM   #6 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
May I ask what you would like to show the rest of the time? I am working on a Javascript applet for you.. I just need to know..

- Steve
__________________
I feel old.
iNod is offline  
Old 04-02-2006, 03:58 AM   #7 (permalink)
NamePros Regular
Join Date: Mar 2006
Posts: 397
sacx13 is on a distinguished road
 




Originally Posted by aLeeOnline
will i just have to copy and paste it into my page ? im using a webpage with .html or .htm extension, not using php. will it work just by copy pasting this code ? thanks in advance n sorry for such noob questions
if you want to run php in your html files just add in your apache configuration:
????: NamePros.com http://www.namepros.com/showthread.php?t=182827
AddType application/x-httpd-php .php .phtml .php3 .html


Regards
Adrian
sacx13 is offline  
Old 04-02-2006, 08:55 AM THREAD STARTER               #8 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 479
aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough
 




thnx


Originally Posted by iNod
May I ask what you would like to show the rest of the time? I am working on a Javascript applet for you.. I just need to know..

- Steve
omg, thanks Steve, well it can show any other html page for the rest of the times like www.mydomain.com/demo.html. my google ads must be shown once per day. thanks a million again buddy
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-03-2006, 01:41 PM THREAD STARTER               #9 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 479
aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough
 




iNod ? mate u there ... ?
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 02:29 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger