Help on programming...

R

Robert Baer

Guest
See http://www.oil4lessllc.org/HELP/

This folder has an almost-working HELP.htm that i would like to have
fixed.

The folder also has working files gPAD.htm and gUS.htm.
The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Please help.
Thanks, R. Baer
 
On Sunday, August 2, 2020 at 1:43:51 AM UTC-4, Robert Baer wrote:
See http://www.oil4lessllc.org/HELP/

This folder has an almost-working HELP.htm that i would like to have
fixed.

The folder also has working files gPAD.htm and gUS.htm.
The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

It took a little hunting to find the spots you are talking about. Remember, this is old hat to you, but we are looking at it for the first time. After I played \"Where\'s Waldo\" with the Ired.gif image, I realized what you are talking about. The HTML looks ok to me, but then I\'m no HTML guru.

I do see you are specifying height:59px; width: 837px which you don\'t do for the one that works. What is that for? Try taking it out.

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
 
Robert Baer wrote:
See http://www.oil4lessllc.org/HELP/

This folder has an almost-working HELP.htm that i would like to have
fixed.

The folder also has working files gPAD.htm and gUS.htm.
The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Please help.
Thanks, R. Baer

Start by looking at HELP.htm in View:Source and note that the
red \"I\" works and the red \"US\" does not work. The Div for the
\"I\" then, is a template for what the Div for the \"US\" should
look like.

I don\'t know what you\'re intending with that map, as it\'s a bit
messed up. The text for the index is likely intended to be lower
on the screen. If the \"Map\" function only works for a defined X-Y
space, you may need to use your image editor and add some white
area at the bottom of the image file, such that you can
reposition the overlay \"letters\" bar on top of it and a
safe distance from the map image content. Then, one map function
in the code, can select any items on the page.

I have a strange feeling you have the skills to make this
work yourself. As long as there are no new concepts introduced
along the way, just rearrange the goods as they currently stand.
You\'ve worked on harder code than this already...

Paul
 
On 02/08/2020 06:43, Robert Baer wrote:
   See http://www.oil4lessllc.org/HELP/

  This folder has an almost-working HELP.htm that i would like to have
fixed.

  The folder also has working files gPAD.htm and gUS.htm.
  The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

  I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Compare the working one with the non working one to fix it.

How are you editing the HTML? You might be better off using tools that
will let you see the rendered version and HTML source simultaneously. eg

BlueGriffon is freeware. (other brands are available)


--
Regards,
Martin Brown
 
On Sat, 1 Aug 2020 22:43:34 -0700, Robert Baer wrote:
See http://www.oil4lessllc.org/HELP/

This folder has an almost-working HELP.htm that i would like to have
fixed.

The folder also has working files gPAD.htm and gUS.htm.
The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Please help.
Thanks, R. Baer

Seems like you lost track of which image tag is supposed to present what
picture. And because of that, you have an image element which has the same
position. The ID attribute is especially useful to identify which is which,
or for what purpose.

Backup your `help.htm` file, then replace the contents of the `<body>` tag
with below code (long text warning).

<div>
<img src=\"Usa52.gif\" alt=\"USA map\" id=\"USmap\" usemap=\"#USMap\"
style=\"position: absolute; top: 12px; left: 9px; height: 431px; width: 760px; border-style:none\" />
</div>

<div style=\"position: absolute; top: 320px; left: 100px; \" >
<a href=\"subject-index.html?find=0-9:\">
<img src=\"Chars0-Z.gif\" alt=\"char map\" id=\"charmap\" usemap=\"#charmap\"
style=\"height:59px; width: 837px; border-style:none\" />
</a>
</div>


<div style=\"position: absolute; top: 178px; left: 623px; \">
<a href=\"gPADI.htm\">
<img style=\"border: 0\" ALT=\"\" id=\"pad1\" src=\'Ired.gif\' >
</a>
</div>

<div style=\"position: absolute; top: 67px; left: 268px; \" >
<a href=\"gUS.htm\">
<img style=\"border: 0\" ALT=\"\" id=\"USlabel\" src=\"USred.gif\">
</a>
</div>
 
Martin Brown wrote:
On 02/08/2020 06:43, Robert Baer wrote:
    See http://www.oil4lessllc.org/HELP/

   This folder has an almost-working HELP.htm that i would like to
have fixed.

   The folder also has working files gPAD.htm and gUS.htm.
   The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

   I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Compare the working one with the non working one to fix it.

How are you editing the HTML? You might be better off using tools that
will let you see the rendered version and HTML source simultaneously. eg

