View Full Version : [REQ] - How to include mootools support in pixelpost script ?
pixelkeeda
03-27-2007, 11:19 AM
Hi guys !!
I had a look at the mootools javascript file.
And i would like to include some of the effects from "mootool.js" But i am totally new to JavaScript & PixelPost script, AND hence don't have an idea
How to include mootools support in pixelpost script ?
Can anyone tell me which files from pixelpost script should i include the JavaScript file in ?
And how do i make a function call from the the mootool.js file ???
Dennis
03-27-2007, 11:47 AM
javascript has to be included in your template HTML files, as well as function calls (like onclicks).
pixelkeeda
03-27-2007, 06:11 PM
javascript has to be included in your template HTML files, as well as function calls (like onclicks).
Do you mean if i have to add certain functions in comments. I have to add the functions from mootools.js file in comment_template.html ????
Also do i have to use it in all the template files ???
dakwegmo
03-27-2007, 06:32 PM
You'll need to link to the mootools.js file in any page where you want to use the effects. Something like the code below will need to be added to the head section or your template.
<script src="mootools.js" type="text/javascript"></script>
If you want the effect on the browse/archive template you'll add that code to the browse_template.html you're using, likewise if you want it to show up on the photo pages, you'll use the code in the image_template.html.
You will also need to put whatever javascript function calls into your template. Usually you'll use an OnLoad or OnClick, or similar javascript functions to actually run the part of the script that controls the effect. The mootools documentation should tell you how to do that.
pixelkeeda
03-27-2007, 06:34 PM
Thnx a lot trying that straightaway !!
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.