Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 02-06-2007, 05:12 PM   #1
BillyG
Confirmed User
 
Join Date: Dec 2005
Posts: 158
Exit script

I wanted to put an exit popup on my wordpress blog, and all the dhtml ones dont work can someone help me with the code or a script that will work with wordpress.

Thanks
billy
BillyG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-06-2007, 08:54 PM   #2
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
:tongue simple javascript popup wordpress

Greetings,

I'm using the new K2 template. I would imagine you could do this with the old one or anyone for that matter...

This may be the hard way but gets the job done.

In my /presentation/theme editor ... I find the header.php file. If you make your header.php file writable from the server you can edit this file in the admin panel. Or just do this in a shell.


add this right above the <body> tag in your header.php.

<SCRIPT LANGUAGE = "JavaScript">
<!-- //
function gofuckyourself(sURL)
{
popup=open(sURL,"window");
}
//-->
</script>

Then modify your <body> tag to include ...

onUnload="javascript:gofuckyourself (' URL TO PAGE')".

On my page it looks like...

<SCRIPT LANGUAGE = "JavaScript">
<!-- //
function gofuckyourself(sURL)
{
popup=open(sURL,"window");
}
//-->
</script>

<body onUnload="javascript:gofuckyourself ('http://www.fartfly.com')" class="<?php k2_body_class(); ?>" <?php k2_body_id(); ?>>


a quicky more or less
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 02-06-2007, 09:32 PM   #3
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
scratch that. this little simple script opens up a page everytime you move to another page.

don't put it in the header.php ...

thats what I get for trying to help out
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.