|
|
|
About: PEL webpages
This page serves as a repository for future maintenance of the PEL and PEL
Traces webpages. Use of all code contained on these pages is governed by
the GPL.
Buttons
Buttons were created with the Gimp
with custom scripts created for quick construction of the images
used on these pages. The following
scripts can be downloaded and used in conjunction with the Gimp:
To use these buttons, simply download the scripts into your global
${gimpdir}/scripts/ directory or to your own .gimp/scripts/ directory.
In order to use pel-medium-button.scm, you will also need a file
called circuitball.gif.
Once the files are in place, simply select Script Fu -> PEL ->
[button name] from the Xtns menu after starting the Gimp. Then,
fill out the form that pops up with the desired text, etc. and
Gimp will create your shiny new buttons.
Note: If Gimp gives you errors about fonts while trying to
create buttons, it is likely that you need to either install
new fonts (by default, the scripts try to use some standard
truetype fonts), or change the font foundry and family to an
appropriate font that exists on your system. If you already have
truetype fonts installed on your system, you may need to change the
name of the font foundry to match that used by your system for
truetype fonts (my system uses "monotype" as the foundry, but other
systems have used "truetype", "microsoft", or just "fonts").
javascript
The main script used to create the animation effects for the buttons
can be found here.
Additionally, each page needs a < script > section in the < head
> section, similar to this one:
<script>
if (document.images) {
setImagePath("http://traces.byu.edu/images/");
PEL_HomepageOn = getImage("PEL-Homepage-on");
PEL_HomepageOff = getImage("PEL-Homepage");
Trace_CollectionOn = getImage("Trace-Collection-on");
Trace_CollectionOff = getImage("Trace-Collection");
Research_ProjectsOn = getImage("Research-Projects-on");
Research_ProjectsOff = getImage("Research-Projects");
Mission_StatementOn = getImage("Mission-Statement-on");
Mission_StatementOff = getImage("Mission-Statement");
Papers_PublicationsOn = getImage("Papers-Publications-on");
Papers_PublicationsOff = getImage("Papers-Publications");
Contact_InformationOn = getImage("Contact-Information-on");
Contact_InformationOff = getImage("Contact-Information");
</script>
Examples of how to call the functions in these
scripts can be found in the page source code for any of these pages.
© 1999, Performance Evaluation Laboratory, Brigham Young University.
All rights reserved. Reproduction of all or part of this work is permitted
for educational or research use provided that this copyright notice is included
in any copy. Send comments to
webmaster@pel.cs.byu.edu.
|