🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7866

Question for Applet Guru's only...

#7866
From: Ken Warner
Date: Wed, 09 May 2001 23:21
52 lines
1990 bytes
Ok,

I have a Java 1.1 AWT based applet.  Part of the applet shows a
banner ad.  It's at the top of the applet.  We give the applet code
freely to people who want to host the applet on their website.

However some cleaver websters write HTML that moves the applet
up and to the left to hide the banner ad.  I put an example below with
some names removed to protect the anonymity of the site.

The problem I have been given is to detect the hiding of the banner ad
and implement a counter measure in the applet.

The problem is that I don't know how to detect that the banner ad has
been hidden.  How do I detect that a portion of the applet has been moved
out of the browser viewport.  See below for an example of what some websters
do.


<head>
<title>FOO</title>

</head>

<BODY topmargin="0" leftmargin="0" bgcolor="#FFFFFF">

<table><tr>
<td width=400 height=300>

<applet code="Foo.class"
name="Foo"
Codebase="http://foo.com/java/"
Archive="Foo.jar"
width="400"
height="300"
style="position:absolute;left:-150;top:-67;">
</applet>

</td>
</tr><tr>
</tr></table>




</BODY>
</HTML>



--
Ken Warner
Technical Details
Message-ID: <3AF9D112.AA4444AD@cts.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a93d229ad4ee8051,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-09 16:42:04 PST
Message-ID: <3AF9D112.AA4444AD@cts.com>
Date: Wed, 09 May 2001 16:21:54 -0700
From: Ken Warner <kwarner@cts.com>
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Question for Applet Guru's only...
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.120.1.60
X-Trace: dnews 989450527 216.120.1.60 (9 May 2001 16:22:07 -0700)
Lines: 54
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews