Add-On für das Slide-Menue
Verfasst: 31.07.2005 22:54
Da ich diese Funktionen für mein Slide-Menue dringend brauchte, habe ich mal eine kleine Änderung gemacht. Vielleicht kann sie jemand gebrauchen.
Ich weiß nicht, ob das hier richtig untergebracht ist. Also bitte um Nachsicht, wenn es hier falsch ist.
MfG SilverDragon
Code: Alles auswählen
###########################################################################
# MOD-Title: Slide-Menue (Add-On) v0.1a #
# MOD-Author: SilverDragon #
# MOD-Description: Adds Sub Header with different color #
# and direct Java-Script-Links with onCLick-function #
# to open a new PopUp in the #
# Slide-Menue V1.0 from MOD Author: AWSW #
###########################################################################
# #
# Installation-Level: easy #
# Installation-Time: 5 Minutes #
# Files to edit: overall_header.tpl #
# menue.js #
# Included files: n/a #
###########################################################################
###########################################################################
## This MOD is released under the GPL License. Intellectual Property is ##
## retained by the MOD Author(s) listed above. http://www.gnu.org ##
###########################################################################
## For Security Purposes, Updates or Help, contact SilverDragon on ##
## www.phpbb.de or on http://erotik.homewar.de ##
###########################################################################
## Before Adding This MOD To Your Forum, You Should Back Up Your ##
## Complete Database And All Files Related To This MOD ! ##
###########################################################################
## ##
## Notes: You can add both features or just one of them ##
###########################################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/menue.js
#########################################################################
# FOR JAVA LINK
#-----[ FIND ]------------------------------------------
#
#
function addItem(text, link, target) { [...] }
#
#
#-----[ AFTER, ADD ]--------------------------------------------
#
#
function addJava(text, java, link, target){
if (!target) {target=linkTarget}
document.write('<TR><TD BGCOLOR="'+linkBGColor+'" onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="'+(menuWidth-1)+'"><ILAYER><LAYER onmouseover="bgColor=\''+linkOverBGColor+'\'" onmouseout="bgColor=\''+linkBGColor+'\'" WIDTH="100%" ALIGN="'+linkAlign+'"><DIV ALIGN="'+linkAlign+'"><FONT face="'+linkFontFamily+'" Size="'+linkFontSize+'"> <A HREF="'+link+'" onClick="'+java+'" target="_self" CLASS="ssmItems" >'+text+'</DIV></LAYER></ILAYER></TD></TR>')}
#########################################################################
#########################################################################
# FOR SUBHEADER
#-----[ FIND ]------------------------------------------
#
#
function addHdr(text) { [...] }
#
#
#-----[ AFTER, ADD ]-------------------------------------------
#
#
function addSubHdr(text) {
document.write('<tr><td bgcolor="'+hdr2BGColor+'" HEIGHT="'+hdrHeight+'" ALIGN="'+hdrAlign+'" VALIGN="'+hdrVAlign+'" WIDTH="'+(menuWidth-1)+'"> <font face="'+hdrFontFamily+'" Size="'+hdrFontSize+'" COLOR="'+hdr2FontColor+'"><b>'+text+'</b></font></td></tr>')}
#
########################################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
################################################################################
# FOR SUBHEADER
#-----[ FIND ]------------------------------------------
# remember that the '#000000' should be other in your code, if u changed it
#
hdrFontColor="#000000";
#
#
#-----[ AFTER, ADD ]------------------------------------------
# font color definition for subHdr
#
hdr2FontColor="#000000";
#
#
#-----[ FIND ]-------------------------------------------
# remenber that the '#969696' should be other in your code, if u changed it
#
hdrBGColor="#969696";
#
#
#-----[ AFTER, ADD ]-------------------------------------------
# BG color definition for SubHdr
#
hdr2BGColor="#BBBBBB";
#
################################################################################
################################################################################
##### ADDING A SubHdr ##########################################################
## now u can add a SubHdr to your slide menue like example: ##
################################################################################
addSubHdr("text");
## ##
################################################################################
################################################################################
##### ADDING A JavaLink ########################################################
## and u can now add a direct JavaLink in your slide menue (like the Quest Add-On for ADR)
##
addJava("text", "java-code", "*.php");
##
## example, my link to the Quest Add-On for ADR, which open a PopUp with the Quest-AddOn and
## open the index.php of forum in the first window.
addJava("ADR-Quest", "javascript:window.open('./quest.php', 'QM', 'height=580,width=640', false);", "index.php");
################################################################################
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoMMfG SilverDragon