| Author |
Message |
badjerzeeboy New Member


Joined: Sep 30, 2006 Posts: 13
|
Posted:
Wed Feb 07, 2007 1:28 pm |
|
hi i need to put java scrip on the header but it got idea how to doit i create a manu with photoshop the menu work perfect alone but when i try to insert the java for the preload images the menu dont work how can i do this
java script to be inserted in the header
the full html for the manu i can post it cuz the site sentinel dont let me
|
|
|
|
 |
evaders99 Former Moderator in Good Standing

Joined: Apr 30, 2004 Posts: 3221
|
Posted:
Wed Feb 07, 2007 3:58 pm |
|
You can place your Javascript code in includes/javascript.php |
|
|
|
 |
badjerzeeboy New Member


Joined: Sep 30, 2006 Posts: 13
|
Posted:
Sat Feb 10, 2007 8:10 am |
|
I Just Add The Java Like It Is. oh i have to covert in php am dunno how o do it can you guime |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
|
Posted:
Sat Feb 10, 2007 8:28 am |
|
Just "wrap" each line like this:
echo "<<place your line of code here"; |
|
|
|
 |
badjerzeeboy New Member


Joined: Sep 30, 2006 Posts: 13
|
Posted:
Sat Feb 10, 2007 8:42 am |
|
thanx man am gonna try it i will come back if i succes wit it |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Sat Feb 10, 2007 9:10 am |
|
If you have problems with the mthod Montego described (though you shouldn't) you can try dropping out of php and then going back in again like this.
| Code: | <?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'javascript.php')) {
Header('Location: ../index.php');
die();
}
//drop out of php
?>
your html java script code here
<?php
// now we have restarted php
##################################################
# Include for some common javascripts functions #
##################################################
|
|
|
|
|
 |
badjerzeeboy New Member


Joined: Sep 30, 2006 Posts: 13
|
Posted:
Sat Feb 10, 2007 9:35 am |
|
than you men now the i have this am gonna make my menu better so i can put something nice thanx you so much to take you time to help me |
|
|
|
 |
|
|
|
|