Home »
General »
PHP discussions »
Adding javascript code to a php doc (Adding javascript code to a php doc)
Adding javascript code to a php doc [message #167178] |
Tue, 08 May 2012 11:18 |
sorcerer2066
Messages: 1 Registered: May 2012 Location: United Kingdom
Karma: 0
|
Junior Member |
|
|
Hi
I am NOT a coder unfortunately so please bear with me
I have a php script designed for me that is a form. It works fine but I would like to include a javascript based accordion next to this form that will include instructions but I have no idea how to go about doing this and would sooo value a couple of pointers!
I have added the css files no problem [well ish! ] but have no idea how to add the .js
<?php
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"create.css\" />";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"SpryAccordion.css\" />";
?>
But how on earth do I tell it where to find the .js code? In an html doc is is as simple as this:
<script src="SpryAccordion.js" type="text/javascript"></script>
I have tried a number of possibilities but they are simply guessing and hoping that something somewhere along the lines work. I haven't been lucky yet Can anyone help?
Thanks so much
Jen
|
|
|
Goto Forum:
Current Time: Thu Nov 21 10:23:23 GMT 2024
Total time taken to generate the page: 0.02596 seconds