Solved

Newbie  PHP and Layers

Posted on 2002-05-11
1
179 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now