Another question for Xotor or Roshambo

  • Thread starter Thread starter Smackrazor
  • Start date Start date
S

Smackrazor

Guest
I've had a look several times at cross browser incompatibility problems but never once has the problem of positioning shown up.

Now, I want to know why Nutscrape cannot understand this style:

#menu {position:absolute;left:90px;top:150px;z-index:1;}

At first I thought it was because Nutscrape didn't understamd ID tags, but it must do since it runs javascripts just fine.

Who knows the answer?

[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
>And they were bashing me for
>one simple question about HTML...

That used to happen to me.

>Is it a hypocracy or
>what?

*lol*.

[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
>Now, I want to know why
>Nutscrape cannot understand this style:

Nutrape? I don't like that browser much, too clunky and slow.

>#menu {position : absolute;left:90px;top:150px;z-index:1;}

Well it works perfectly fine if you omit the "px" from the left and top tags. If you want to see an excellent menu script, use the one found on Interplay's website. That's the one I used to learn about layers and such.

-Xotor-

>At first I thought it was
>because Nutscrape didn't understamd ID
>tags, but it must do
>since it runs javascripts just
>fine.
>
>Who knows the answer?

You *are* using version 4.0+ right?

-Xotor-

[div align=center]

http://www.poseidonet.f2s.com/files/nostupid.gif
[/div]
 
>And they were bashing me for
>one simple question about HTML...
>Is it a hypocracy or
>what?

Whoa, where did the "they" come from? *I* don't remember bashing you, I remember bashing Smackrazor (grin) a while back on the old board, but not you.

-Xotor-

[div align=center]

http://www.poseidonet.f2s.com/files/nostupid.gif
[/div]
 
>>Now, I want to know why
>>Nutscrape cannot understand this style:
>
>Nutrape? I don't like that
>browser much, too clunky and
>slow.

Neither do I. But Nutscrape 6 is cool. Anyway, I need my website to be Nutscrape 4 compliant.

>>#menu {position : absolute;left:90px;top:150px;z-index:1;}
>
>Well it works perfectly fine if
>you omit the "px" from
>the left and top tags.
> If you want to
>see an excellent menu script,
>use the one found on
>Interplay's website. That's the
>one I used to learn
>about layers and such.
>
>-Xotor-

What's the point? There's roughly 5 pages of code to sift through. It works fine for MSIE5.

>>At first I thought it was
>>because Nutscrape didn't understamd ID
>>tags, but it must do
>>since it runs javascripts just
>>fine.
>>
>>Who knows the answer?
>
>You *are* using version 4.0+ right?

I need it to be 4.0 compliant.

>-Xotor-
>
>[div align=center]

>http://www.poseidonet.f2s.com/files/nostupid.gif
>[/div]


[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
>What's the point? There's roughly 5
>pages of code to sift
>through. It works fine for
>MSIE5.

What's the point? Interplay's implementation is probably the best menu system I've seen. Five pages of code is not hard to sift through especially when the code is well written. Your code simply shows and hides layers, Interplay's code makes it easier to update and even automates image rolloevers. While your code requires you to manually change the layer information for each menu, Interplay's code lets you create menu items simply by adding a new MenuLink().

If you make your code overly simple, you're going to have to do more work yourself in the long run.

-Xotor-

[div align=center]

http://www.poseidonet.f2s.com/files/nostupid.gif
[/div]
 
>>What's the point? There's roughly 5
>>pages of code to sift
>>through. It works fine for
>>MSIE5.
>
>What's the point? Interplay's implementation
>is probably the best menu
>system I've seen. Five
>pages of code is not
>hard to sift through especially
>when the code is well
>written. Your code simply
>shows and hides layers, Interplay's
>code makes it easier to
>update and even automates image
>rolloevers. While your code
>requires you to manually change
>the layer information for each
>menu, Interplay's code lets you
>create menu items simply by
>adding a new MenuLink().
>
>If you make your code overly
>simple, you're going to have
>to do more work yourself
>in the long run.

How often am I going to upload that part? Hardly ever. How hard is it to update that part? All I have to do is add a link and text to the clearly labelled DIV tag. I want a simple menu system. I don't need roll-overs. Oh well, looks like I'm going to *have* to rip interplay's code. And leave out the useless stuff :-(.

[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
Take it from a programmer, even if you think you'll never come back to it you should *always* modulize. It makes for cleaner code, you can use it later, and it proves to be less work in the long run. With Interplay's code all I have to do is add new menu items with a:

new MenuLink("Selection Name", "URL");

Instead of manually adding

<td><p class='menuitem'>Selection</p></td>

-Xotor-

>How often am I going to
>upload that part? Hardly ever.
>How hard is it to
>update that part? All I
>have to do is add
>a link and text to
>the clearly labelled DIV tag.
>I want a simple menu
>system. I don't need roll-overs.
>Oh well, looks like I'm
>going to *have* to rip
>interplay's code. And leave out
>the useless stuff :-(.

[div align=center]

http://www.poseidonet.f2s.com/files/nostupid.gif
[/div]
 
>Take it from a programmer, even
>if you think you'll never
>come back to it you
>should *always* modulize. It
>makes for cleaner code, you
>can use it later, and
>it proves to be less
>work in the long run.

Oh alright.

> With Interplay's code all
>I have to do is
>add new menu items with
>a:
>
>new MenuLink("Selection Name", "URL");
>
>Instead of manually adding
>
><td><p class='menuitem'>Selection</p></td>

But I have an onMouseDown function, it doesn't need half the script. I don't need delays or anything like that. Infact, I have arranged my menu with <DIV> tags so its easy:

<div class=menu1>
bla.comLink</a>

<a href...
</div>

Then linking to the menu all I have to do to introduce a new section is update the header:

scriptedLayers=new Array('menu0','menu1','menu2','menu3','menu4')

Then I have to add a simple link:

<tr><td>javascript:showLayer('menu0')<img src=graphics/home.jpg" border="0" width="130"></a></td></tr>




>-Xotor-
>
>>How often am I going to
>>upload that part? Hardly ever.
>>How hard is it to
>>update that part? All I
>>have to do is add
>>a link and text to
>>the clearly labelled DIV tag.
>>I want a simple menu
>>system. I don't need roll-overs.
>>Oh well, looks like I'm
>>going to *have* to rip
>>interplay's code. And leave out
>>the useless stuff :-(.
>
>[div align="center]

>http://www.poseidonet.f2s.com/files/nostupid.gif
>[/div]


[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
>scriptedLayers=new Array('menu0','menu1','menu2','menu3','menu4')
>
>Then I have to add a
>simple link:
>
> <tr><td>javascript:showLayer('menu0')<img src=graphics/home.jpg" border="0" width="130"></a></td></tr>

However with Interplay's code it takes into account that lesser scripts immediately close the menu when the mouse is off of it, it introduces a delay to counteract that in case someone moves their mouse off for a second or two. Plus, it's still a pain to manually change the menu all the time.

-Xotor-

[div align="center]

http://www.poseidonet.f2s.com/files/nostupid.gif
[/div]
 
>However with Interplay's code it takes
>into account that lesser scripts
>immediately close the menu when
>the mouse is off of
>it, it introduces a delay
>to counteract that in case
>someone moves their mouse off
>for a second or two.
> Plus, it's still a
>pain to manually change the
>menu all the time.

The thing is (I'm sure I've mentioned this before), I'm not changing the menu all the time.

But I guess the script is far superior and it works on both Nutscrape and M$IE5


[TABLE border=5' cellspacing='0' cellpadding='15' bgcolor='#000000' bordercolor='#808080' bordercolorlight='#C0C0C0' bordercolordark='#000000][TR][TD]

[/center]
[TABLE border=0' cellspacing='0' cellpadding='0' bgcolor='#000000][TR][TD]
[TD][center][font face=arial, helvetica, ms sans serif" color="red][a href=mailto: [email]sea_man_stains__@hotmail.com[/email]]Smackrazor[/a][/center]
[font face=arial, helvetica, ms sans serif" color="silver]Webmaster: [a href=//www.pipboy2000le.f2s.com]PIPBoy 2000 LE[/a]
Co-webmaster: [a href=//www.diepokemon.f2s.com]NPA[/A][/TD][/TR]
[/TABLE][/TD][/TR][/TABLE]​
 
Back
Top