homepage Welcome to WebmasterWorld Guest from 54.225.57.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Adding Java Script to a php page?
help needed
Par5Golf




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

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

 

jatar_k




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

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.

Par5Golf




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

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]

jatar_k




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

when you say main script is it an included file or template that drives every page?

jatar_k




msg:1290464
 7:43 pm on Nov 1, 2002 (gmt 0)

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?

Par5Golf




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

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

jatar_k




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

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

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

jatar_k




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

continued discussion moved here

[webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved