Welcome to WebmasterWorld Guest from 54.225.16.10

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

choosing banner or skyscraper dynamically

is it possible? is it allowed?

     
7:07 am on Jul 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 27, 2001
posts:784
votes: 0


Is it possible to dynamically choose between a banner and skyscraper depending on the user's screen size? You'd need to modify the Javascript a bit, with something like

if WindowWidth() > 1000:
write '<div class="sky">'
<code for skyscraper>
write '</div>
else
write '<div class="banner">'
<code for banner>
write '</div>'
<code to fetch ad>

which may or may not be sufficient change to the JavaScript to violate the ToS.

I don't know enough JavaScript to know if this is even possible, though.

5:28 pm on July 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jeremy_goodrich is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 4, 2000
posts:3468
votes: 0


The TOS there says, "no modifications" if I wanted to change something, as their TOS is rather explicit, I would use their customer service email & get permission before risking not getting paid for a TOS violation. ;)
8:35 pm on July 14, 2003 (gmt 0)

Junior Member from AU 

10+ Year Member Top Contributors Of The Month

joined:June 28, 2003
posts:158
votes: 22


Ah, but...

if (screenwidth > 800) {
document.write "the skyscraper code";
} else {
document.write "the banner code";
}

...won't change any of the code.

Interesting idea - I like it.

8:45 pm on July 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jeremy_goodrich is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 4, 2000
posts:3468
votes: 0


:) Actually, my first thought when I read your post -> was sniff the user agent or such, & then write it server side.

The other way, would have been client side doc.write like you are proposing to stay within their TOS but still do what you want. Nice.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members