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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layers aaarrrggghhh

Status
Not open for further replies.

Manic

Programmer
Feb 28, 2001
343
GB
I have a dropdown menu in a layer in dw4

Unfortunatly I have created the page at 1152 x 864.

whan I shrink the page to 800 x 600 the layer moves.

I have the netscape resize fix on and I have played with all of the settings but no joy.

please help

Manic
-----------------------------
I've broken it again !!
-----------------------------
 
the problem is that you need to move the layer anchor tag to the place where the drop-down box is...in other words try to copy and paste the anchor tag [it's a sqaurish-gold/yellow box] and put it near the layer itself ok??
any other questions, just ask...

PS -- VERRY IMPORTANT!! just as a precaution, re-save the existing file as a diff. name and try the copy/paste method on the back-up copy ok?? This way if you made a mistake [or i made a mistake expalining it] you don't screw up the webpage, ok??
 
you can try something like this
Code:
function moveLayers() {
    var screen_width = screen.width
    var leeft
    if (screen_width=='800') {leeft = "166"}    
    if (screen_width=='1024') {leeft = "278"}
    if (screen_width=='640') {leeft = "86"}
    var navv = navigator.appName 
	if (navv == "Netscape") {
		document.layers['aboutus'].left = leeft;
		document.layers['stud'].left = leeft;
	} else {
		document.all['aboutus'].style.pixelLeft = leeft;
		document.all['stud'].style.pixelLeft = leeft;
	}
}

Hope this helps

Regards Unicorn11
unicorn11@mailcity.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Thanks guys

I have finaly got back to that site and sorted it out.

thanks for your help.


Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
You cannot use drop-downs with layers. Mine were always covered up. So I have gone to using nav buttons. There is a web site OpenCube.com that has drop-downs that do not interfere with layers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top