473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help for code covering ads

\
Hi...I found your group on the search engine...First you have to know
that I'm on a webtv unit.....I am really
desperate.. I'm not much on tech terms as most of my pages are found and
reworked codes to do what I need....my problem is I am moving my pages
from an ad free account to one that has ads as the add free account T/L2
is closing down this year and I have to move my codes to 250free account
til I can afford an upgade
ANWAY.....I use the <div style code to place my images and bg just
where I want them.....but they now cover the top and bottom ads which is
a no no
My question is....is there a code or something I can do to keep my page
below the top and and keep the bottom ad under my page....without
changing all the numbers....I tried changing numbers and really screwed
somethings up....luckly it was ccp on a testbed....I would really
appreciate any and all suggestions
Sorry about the long details....here 's one of my troubled pages.....some
puters say it's ok on there puter but on the webtv all the ads are
covered and down into the middle of the page

http://kathypolo.250free.com/FUN-WITH-MUSIC.html

Thank you JUDY

Jul 21 '05 #1
2 1961
(*_*) wrote:
My question is....is there a code or something I can do to keep my page
below the top and and keep the bottom ad under my page.

Thank you JUDY


JUDY, [Long post warning]

Yes.

Your basic problem is that you have absolutely positioned every element
of your page, i.e. you have tied it to a specific pixel distance from
the top and left edge of the page. This prevents the normal
everybody-gets-in-line flow of HTML elements, where no two elements
would occupy the same physical space. Your absolutely-positioned
elements are "taken out of the normal flow" and positioned, just as you
requested, absolutely. Unfortunately, this does not prevent the normal
flow from occupying the same physical space, so the advertising provided
by your ISP starts, as always, at the top of the page, running under
your stuff. Again, because the absolutely-positioned elements don't
RESERVE space, the trailing ads ignore your stuff as well, and follow
directly upon the leading ads.

Step 1 - Get rid of most of the positioning: statements. Change the
very first one to say "position: relative;" and remove the top: and
left: parameters (that's not intuitive, so I'll explain later). LEAVE
those for the 6 dancers and the piano player alone. DELETE ALL OTHER
'style="positio n: absolute; top: xxx; left: xxx;"' statements. This
will allow most of your elements to remain in the normal flow.

Step 2 - Your page starts with a <center> tag. Leave it there. Later
on you start another <center> ahead of 'CHANGE MUSIC'. That's
redundant, so take it out, along with the </center> tag just beyond it.
That </center> tag is terminating the FIRST <center>, which means the
rest of your elements won't be centered, and I think you want them to
be. Now put a </center> tag just ahead of the <embed>, to close out
centering.

Step 3 - You want your last three elements (Home, Back, and Next) to be
on the same line, so delete the <div> tags around each of them and the
two <br> tags after Home. If the resulting images are not in the order,
left-to-right, that you wanted, then just change their order within the
source file.

Step 4 - You want the ORDER of those same three elements to be reversed
from the order in which they appear in the source file, so move the code
around so they are in the order Next, Back, Home.

This should give you pretty much what you want.

Something to note here. You just made ONE change to the code and
shuffled the order of a couple of sections. Everything else is deletion
of stuff that is getting in your way. That's what happens when you copy
stuff without understanding how it works. If you copy too little, it
won't work and you'll try again, but if you copy too much, there's often
no visible indication... until later when you make a minor change and
everything comes unglued. I made the changes specified above, then
deleted all the residual garbage from the body of your page and here is
all that was left. Compare it to what you have and you'll see what can
be removed.
............... ............... ...............
<body>

<center>

<noframes><fo nt size=7 color=dodgerblu e><blackface><l imittext
value="WebTV Bug! Please Reload."></blackface></font></noframes>