BlueGriffon is freeware. (other brands are available)
Thanks!
BlueGriffon.org has screwed us; 64 bit ONLY.
ONLY gamers and math mavens have use for even 32-bits; i should know
- i wrote a multi-million digit math package that would run on 16-bit
OSes, and pushed to 32-bit then 64-bit environments only when needed.
Learned that \"memory leaks\" are impossible with half-way decent
programming, as well as \"buffer overflows\" being impossible with
half-way decent programming.

Got a much older version via CNET; will try it when i get around to it.

Thanks.
 
JJ wrote:
On Sat, 1 Aug 2020 22:43:34 -0700, Robert Baer wrote:
See http://www.oil4lessllc.org/HELP/

This folder has an almost-working HELP.htm that i would like to have
fixed.

The folder also has working files gPAD.htm and gUS.htm.
The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

Please help.
Thanks, R. Baer

Seems like you lost track of which image tag is supposed to present what
picture. And because of that, you have an image element which has the same
position. The ID attribute is especially useful to identify which is which,
or for what purpose.

Backup your `help.htm` file, then replace the contents of the `<body>` tag
with below code (long text warning).

div
img src=\"Usa52.gif\" alt=\"USA map\" id=\"USmap\" usemap=\"#USMap\"
style=\"position: absolute; top: 12px; left: 9px; height: 431px; width: 760px; border-style:none\" /
/div

div style=\"position: absolute; top: 320px; left: 100px; \"
a href=\"subject-index.html?find=0-9:\"
img src=\"Chars0-Z.gif\" alt=\"char map\" id=\"charmap\" usemap=\"#charmap\"
style=\"height:59px; width: 837px; border-style:none\" /
/a
/div


div style=\"position: absolute; top: 178px; left: 623px; \"
a href=\"gPADI.htm\"
img style=\"border: 0\" ALT=\"\" id=\"pad1\" src=\'Ired.gif\'
/a
/div

div style=\"position: absolute; top: 67px; left: 268px; \"
a href=\"gUS.htm\"
img style=\"border: 0\" ALT=\"\" id=\"USlabel\" src=\"USred.gif\"
/a
/div
Thanks; looks i had some things scrambled, then compounded matters by
code messing.
 
Paul wrote:
Robert Baer wrote:
   See http://www.oil4lessllc.org/HELP/

  This folder has an almost-working HELP.htm that i would like to have
fixed.

  The folder also has working files gPAD.htm and gUS.htm.
  The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

  I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

  Please help.
  Thanks, R. Baer

Start by looking at HELP.htm in View:Source and note that the
red \"I\" works and the red \"US\" does not work. The Div for the
\"I\" then, is a template for what the Div for the \"US\" should
look like.

I don\'t know what you\'re intending with that map, as it\'s a bit
messed up. The text for the index is likely intended to be lower
on the screen. If the \"Map\" function only works for a defined X-Y
space, you may need to use your image editor and add some white
area at the bottom of the image file, such that you can
reposition the overlay \"letters\" bar on top of it and a
safe distance from the map image content. Then, one map function
in the code, can select any items on the page.

I have a strange feeling you have the skills to make this
work yourself. As long as there are no new concepts introduced
along the way, just rearrange the goods as they currently stand.
You\'ve worked on harder code than this already...

   Paul
Thanks.
 
Robert Baer wrote:
Paul wrote:
Robert Baer wrote:
   See http://www.oil4lessllc.org/HELP/

  This folder has an almost-working HELP.htm that i would like to
have fixed.

  The folder also has working files gPAD.htm and gUS.htm.
  The file subject-index.htm does work in the proper environment;
it is only included to make HELP.htm complete and working to that point.

  I would like USred.gif to show in the obvious place (between the quote
marks), and thus allow one to click on the red \"US\" and \"go to\"
subject-index.html; just like clicking on the red \"I\" that \"goes to\"
gPADI.htm.

  Please help.
  Thanks, R. Baer

Start by looking at HELP.htm in View:Source and note that the
red \"I\" works and the red \"US\" does not work. The Div for the
\"I\" then, is a template for what the Div for the \"US\" should
look like.

I don\'t know what you\'re intending with that map, as it\'s a bit
messed up. The text for the index is likely intended to be lower
on the screen. If the \"Map\" function only works for a defined X-Y
space, you may need to use your image editor and add some white
area at the bottom of the image file, such that you can
reposition the overlay \"letters\" bar on top of it and a
safe distance from the map image content. Then, one map function
in the code, can select any items on the page.

