Closed Thread Icon

Topic awaiting preservation: Cell-Fu! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8208" title="Pages that link to Topic awaiting preservation: Cell-Fu! (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Cell-Fu! <span class="small">(Page 1 of 1)</span>\

 
Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-07-2002 19:57

How to you position a layer to the upper-left corner of a table cell?

...or...

How can you dynamically write text to a table cell?


Harmonizing new illusions...
ICQ: 67751342

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-07-2002 20:11

hmm.
First the layer question. I think <div style="position: relative; top:0; left:0;"> should work but that won't override the table's cellpadding.

Text in the table cell is easiest if you put a layer (even an empty one) in it and write to that as covered here



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-07-2002 20:48

see, what I have is:

a table with one column (full width) and two rows, one on top of the other. The top row has a color background (for now) and 4 links on the lower-right hand corner. The lower row has a background set to look like a dropshadow from the top row.

what I want to do is:

make it so that when you mouse over the links on the top row, sublinks show up on the bottom row. I want the sublinks to change dynamically depending on the link that's moused over.

what I was going to do was either place each set of sublinks on it's own layer and show/hide the layers onmouseover or dynamically change the content in the cell onmouseover.

any other brilliant strategies?


Harmonizing new illusions...
ICQ: 67751342

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 06-08-2002 03:35

Um...

nope those seem good
I'd vote for the first (layers option) I have no proof on this but it seems less CPU intensive.

Does anyone know how bad it is, writing to a layer vs. turning the visibility on or off? I always try to avoid writing to layers where I can it always seems clunky.



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-08-2002 06:16

this started looking promising, but then it broke...

HTML:
<A HREF="dhtml.html" ONMOUSEOVER="chSMenu(dgfhbjhbkj);">DHTML</A>

JS:
function chSMenu(content){
document.getElementById("nolinks").innerHTML = content;
}

see, it tells me that "dgfhbjhbkj is not an object" (notice there are no quotes around 'dgfhbjhbkj')... how do I go about fixing that?


Harmonizing new illusions...
ICQ: 67751342

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-08-2002 07:04

You add quotes around it, of course.

Single quotes, since it's already inside double quotes for the HTML.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-08-2002 08:43

um....*looks around* I knew that... I knew that...

ok, this works just fine as:
ONMOUSEOVER="chSMenu('link to this, link to that-- ya know CSS stuff');"

but when I try to add a link to it, it fucks up:

ONMOUSEOVER="chSMenu('<A HREF=\"blabloo\">link to this, link to that</A>-- ya know CSS stuff');

...and I've tried escaping all the character I could think of... but I've probably missed the most important ones...

Which is the correct combo?



Harmonizing new illusions...
ICQ: 67751342

[This message has been edited by Petskull (edited 06-08-2002).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-08-2002 08:56

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 06-08-2002 09:07

How about saving the string with the link in a variable

<head>
<script type="text/javascript">
<!--
var link1 = '<A HREF="blabloo">link to this, link to that</A>-- ya know CSS stuff';
// -->
</script>
</head>

and calling the function like that

ONMOUSEOVER="chSMenu(link1);

kuckus (cell #282)

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-08-2002 13:52

nah, ini... this is almost perfect, except for the error
*tempted to use a slimey*


Harmonizing new illusions...
ICQ: 67751342

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-08-2002 14:04

*Jaw drops*
kuckus, I am sorry to have doubted you...

when I initially looked at your code, it didn't seem to work, but I done typed that in there for lack of a better option and it works like a charm...

kuckus, you just got some serious props for this.


Harmonizing new illusions...
ICQ: 67751342

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 06-08-2002 19:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-09-2002 13:10

I think I was escaping the wrong characters...


Harmonizing new illusions...
ICQ: 67751342

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 06-11-2002 03:37

I just skimmed this thread and I'm late but I remembered someone a while back asked about similar stuff. I did this example page at the time just to explore possibilities: http://www.bugimus.com/gurus/showhide_in_table.html

me~
Bipolar (III) Inmate

From: Detroit, MI
Insane since: Jun 2002

posted posted 06-22-2002 06:57

bugimus, is ok for me to use part of the code from http://www.bugimus.com/gurus/showhide_in_table.html , and would you like it to be quoted, and if so how would you like it to be quoted?

« BackwardsOnwards »

Show Forum Drop Down Menu