<div style="position : relative; width: 570px; height: 520px;
background-image: url(http://kathypolo.250fr ee.com/odds/hall.jpg);">

<div style="position : absolute; top: 20px; left: 229px;"><img
src="FUN-WITH-MUSIC_files/chan1.gif" height="150"></div>

<div style="position : absolute; top: 290px; left: 50px;"><img
src="FUN-WITH-MUSIC_files/fmdancer.gif" height="86"></div>

<div style="position : absolute; top: 260px; left: 170px;"><img
src="FUN-WITH-MUSIC_files/swdanc.gif" height="75"></div>

<div style="position : absolute; top: 245px; left: 280px;"><img
src="FUN-WITH-MUSIC_files/cirdanc.gif"></div>

<div style="position : absolute; top: 320px; left: 410px;"><img
src="FUN-WITH-MUSIC_files/P-dancers.gif" height="117"></div>

<div style="position : absolute; top: 330px; left: 100px;"><img
src="FUN-WITH-MUSIC_files/ballroomdanc1.g if"></div>

<div style="position : absolute; top: 335px; left: 225px;"><img
src="FUN-WITH-MUSIC_files/P-piano.gif" height="140"></div>

</div>
<br>

<font size="4" color="gold">CH ANGE MUSIC</font>
<br>

<a href="http://kathypolo.250fr ee.com/odds/P-blues.mid"><img
src="FUN-WITH-MUSIC_files/P-scale.gif" width="100" height="20"></a>
<a href="http://kathypolo.250fr ee.com/odds/P-2step.mid"><img
src="FUN-WITH-MUSIC_files/P-scale.gif" width="100" height="20"></a>
<a href="http://www.wtv-zone.com/pbarikmo/piano/carolina.mid">< img
src="FUN-WITH-MUSIC_files/P-scale.gif" width="100" height="20"></a>

<br>

<font size="5" color="lightyel low">DESIGN BY</font>
<br>

<img src="FUN-WITH-MUSIC_files/pianorose.gif" width="450" height="155">
<br>

<a href="http://kathypolo.250fr ee.com/ISLAND-MON.html"><img
src="FUN-WITH-MUSIC_files/next.gif"></a>
<a href="http://kathypolo.250fr ee.com/TRAINS5.html">< img
src="FUN-WITH-MUSIC_files/back.gif"></a>
<a href="http://kathypolo.250fr ee.com/JUDYS-INDEX.html"><im g
src="FUN-WITH-MUSIC_files/home.gif"></a>
</body>
............... ............... ............... ............... ....

OK, what's all that about position: relative back in Step 1? You want
to position the dancers and piano player absolutely WITHIN THE DANCE
HALL, not within the page. So position: absolute is what you want and
the CSS 2 specification says that 'absolute' is with respect to the
containing block, which is defined by your very first <div>. BUT, that
is true ONLY if the containing block is, itself, 'positioned'.
Specifying it as position: relative causes it to become 'positioned' and
thus provides a reference point for the absolutely-positioned dancers;
omitting any top: or left: parameters means that the dance hall's actual
position does not change, i.e. it is still going to follow all those ads.

Those who wish greater enlightenment can read
http://www.w3.org/TR/REC-CSS2/visuren.html#q29. It was news to me.

Finally, may I suggest you search for another place to host your site?
I believe your current ISP wins the prize for Most Intrusive Ads.

Regards,
Chris Beall

Jul 21 '05 #2
\
Thank you so much for your response anf info...lke I said ....this old
lady doesn't understand about codes to much but am trying.....I have
started doing as you explained and is working out well....only a few
trip ups but over came them....thank you again for your time and talent
you share JUDY

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1933
by: Steven D'Aprano | last post by:
I've been working with the Borg design pattern from here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531 and I'm having problems subclassing it. I'm a newbie, so I've probably missed something obvious. I want two Borg-like classes where all instances share state within each class, but not between them. This is what I...
2
1921
by: m3ckon | last post by:
Hi there, had to rush some sql and am now going back to it due to a slow db performance. I have a db for sales leads and have created 3 views based on the data I need to produce. However one o the views, which has subqueries to the other views is VERY slow and it needs to be speeded up, but am unsure how, can anyone help... below is the...
2
1715
by: Sebastian | last post by:
The following query needs about 2 minutes to complete (finding dupes) on a table of about 10000 addresses. Does anyone have an idea on how to speed this up ? Thanks in advance !!! Sebastian
7
2451
by: Dino Buljubasic | last post by:
Hi, I am using C# 2.0 (VS2005) to build my user control that contains a number of dynamically loaded ListViews. ListViewItems have their ForeColor properties set to either black or blue to distinguish between ListViewItems. As long as no other application window (i.e. word or calculator, or ....) goes over my running form, ForeColor...
23
2232
by: Edward Gregor | last post by:
Hi! I've written this code as a part of my program and I wonder if you would mind looking at the try_subtract_region and tell me if it well written. Thankful for help! struct region { int left, right; int top, bottom; };
5
3601
by: Anns via AccessMonster.com | last post by:
My establishment has about 20 ms access db's that will be converted over (see subject). When we pull all the BE's over to SQL and the FE's on Sharepoint (.net) surely we don't have to change every user face, we should be able to use the same FE in as before as now on Sharepoint? ANSWER:
6
1901
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to allow the user to type in a value. Also, I would like the 2nd option only editable if the button for that option is selected. All I can seem to...
1
1921
by: Harshaw | last post by:
I am an estimator for an industrial and commercial insulation contractor. I have compiled an enormous amount of data over the years but I am still figuring all of my estimates by hand. For instance, I might need to figure that a 3” pipe will be insulated with 2” thick fiberglass pipe covering. This pipe is outside, so it will need to be jacketed...
2
3429
by: Arnold | last post by:
Hi Gurus, I am getting the error 3420 "object invalid or no longer set" at in the line -- rst.FindFirst "=" & NextPK --in the code below. I simply have a continuous main form that is, by default, based on qryClients, which only shows active or current clients. Users can click a button that switches the record source to qryClientInactive,...
3
2798
by: turgon | last post by:
At the moment I making an ajax based file manager system. Im approched by a tricky problem. As in windows explorer etc I want users to be able to select any free space, click down, and drag a semi-transparent box around that will automaticly select any file/folder elements it covers over. In a more general sense, take this tutorial page with...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8347
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.