Location: PHPKode > projects > ViperWeb Portal System > httpdocs/includes/editable/my_header.php
<?php



/************************************************************************/
/* ViperWeb: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Raptr & Godboko                                */
/* http://development.ea-hq.net                                         */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/* Based on PHP-Nuke found at http://www.phpnuke.org                    */
/************************************************************************/



/* 

   This file is to customize whatever stuff you need to include in your site 

   when the header loads. This can be used for third party banners, custom

   javascript, popup windows, etc. With this file you don't need to edit 

   system code each time you upgrade to a new version. Just remember, in case

   you add code here to not overwrite this file when updating!

   Whatever you put here will be between <head> and </head> tags.

*/



?><script language="JavaScript">

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

//-->

</script>

<?php

?>

<script language="JavaScript1.2">



//Popup Box- By Jim Silver @ hide@address.com

//Exlusive permission granted to Dynamic Drive (http://dynamicdrive.com) to include this script in their DHTML archive.

//For full source code, terms of use, and 100's more scripts, visit http://www.dynamicdrive.com



var ns4=document.layers

var ie4=document.all

var ns6=document.getElementById&&!document.all



//drag drop function for NS 4////

/////////////////////////////////



var dragswitch=0

var nsx

var nsy

var nstemp



function drag_dropns(name){

if (!ns4)

return

temp=eval(name)

temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)

temp.onmousedown=gons

temp.onmousemove=dragns

temp.onmouseup=stopns

}



function gons(e){

temp.captureEvents(Event.MOUSEMOVE)

nsx=e.x

nsy=e.y

}

function dragns(e){

if (dragswitch==1){

temp.moveBy(e.x-nsx,e.y-nsy)

return false

}

}



function stopns(){

temp.releaseEvents(Event.MOUSEMOVE)

}



//drag drop function for ie4+ and NS6////

/////////////////////////////////





function drag_drop(e){

if (ie4&&dragapproved){

crossobj.style.left=tempx+event.clientX-offsetx

crossobj.style.top=tempy+event.clientY-offsety

return false

}

else if (ns6&&dragapproved){

crossobj.style.left=tempx+e.clientX-offsetx

crossobj.style.top=tempy+e.clientY-offsety

return false

}

}



function initializedrag(e){

crossobj=ns6? document.getElementById("showimage") : document.all.showimage



var firedobj=ns6? e.target : event.srcElement

var topelement=ns6? "HTML" : "BODY"



while (firedobj.tagName!=topelement&&firedobj.id!="dragbar"){

firedobj=ns6? firedobj.parentNode : firedobj.parentElement

}



if (firedobj.id=="dragbar"){

offsetx=ie4? event.clientX : e.clientX

offsety=ie4? event.clientY : e.clientY



tempx=parseInt(crossobj.style.left)

tempy=parseInt(crossobj.style.top)



dragapproved=true

document.onmousemove=drag_drop

}

}

document.onmousedown=initializedrag

document.onmouseup=new Function("dragapproved=false")



////drag drop functions end here//////



function hidebox(){

if (ie4||ns6)

crossobj.style.visibility="hidden"

else if (ns4)

document.showimage.visibility="hide"

}



</script><?php 

?><script>
<!--
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
ImageArray = new Array;
var preloadFlag = false;
function preloadImages() {
	if (document.images) {

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/themes/vwpbrown/images/untitled5home.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5homedn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5topics.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5topicsdn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5account.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5accountdn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5links.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled5linksdn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6downloads.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6downloadsdn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6contact.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6contactdn.jpg');		

ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6top_10.jpg');		
ImageArray[ImageArray.length++] = newImage(/*URL*/'themes/vwpbrown/images/untitled6top_10dn.jpg');

		preloadFlag = true;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
// -->
</script> <?php



?>
Return current item: ViperWeb Portal System