Welcome to WebmasterWorld Guest from 50.17.74.162

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

choosing banner or skyscraper dynamically

is it possible? is it allowed?

     

danny

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

WebmasterWorld Senior Member 10+ Year Member



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.

jeremy goodrich

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

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



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. ;)

james007

8:35 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



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.

jeremy goodrich

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

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



:) 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.