Preserved Topic: dynamically writing to layers |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 05-12-2002 05:56
hi, still new to dhtml. was wondering if it's possible to dynamically write content to a layer. i know you can do that to the body text with the document.write() function. how can i do that for a predefined layer? or should i just make multiple layers with the text already written and just toggle the visibility? |
Nervous Wreck (II) Inmate From: |
posted 05-12-2002 06:23
i think i found something. do i use innerHTML somehow? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-12-2002 06:53
In IE and DOM compliant browsers it's layername.innerHTML = "your text/HTML here"; |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-12-2002 12:51
In Internet Explorer 4+: |
Nervous Wreck (II) Inmate From: |
posted 05-17-2002 08:10
hey thanks a lot. this loads way faster than rollover images. yay dhtml |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 05-20-2002 16:18
How do you change the background image for a layer in the various browsers? |
Maniac (V) Inmate From: there...no..there..... |
posted 05-20-2002 16:52
hyperbole: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-20-2002 17:44
I'm sure cprompt answered your question, but to answer it more directly: |
Nervous Wreck (II) Inmate From: |
posted 05-31-2002 09:42
thanks for all the help. i got everything working fine in IE and i just got a chance to run it in netscape 4.7. of course, i ran into some odd problems. i used mr. max's procedure for handling netscape. the text is dynamically changing (a good sign), but the text is not being confined to the boundaries of my <div>. In IE, it automatically textwraps at the edge of the layer and in netscape, just runs on. i'm thinking it is a css problem, but i'm not sure where. in case you're wondering, i'm using this to change the text in a thought bubble over a picture. the text just runs off the background bubble in netscape. perhaps i should just be thankful something is working in N4...or should i just give up on netscape 4 altogether? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-31-2002 20:12 |