![]() |
![]() |
![]() |
||||
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: Aug 2013
Posts: 100
|
Responsive Ad Displays! Does anyone have them? Or know how to program them?
I'm designing a site right now. Most of the traffic is mobile traffic, so I am trying to cater it to being a responsive display so it will adapt to whatever display width the user is coming from. Is there an ad service that has responsive ad displays? I'd like it to be the width of the header on all responsive displays. So it would have to know how the user is viewing. Webpage at 800 width, tablet at a certain width, and mobile at a certain width depending on how they are holding device.
Most programming has catered to the responsive design, but I can't seem to get ads to do this without creating an entirely new mobile version of the site. Any help would be greatly appreciated. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
Are you talking about using 3rd part ad providers like juicyads or whatever? Probably not yet then. If you're using your own ads like banners from affiliate programs than there are simple solutions.
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2008
Posts: 317
|
you could use css media queries to show and hide content based on the viewport width. Probably isn't ideal seeing as you'll still have both the normal ads / mobile specific ads technically on page (unless you did a ajax load of the script) thus making it a bit more on the heavy side. But it would accomplish what you are trying to do.
@media screen and (max-width: 400px) { // or whatever you want to target .mobile-ad { display:block } .desktop-ad { display:none; } } I didn't test this. But in theory should work. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
You gotta tell more how you made it, so we can tell you. I am interested in this, too, cause I plan something with responsive themes in the future. I have themes ready.
|
![]() |
![]() ![]() ![]() ![]() ![]() |