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

any reason why dhtml shouldn't work in templates?

Status
Not open for further replies.

j111111

Technical User
Dec 13, 2002
46
GB
I've got some DHTML code inserted right after the <body> tag in dreamweaver. This links to external files to create a drop down menu.
It works fine on a normal document but when I've put it into my template & updated all the files off it, none of them show the menu.
I've even copied & pasted the code from the document where it does work to replace the old template code but it still won't work (but still does in the single doc)
I've also tried not using the code in the template & putting it into each individual page, but DW highlights this in pale yellow as though it's part of the template code & still nothing works.
And I've taken out any other DHTML I was using as I thought it might be confusing itself, so my pages are down to the bare minimum of tables, cells & inserted images - nothing that can be getting in the way of this code
Any ideas....?
 
I also use dreamweaver and templates for
the menus must be inserted in the right place, put the scripts in various places and mess about, i.e outside the table, above until it sits right.

hth
 
the positioning of the menu is in the external file - you give it an x and a y co-ordinate. The cell which is a space for the menu to fit in has a <div> tag saying <div id='MenuPos' style='position:relative; width:150; height:350> which is supposed to link it to some positioning details in the external file

and like I mentioned, I created a new file that's not linked to the template, with all the same code in it and the menu works fine from this file, in the correct place,doing exactly what it should.

the link to the external file has to be straight after the <body> tag so I can't really play around with that either...

I'm pretty sure it's someting to do with the template but I've removed all other DHTML I had i there so it's down to the basics of tables, cells, and inserted images - nothing that can interfere with the menu code.

For some reason, Dreamweaver won't let me detach files from my template.

I don't really know what to try next..

I like the website by the way notbad
 
ok, for some strange reason my PC has kept performing illegal operations this morning

I've not touched anything in this dreamweaver folder, but after the third reboot, as if by magic, It's working!?

strange...

thanks for your suggestions anyway notbad - i was waiting for my computer to behave a bit before I attempted what you said, but it's done more than behave!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top