GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Jun-2002, 08:10
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

A good pop-under script?


I am looking for a good pop-under script for a future article of mine.

It needs to be using cookies of course.
  #2  
Old 09-Jun-2002, 16:37
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Let me know if you come across anything...
__________________
Web Hosting Tips | Career Advice
  #3  
Old 11-Jun-2002, 11:55
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Here's what I found:

Code:
//PopUnder Power //Credit notice must stay intact for use. //Paste this entire javascript between the <head> & </head> tags of your page, // Visit http://www.mikenew.net for more scripts. // by Mike New, with special thanks to Jeff Phillips of classadrivers.com // Begin. Specify URLs to randomly select from and pop-under. Edit & add freely. var popunder=new Array() popunder[0]="http://www.desilva.biz/mb/viewtopic.php?t=127" popunder[1]="http://www.desilva.biz/mb/" //popunder[2]="http://www.classadrivers.com" // Specify the width and height of new popunder window (in pixels). var width = '700'; var height = '450'; var p = 'scrollbars=yes,resizable=yes,toolbar=yes,' + //these are obvious variables. set "yes" or "no". 'menubar=yes,status=yes,location=yes,left=85,top=20,height=' + //yes/no, & the screen location height + ',width=' + width; // Load new PopUnder only once per browser session? (0=no, 1=yes) // Putting 0 will cause the Popunder to load every time page is loaded // Specifying 1 will cause it to load only once per session var one_time=1 // That's it! Don't edit the code below unless you're really good. :-P // function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if the cookie exists offset += search.length end = document.cookie.indexOf(";", offset); // set the index of beginning value if (end == -1) // set the index of the end of cookie value end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')==''){ load_pop_power() document.cookie="popunder=yes" } } function load_pop_power(){ win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p) win2.blur() window.focus() } if (one_time==0) load_pop_power() else loadornot()

Just need to tweak the cookie so it lasts more than 1 session (perhaps 1 month is more appropriate)... I am using it on the rest of the site since 24 hours now.

I am not on my own machine so, I just set it up through the web.... thank god it was simple enough!
  #4  
Old 11-Jun-2002, 16:48
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Is this what you are using on the main page to open the forum in a popup/under?
__________________
Web Hosting Tips | Career Advice
  #5  
Old 18-Jun-2002, 08:39
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Some useful scripts at http://www.ascripts.com/
__________________
Web Hosting Tips | Career Advice
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web stats fcolor Web Design Forum 10 12-Jul-2007 08:48
Need Free Website Templates sam_dezine Web Design Forum 8 06-Sep-2006 03:25
Who Is A Web Designer ? alicehopkins Web Design Forum 1 13-Jun-2006 02:56
HTML Code amgujral Web Design Forum 0 07-Apr-2006 09:46
A very good sitemap script jrobbio MySQL / PHP Forum 3 03-Mar-2003 01:07

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:20.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.