Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
jaka
New Member
New Member


Joined: Jan 09, 2005
Posts: 11

PostPosted: Wed Mar 30, 2005 5:38 pm Reply with quote

Hi,
I found many javascipts very useful but I cannot intergrate it into nuke Platinum. The script I installed will only work on the file Header.html alone not the main page view Index.php.
Please show me
Thanks
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Wed Mar 30, 2005 10:28 pm Reply with quote

Then add it to the includes/my_header.php file.
 
View user's profile Send private message
jaka
PostPosted: Wed Mar 30, 2005 11:26 pm Reply with quote

Okay, i have those codes and files to use:

Javascript to put on the HEAD tag
Code:
<LINK HREF="mymenu.css" type="text/css" REL="stylesheet">


<S CRIPT tyle="text/javascript">
var iecheck=document.all&&document.getElementById
if (iecheck){
document.write('<script type="text/javascript" src="mymenu.js"><\/script>')
}
</S CRIPT>

and another to put on the BODY
Code:
<S CRIPT LANGUAGE="javascript">


/*
N-level context menu- By Kari Hollo (kari.hollo@karvanaamat.com)
Modified by JavaScript Kit (http://www.javascriptkit.com) for minor improvements
Visit http://www.javascriptkit.com for this script. Keep this intact.
*/

if (iecheck){
createMenus();
document.oncontextmenu=function(){
showMenu(event);
return false;
}
document.onmouseup=function(){
hideMenu(event);
return false;
}
}

</SCR IPT>


and two files:
mymenu.css
mymenu.js

I've been trying many ways but i could not make it work. Please tell me
Thanks
 
jaka
PostPosted: Thu Mar 31, 2005 6:02 pm Reply with quote

Please, I need instruction
 
Raven
PostPosted: Thu Mar 31, 2005 10:04 pm Reply with quote

Place the javascript code that goes in header in includes/my_header.php. Place the JS that needs to go into the body in your theme.php. Depending on the theme you use, you may need to place it in one of the other theme files.
 
jaka
PostPosted: Thu Mar 31, 2005 10:19 pm Reply with quote

Thanks for that
Now i changed my mind, i wont use that right click menu because it is still useful in some ways. So i want to put a menu like this which use javascript too
Only registered users can see links on this board! Get registered or login!

I keep trying but again i cannot make it worked.

This is the script in the body:

Code:
<s cript src="xaramenu.js"></scr ipt><scri pt Webstyle4 src="menu/tim_kiem.js"></scri pt><noscr ipt><img src="menu/Tim_kiem.gif?1A6DFCA6" editor="Webstyle4"></noscri pt>


So what should I do with the script and the two JS files:xaramenu.js and menu/tim_kiem.js

Thanks again
 
Raven
PostPosted: Thu Mar 31, 2005 10:46 pm Reply with quote

As I said, put the body scripts in your theme.php file or one of the other theme files. Experiment Smile
 
jaka
PostPosted: Thu Mar 31, 2005 10:56 pm Reply with quote

I am not sure how to put the scripts in theme.php and where to put the JS files. In the same folder with the theme.php?
 
Raven
PostPosted: Thu Mar 31, 2005 11:40 pm Reply with quote

Before you try that, try placing your code at the bottom of '/includes/javascript.php'
 
jaka
PostPosted: Thu Mar 31, 2005 11:52 pm Reply with quote

I tried to put the script on both files but nothing happens Bang Head
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©