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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-22-2011, 02:18 AM   #1
Horny Joe
Confirmed User
 
Horny Joe's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
Clickable WP background

fris or any WP gurus, is it possible to have a clickable WP background?

What would be great was a "background rotator"-plugin, but I guess that is too much to ask
Horny Joe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 02:20 AM   #2
phasic
Confirmed User
 
phasic's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: US
Posts: 2,104
Bump, I wanna know this too.
__________________
Brief revisit. (mic drop)
phasic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 02:25 AM   #3
Tim
AffiliateManager for Hire
 
Industry Role:
Join Date: Feb 2002
Location: UK
Posts: 19,208
Not sure if this is exactly what you want but with this one you/your visitors can change the background:

http://www.neoease.com/themes/ and check Elegant Box.
__________________
🍑🍆 Sex Vitamins
🍑 𓂸
This sig for sale!

Last edited by Tim; 08-22-2011 at 02:27 AM..
Tim is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 03:14 AM   #4
Horny Joe
Confirmed User
 
Horny Joe's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
Quote:
Originally Posted by Tim View Post
Not sure if this is exactly what you want but with this one you/your visitors can change the background:

http://www.neoease.com/themes/ and check Elegant Box.
No, not like this (nice theme, though). I want to use all space on the page and instead of just a background photo/color, I want to have a full page banner that the surfers can click on
Horny Joe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 03:57 AM   #5
scouser
marketer.
 
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
if its a <div> with a background-image set you could always just add a onclick='document.location.href = "http://google.com"'. though that would interfererz with any <a>'s etc within that div
scouser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 03:59 AM   #6
Horny Joe
Confirmed User
 
Horny Joe's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
Quote:
Originally Posted by deadmoon View Post
if its a <div> with a background-image set you could always just add a onclick='document.location.href = "http://google.com"'. though that would interfererz with any <a>'s etc within that div
I will test this... THanks!
Horny Joe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 04:09 AM   #7
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
lots of flash games use that to cover empty space on left and right because most of them have their pages centered, maybe check their csourcescode...
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 04:30 AM   #8
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
couldn't you lay a transparent gif/png over the background image with z-index and make the transparent gif clickable?
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 06:42 AM   #9
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,316
Quote:
Originally Posted by Horny Joe View Post
fris or any WP gurus, is it possible to have a clickable WP background?

What would be great was a "background rotator"-plugin, but I guess that is too much to ask
yes its possible ;)

not really a wp issue though, more of a design issue.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 08:56 AM   #10
Bladewire
StraightBro
 
Bladewire's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Monarch Beach, CA USA
Posts: 56,229
Google wont like that
__________________


Skype: CallTomNow

Bladewire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 09:08 AM   #11
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Uhg, this really is bad bad UI design and it goes against the past 15 years of user experience but:

Code:
<style type="text/css">
.background-switch{
position:absolute;
top:0;
left:0;
z-index:3;
width:100%;
height:100%;
}
.wrapper{
position:absolute;
top:0;
left:50%;
z-index:6;
margin-left:-480px;
width:960px;
}
</style>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$('.background-switch').click(function() {
  //background script here
});
</script>

<div class="background-switch"></div>
<div class="wrapper">rest of website goes here</div>
I see some issues that could arise from it, but it's the best starting point to accomplish this.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 01:06 PM   #12
Horny Joe
Confirmed User
 
Horny Joe's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
Quote:
Originally Posted by potter View Post
Uhg, this really is bad bad UI design and it goes against the past 15 years of user experience but:

Code:
<style type="text/css">
.background-switch{
position:absolute;
top:0;
left:0;
z-index:3;
width:100%;
height:100%;
}
.wrapper{
position:absolute;
top:0;
left:50%;
z-index:6;
margin-left:-480px;
width:960px;
}
</style>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$('.background-switch').click(function() {
  //background script here
});
</script>

<div class="background-switch"></div>
<div class="wrapper">rest of website goes here</div>
I see some issues that could arise from it, but it's the best starting point to accomplish this.
Great! THanks! Will play around with this and see how it turns out! Got a new 6 blog network that I want to try it on. Not any traffic there yet, so I have some time to get it right

Thank you again!
Horny Joe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 01:08 PM   #13
candyflip
Carpe Visio
 
candyflip's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,057
The big gossip blogs that run on Wordpress all manage to do this.
__________________

Spend you some brain.
Email Me
candyflip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 04:32 PM   #14
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,405
interesting stuff
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 04:56 PM   #15
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by candyflip View Post
The big gossip blogs that run on Wordpress all manage to do this.
I already posted how to do it.

Here's the jquery if he doesn't have it:

Code:
<script type="text/javascript">
var images = ['foo.jpg', 'bar.jpg', 'image.jpg'];

function setImage() {
   return images[Math.floor(Math.random() * images.length)];
}

$('.background-switch').click(function() {
  $(this).css('background-image':setImage());
});
</script>
^ I literally just wrote that out without testing, but in theory it should work just fine. Basically, each time you click on the background-switch div, it'll switch the background image css to a random one selected from the images variable.
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 04:58 PM   #16
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
And if you wanted to change the background image of the body, it'd be even easier (even though the code above is simple as pie already).
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-22-2011, 05:07 PM   #17
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
figured i'd test it to make sure it works, it does (i did background-color instead of background-image though since i'm not going to make a bunch of test images for the sake of making sure it works).

Code:
<html>
<head>
<style type="text/css">
.background-switch{
position:absolute;
top:0;
left:0;
z-index:3;
width:100%;
height:100%;
background-color:cyan;
}
.wrapper{
position:absolute;
top:0;
left:50%;
z-index:6;
margin-left:-480px;
width:960px;
background-color:magenta;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
var images = ['red', 'black', 'yellow'];

function setImage() {
   return images[Math.floor(Math.random() * images.length)];
}

$(document).ready(function() {
	$('.background-switch').click(function() {
	  $(this).css("background-color",setImage());
	});
});
</script>
</head>
<body>
<div class="background-switch"></div>
<div class="wrapper">rest of website goes here</div>
</body>
</html>
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



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.