Welcome to WebmasterWorld Guest from 54.211.101.8

Forum Moderators: coopster & jatar k

Adding Java Script to a php page?

help needed

   
7:00 pm on Nov 1, 2002 (gmt 0)

10+ Year Member



I would like to add a java script to my php program...and i want to know how...

Do i have to add it to each php directory....or just the main script......?

any help would be nice thanks

Par5golf

7:03 pm on Nov 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I don't understand exactly what you mean.

You need to add it to each page that you need it on. Either on page or as an external js file.

7:29 pm on Nov 1, 2002 (gmt 0)

10+ Year Member



Lets see....

It is a java script to keep the back ground in the same spot and allow only the text and images scroll....here is the page where i use it but i want to add it to a php program script

<snip>
thanks
Par5golf
Eric

[edited by: jatar_k at 7:33 pm (utc) on Nov. 1, 2002]
[edit reason] sorry no urls [/edit]

7:34 pm on Nov 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



when you say main script is it an included file or template that drives every page?
7:43 pm on Nov 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You can add js or html wherever you need to.

All you need to do is drop out of php and then put the other code there.

<?
php stuff
?>

output html, js, css

<?
do more php stuff
?>

that help?

7:54 pm on Nov 1, 2002 (gmt 0)

10+ Year Member



yes thanks alot been working on this for days....whewwwwwwww

ok now about tweeking my program can that be done to....im not a programmer by any means but i can copy and paste like a mutha...lol

Eric

8:01 pm on Nov 1, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



>>ok now about tweeking my program can that be done to

umm, sorry, I didn't get that, were you asking another question?

9:35 am on Nov 2, 2002 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



continued discussion moved here

[webmasterworld.com...]

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month