I have a strange feeling you have the skills to make this
work yourself. As long as there are no new concepts introduced
along the way, just rearrange the goods as they currently stand.
You\'ve worked on harder code than this already...

    Paul
  Thanks.
Discovered that image map will not help because of the fundamental
problem with the FIND; a href=<blahbla> for FIND in same page does not
cut it if one wants this business to \"work\" over a range of browsers,
most especially the Insipid Exasperators.

Found the best way for in-page \"jumps\" is to use NAV which i new
nothing about - not even its existence.

Thanks.
 
Robert Baer <robertbaer@localnet.com> wrote:

<snip>

Discovered that image map will not help because of the fundamental
problem with the FIND; a href=<blahbla> for FIND in same page does not
cut it if one wants this business to \"work\" over a range of browsers,
most especially the Insipid Exasperators.

Found the best way for in-page \"jumps\" is to use NAV which i new
nothing about - not even its existence.

Using a named anchor works best for me for most browsers. For example:

https://crcomp.net/mixeramp/index.php#CircuitDesign

Note: It\'s best to not use white space in an anchor name in order to
accommodate the Insipid Exasperators class of browsers.

------------------------------------------------------------------------

Here\'s the jump link syntax for your page:

<a href=\"SubjIndx.html?#Asection\">A</a>

Its anchor:

<p><a name=\"Asection\"></a></p>
<h2><B>A:</B></h2>


More info:

http://www.tagindex.net/html/link/a_name.html

------------------------------------------------------------------------

Apparently a Bookmark performs a similar function. But it\'s unused and
untested by me thus far.

The jump link is identical to the anchor method:

<a href=\"SubjIndx.html?#Asection\">A</a>

Its anchor is simpler:

<h2 id=\"Asection\"><B>A:</B></h2>


More info:

https://www.w3schools.com/html/html_links_bookmarks.asp



Danke,

--
Don Kuenz KB7RPU
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.
 
Don Kuenz KB7RPU wrote:
Robert Baer <robertbaer@localnet.com> wrote:

snip

Discovered that image map will not help because of the fundamental
problem with the FIND; a href=<blahbla> for FIND in same page does not
cut it if one wants this business to \"work\" over a range of browsers,
most especially the Insipid Exasperators.

Found the best way for in-page \"jumps\" is to use NAV which i new
nothing about - not even its existence.

Using a named anchor works best for me for most browsers. For example:

https://crcomp.net/mixeramp/index.php#CircuitDesign
* Not the same; i needed jumps inside the same page and some browsers
did not cooperate; the NAV worked.

Note: It\'s best to not use white space in an anchor name in order to
accommodate the Insipid Exasperators class of browsers.

------------------------------------------------------------------------

Here\'s the jump link syntax for your page:

a href=\"SubjIndx.html?#Asection\">A</a

Its anchor:

p><a name=\"Asection\"></a></p
h2><B>A:</B></h2
* Looks very similar to the NAV thinggie i wound up using.

More info:

http://www.tagindex.net/html/link/a_name.html

------------------------------------------------------------------------

Apparently a Bookmark performs a similar function. But it\'s unused and
untested by me thus far.

The jump link is identical to the anchor method:

a href=\"SubjIndx.html?#Asection\">A</a

Its anchor is simpler:

h2 id=\"Asection\"><B>A:</B></h2


More info:

https://www.w3schools.com/html/html_links_bookmarks.asp



Danke,
Thanks,
 
Robert Baer <robertbaer@localnet.com> wrote:
Don Kuenz KB7RPU wrote:
Robert Baer <robertbaer@localnet.com> wrote:

snip

Discovered that image map will not help because of the fundamental
problem with the FIND; a href=<blahbla> for FIND in same page does not
cut it if one wants this business to \"work\" over a range of browsers,
most especially the Insipid Exasperators.

Found the best way for in-page \"jumps\" is to use NAV which i new
nothing about - not even its existence.

Using a named anchor works best for me for most browsers. For example:

https://crcomp.net/mixeramp/index.php#CircuitDesign
* Not the same; i needed jumps inside the same page and some browsers
did not cooperate; the NAV worked.

Within a given webpage either

<a href=\"SubjIndx.html?#Asection\">A</a>

or

<a href=\"#Asection\">A</a>

works for me in most browsers so far. Regardless, you have more Insipid
Exasperators experience than me. In the end, if NAV works then problem
solved.

Danke,

--
Don Kuenz KB7RPU
There was a young lady named Bright Whose speed was far faster than light;
She set out one day In a relative way And returned on the previous night.
 

Welcome to EDABoard.com

Sponsor

Back
Top