Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can <DIV ID="XYZ"></DIV> be created in JavaScript - 2

Status
Not open for further replies.

Dragonfish

Programmer
Apr 25, 2001
62
UG
Thanks to everyone who helped on the original thread. One last problem !!! Ace Scripter gave this answer for ns4x:-

ace Scripter (Visitor) Dec 26, 2001
about ns4x:
div - nope, layer - yup

var theOne=new Layer(width,parent)
//width - a number
//parent - none or window or ref to another layer

So far so good but I´m creating this layer using/referencing a Style that I Defined in the head area, #ParentOne {blah blah} and then tried:
var ParentOneDiv=new Layer(id="ParentOne");
which of course did´nt work. A small step for all you talented guys and girls out there - a giant headache for a newbie like me. I wish Netscape would take the trouble to write usable documentation. Thanks

DavidinGermany
 
hi

netscarp4x won't let you to pre-define layer's behave..

first you create it (note: you can't specify an ID, only width & parent object (either layer or window))
then you move this layer wherever (layerobj.moveTo(X,Y))
then you resize it to whatever size you want (layerobj.resizeTo(X,Y)) but afai(remember) i had a problems with resizing, so, i clipped it to needed sizes:
layerobj.clip.width=100
layerobj.clip.height=100


you're able to change fore/back/ground color for that layer, link color, and (almost) whatever :) Victor
 
Just got round to reading. Thanks for the reply Victor!!!

DavidinGermany
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top