Revision history for PopOutSideMenu


Revision [19208]

Last edited on 2008-01-28 00:14:43 by GmBowen [Modified links pointing to docs server]

No Differences

Revision [16985]

Edited on 2007-05-31 23:27:32 by GmBowen [Reverted]
Additions:
var ns6 = document.getElementById&&!document.all?1:0;
if (ie4||ns6) {
document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">');
}
else if (ns4){
document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility="hide">');
}
var sitems=new Array()
///////////Edit below/////////////////////////////////
//siteitems[x]=["Item Text", "Optional URL associated with text"]
sitems[0]=["<big><font face='Arial' color='red'>User Tools</font></big>", ""]
sitems[1]=["HomePage", "<?php echo $this->GetConfigValue('base_url'); ?>"]
sitems[2]=["Graphing Tool", "<?php echo $this->GetConfigValue('base_url').'GraphTool'; ?>"]
sitems[3]=["Bookmarks", "<?php echo $this->GetConfigValue('base_url').'MyBookmarks'; ?>"]
sitems[4]=["My Image Gallery", "<?php echo $this->GetConfigValue('base_url').'MyGallery'; ?>"]
sitems[5]=["Image Uploader", "<?php echo $this->GetConfigValue('base_url').'ImageUploader'; ?>"]
sitems[6]=["Your Pages", "<?php echo $this->GetConfigValue('base_url').'MyPages'; ?>"]
sitems[7]=["Task Manager", "<?php echo $this->GetConfigValue('base_url').'MyTasks'; ?>"]
sitems[8]=["Your Page Notes", "<?php echo $this->GetConfigValue('base_url').'MyPageNotes'; ?>"]
sitems[9]=["Enter Schedules", "<?php echo $this->GetConfigValue('base_url').'Scheduler'; ?>"]
sitems[10]=["Wiki Draw Tool", "<?php echo $this->GetConfigValue('base_url').'WikiDraw'; ?>"]
sitems[11]=["Create a.....", "<?php echo $this->GetConfigValue('base_url').'CreaTe'; ?>"]
//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""
/////////////////////////////////////////////////////////
if (ie4||ns4||ns6) {
for (i=0;i<sitems.length;i++) {
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">');
document.write(sitems[i][0]);
if (sitems[i][1])
document.write('</a>');
document.write('<br>\n');
}
function regenerate() {
window.location.reload();
}
function regenerate2() {
if (ns4) {
document.slidemenubar.left = ((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1);
document.slidemenubar.visibility = "show";
setTimeout("window.onresize=regenerate",400);
}
// LINE below commented out by GMBowen to work in Wikka Wiki in Firefox (with other java menu pgm)
// window.onload = regenerate2();
rightboundary = 0
leftboundary = (parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1
if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+10+"px"
else if(ns4&&themenu.left<rightboundary)
themenu.left+=10
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}
function drawengine(){
if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-10+"px"
else if(ns4&&themenu.left>leftboundary)
themenu.left-=10
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}
</script>
----
CodeContributions
Deletions:
var ns6 = document.getElementById


Revision [16784]

Edited on 2007-05-31 10:48:05 by GxtCwr [Reverted]
Additions:
var ns6 = document.getElementById
Deletions:
var ns6 = document.getElementById&&!document.all?1:0;
if (ie4||ns6) {
document.write('<div id="slidemenubar2" style="left:'+((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1)+'px; top:'+slidemenu_top+'; width:'+slidemenu_width+'" onMouseover="pull()" onMouseout="draw()">');
}
else if (ns4){
document.write('<style>\n#slidemenubar{\nwidth:'+slidemenu_width+';}\n<\/style>\n')
document.write('<layer id="slidemenubar" left=0 top='+slidemenu_top+' width='+slidemenu_width+' onMouseover="pull()" onMouseout="draw()" visibility="hide">');
}
var sitems=new Array()
///////////Edit below/////////////////////////////////
//siteitems[x]=["Item Text", "Optional URL associated with text"]
sitems[0]=["<big><font face='Arial' color='red'>User Tools</font></big>", ""]
sitems[1]=["HomePage", "<?php echo $this->GetConfigValue('base_url'); ?>"]
sitems[2]=["Graphing Tool", "<?php echo $this->GetConfigValue('base_url').'GraphTool'; ?>"]
sitems[3]=["Bookmarks", "<?php echo $this->GetConfigValue('base_url').'MyBookmarks'; ?>"]
sitems[4]=["My Image Gallery", "<?php echo $this->GetConfigValue('base_url').'MyGallery'; ?>"]
sitems[5]=["Image Uploader", "<?php echo $this->GetConfigValue('base_url').'ImageUploader'; ?>"]
sitems[6]=["Your Pages", "<?php echo $this->GetConfigValue('base_url').'MyPages'; ?>"]
sitems[7]=["Task Manager", "<?php echo $this->GetConfigValue('base_url').'MyTasks'; ?>"]
sitems[8]=["Your Page Notes", "<?php echo $this->GetConfigValue('base_url').'MyPageNotes'; ?>"]
sitems[9]=["Enter Schedules", "<?php echo $this->GetConfigValue('base_url').'Scheduler'; ?>"]
sitems[10]=["Wiki Draw Tool", "<?php echo $this->GetConfigValue('base_url').'WikiDraw'; ?>"]
sitems[11]=["Create a.....", "<?php echo $this->GetConfigValue('base_url').'CreaTe'; ?>"]
//If you want the links to load in another frame/window, specify name of target (ie: target="_new")
var target=""
/////////////////////////////////////////////////////////
if (ie4||ns4||ns6) {
for (i=0;i<sitems.length;i++) {
if (sitems[i][1])
document.write('<a href="'+sitems[i][1]+'" target="'+target+'">');
document.write(sitems[i][0]);
if (sitems[i][1])
document.write('</a>');
document.write('<br>\n');
}
function regenerate() {
window.location.reload();
}
function regenerate2() {
if (ns4) {
document.slidemenubar.left = ((parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1);
document.slidemenubar.visibility = "show";
setTimeout("window.onresize=regenerate",400);
}
// LINE below commented out by GMBowen to work in Wikka Wiki in Firefox (with other java menu pgm)
// window.onload = regenerate2();
rightboundary = 0
leftboundary = (parseInt(slidemenu_width)-parseInt(slidemenu_reveal))*-1
if (ie4||ns6){
document.write('</div>')
themenu=(ns6)? document.getElementById("slidemenubar2").style : document.all.slidemenubar2.style
}
else if (ns4){
document.write('</layer>')
themenu=document.layers.slidemenubar
}
function pull(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengine()",10)
}
function draw(){
clearInterval(pullit)
drawit=setInterval("drawengine()",10)
}
function pullengine(){
if ((ie4||ns6)&&parseInt(themenu.left)<rightboundary)
themenu.left=parseInt(themenu.left)+10+"px"
else if(ns4&&themenu.left<rightboundary)
themenu.left+=10
else if (window.pullit){
themenu.left=0
clearInterval(pullit)
}
}
function drawengine(){
if ((ie4||ns6)&&parseInt(themenu.left)>leftboundary)
themenu.left=parseInt(themenu.left)-10+"px"
else if(ns4&&themenu.left>leftboundary)
themenu.left-=10
else if (window.drawit){
themenu.left=leftboundary
clearInterval(drawit)
}
}
</script>
----
CodeContributions


Revision [11664]

Edited on 2005-11-05 21:55:58 by GmBowen [Reverted]
Additions:
This is a modification of a script obtained from http://www.dynamicdrive.com/dynamicindex1/slideinmenu.htm. I use it as a popout menu from the left side on all of the admin pages on my site, but you could use it for anything...and even make it dynamic I suppose so you could load items in as a paramter string. You have to do two things....(1) put the first set of code in the header.php file just before ""</head>"" and (2) put the second set of code in the actions directory with whatever file name you want (I use sidemenu.php) and setting the pages and pagenames that you want (just replace mine). Then that action (e.g., ""{{sidemenu}}"") can be placed on whatever pages you like. My wikka implementation also has another javascript drp-down menu and to get this to work with mine I had to comment out a line (See "Line below commented out by GMBowen....") so if you don't have that dropdown you may have to un-comment out the line. Have fun.
Deletions:
This is a modification of a script obtained from www.dynamicdrive.com. I use it as a popout menu from the left side on all of the admin pages on my site, but you could use it for anything...and even make it dynamic I suppose so you could load items in as a paramter string. You have to do two things....(1) put the first set of code in the header.php file just before ""</head>"" and (2) put the second set of code in the actions directory with whatever file name you want (I use sidemenu.php) and setting the pages and pagenames that you want (just replace mine). Then that action (e.g., ""{{sidemenu}}"") can be placed on whatever pages you like. My wikka implementation also has another javascript drp-down menu and to get this to work with mine I had to comment out a line (See "Line below commented out by GMBowen....") so if you don't have that dropdown you may have to un-comment out the line. Have fun.


Revision [11662]

The oldest known version of this page was created on 2005-11-05 21:43:23 by GmBowen [Reverted]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki