PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
paranor
Worker
Worker


Joined: Aug 28, 2003
Posts: 227

PostPosted: Mon Mar 29, 2004 7:30 pm Reply with quote Back to top

I'm trying to use some java programs different then I've done it before (and that was within a block using one java app).

I need this stuff in the <head> area
Quote:

<script language="javascript" src="dropdown_menu/sniffer.js"></script>
<script language="javascript1.2" src="dropdown_menu/custom.js"></script>
<script language="javascript1.2" src="dropdown_menu/style.js"></script>


I would assume it goes in the my_header.php file since that is called within the <head> area. But I'm not having any luck with what syntax to put.

Then I need to add this in the <body> section - but again what syntax do I use?

Quote:

<script language="javascript1.2" src="dropdown_menu/menu.js"></script>


Since this isn't in a stand-alone block I'm not sure what to type in.

thanks
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Mon Mar 29, 2004 8:37 pm Reply with quote Back to top

There are several ways to accomplish this. You could add the 3 statements after the closing ?> tag. You could write echo statements. I always recommend the HEREDOC sysntax. That's exactly why the PHP authors created it. It allows you to add raw html, css, javascript, java, etc. to your PHP scripts w/o having to worry about escaping quotes and such.
Code:
echo <<< _JS_
<script language="javascript" src="dropdown_menu/sniffer.js"></script>
<script language="javascript1.2" src="dropdown_menu/custom.js"></script>
<script language="javascript1.2" src="dropdown_menu/style.js"></script>
_JS_;
Here is more info on this technique
Only registered users can see links on this board!
Get registered or login to the forums!
. As to the other script, try adding it as a 4th line in your example and see if it might work ok there.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum