Michael Wittman Panzer Ace.

Post everything that hasn't to do with MOHAA or MOHPA here, including site feedback/suggestions.

Moderator: Moderators

Post Reply
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Michael Wittman Panzer Ace.

Post by Jack Ruby »

Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
User avatar
Arro
Sergeant
Posts: 59
Joined: Thu Sep 04, 2003 1:16 pm
Location: LoUiSiAna
Contact:

Post by Arro »

Nice! I like the site design too. I need to figure out how to do the floating menu thing.
-----------
Jacobe@planetmedalofhonor.com
ICQ: 162049795
Xfire: arro
After-Hourz.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yeah read that a while ago... not bad :)
Image
User avatar
Deutsche Dogge
First Lieutenant
Posts: 183
Joined: Wed May 07, 2003 11:50 pm
Location: Quebec
Contact:

Post by Deutsche Dogge »

Arro wrote:Nice! I like the site design too. I need to figure out how to do the floating menu thing.
Hi, to know how, open the "page source" with your browser and serach for:

divStayTopLeft (for the beginning of the menu)
Floating Menu script (for the script to keep menu in place)

It's almost at the bottom of the page source.
:wink:
Image
Click sig to visit the alternation modding community
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

very nice.

That floating menu is real easy.
Just add this:

Code: Select all

<html>
<head>
<title>Floating Div (Top Left)</title>
</head>
<body bgcolor="#000000">
<!-- ********************************************************* -->
     * You may use this code for free on any web page provided that 
     * these comment lines and the following credit remain in the code.
     * TopLeft Floating Div from http://www.javascript-fx.com
     ********************************************************  -->
<div id="divStayTopLeft" style="position:absolute">
<img src="javascriptfx.gif"/>
</div>
<script type="text/javascript">
function JSFX_FloatTopLeft()
{
	var startX = 10, startY = 100;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	var px = document.layers ? "" : "px";
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
		el.x = startX; el.y = startY;
		return el;
	}
	window.stayTopLeft=function()
	{
		var pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 40);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}
JSFX_FloatTopLeft();
</script>
<!-- ********************************************************* -->

<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>

<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>

<!-- ********************************************************* -->
</body>
</html>

:wink:
What that looks like
"all the governments in the world are corrupt and in the hands of the Illuminati"
Post Reply