View Single Post
Old 09-01-2013, 10:42 AM  
porndotnet
Confirmed User
 
porndotnet's Avatar
 
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.
porndotnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote