Solved

Newbie  PHP and Layers

Posted on 2002-05-11
1
187 Views
Last Modified: 2011-10-03
HI Help needed.

I am just trying to use php.
I use Dreamweaver3 and use the  (function MM_showHideLayers) and preload images.

I have made the main template (main.htm)
I also have class.fasttemplate.php and prepend.php

I have leftnav and header html files
my leftnav.html uses reload images
and one of my content.php pages uses  (function MM_showHideLayers)

My Question is will the java work when the page is called
if so on what page do I put the script that normally goes in the head tag of the page
that the layers are on, because  the php files do not have a head tag.( or should they)
Or do all the java scripts that are required that normally reside in the head tag of the
page that they are on,go in the head tag of the main.htm template.
I hope that this is clear.
0
Comment
Question by:eggyone
1 Comment
 
LVL 32

Accepted Solution

by:
Batalf earned 50 total points
ID: 7003124
There's no difference between php-files and other html-files as you know them from netscape.

If your php-files doeesn't contain any <head>-section, you could simply add the <head> section to it.

About javascript-code: The head-section is a good place to put the code, but there's no rule saying that it has to be there. It could also be in the <body>-section. But you should always try to keep the javascript-code as close to the top of the file as possible.

Batalf
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question