![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 ![]()
__________________
The Very Best Teen Content! Make $$$$ - Join DIESEL ACTION for Great Teen content |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jul 2005
Location: US
Posts: 2,104
|
Bump, I wanna know this too.
__________________
Brief revisit. (mic drop) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
|
Quote:
![]()
__________________
The Very Best Teen Content! Make $$$$ - Join DIESEL ACTION for Great Teen content |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
|
Quote:
![]()
__________________
The Very Best Teen Content! Make $$$$ - Join DIESEL ACTION for Great Teen content |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Check SIG!
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Too lazy to set a custom title
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,316
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
StraightBro
Industry Role:
Join Date: Aug 2003
Location: Monarch Beach, CA USA
Posts: 56,229
|
Google wont like that
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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>
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Jul 2004
Location: Online
Posts: 2,661
|
Quote:
![]() Thank you again!
__________________
The Very Best Teen Content! Make $$$$ - Join DIESEL ACTION for Great Teen content |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,405
|
interesting stuff
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
|
Quote:
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>
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
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).
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
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>
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |